diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-12 23:32:11 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-12 23:32:11 +0000 |
commit | 73497b26cdcfa716c118b55f5d8869a1ee754749 (patch) | |
tree | 938359bbf27e64faf335b83b05019cec3dd18b83 /llvm/lib/Target/TargetLowering.cpp | |
parent | a8a0f2cf68ddaa4beb2c110ac3e6342660ec3adb (diff) | |
download | bcm5719-llvm-73497b26cdcfa716c118b55f5d8869a1ee754749.tar.gz bcm5719-llvm-73497b26cdcfa716c118b55f5d8869a1ee754749.zip |
Remove this file. It was inadvertently added because I could not find
TargetLowering.cpp in CodeGen/SelectionDAG (location makes no sense to me)
llvm-svn: 33160
Diffstat (limited to 'llvm/lib/Target/TargetLowering.cpp')
-rw-r--r-- | llvm/lib/Target/TargetLowering.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/llvm/lib/Target/TargetLowering.cpp b/llvm/lib/Target/TargetLowering.cpp deleted file mode 100644 index ac6844ab02f..00000000000 --- a/llvm/lib/Target/TargetLowering.cpp +++ /dev/null @@ -1,40 +0,0 @@ -//===-- TargetLowering.cpp - Asm Info --------------------------------------==// -// -// The LLVM Compiler Infrastructure -// -// This file was developed by Reid Spencer and is distributed under the -// University of Illinois Open Source License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file implements methods of the TargetLowering class. -// -//===----------------------------------------------------------------------===// -// - -#include "llvm/Target/TargetLowering.h" -#include "llvm/DerivedTypes.h" -#include "llvm/CodeGen/ValueTypes.h" - -using namespace llvm; - -MVT::ValueType TargetLowering::getValueType(const Type *Ty) const { - switch (Ty->getTypeID()) { - default: assert(0 && "Unknown type!"); - case Type::VoidTyID: return MVT::isVoid; - case Type::IntegerTyID: - switch (cast<IntegerType>(Ty)->getBitWidth()) { - default: assert(0 && "Invalid width for value type"); - case 1: return MVT::i1; - case 8: return MVT::i8; - case 16: return MVT::i16; - case 32: return MVT::i32; - case 64: return MVT::i64; - } - break; - case Type::FloatTyID: return MVT::f32; - case Type::DoubleTyID: return MVT::f64; - case Type::PointerTyID: return PointerTy; - case Type::PackedTyID: return MVT::Vector; - } -} |