diff options
author | Chris Lattner <sabre@nondot.org> | 2007-03-31 04:05:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-03-31 04:05:24 +0000 |
commit | d2f340b746e54fca27b654fd6740973fdf6b85f1 (patch) | |
tree | 3261af9b4afe467ba541c4e4a4c8318e8bdd73e6 /lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 2df6dc579ca7c85a20d2d221f4df32fbb26fc97a (diff) |
switch TL::getValueType to use MVT::getValueType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35527 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 5cd099c779..195b1504a5 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -2273,25 +2273,3 @@ SDOperand TargetLowering::BuildUDIV(SDNode *N, SelectionDAG &DAG, DAG.getConstant(magics.s-1, getShiftAmountTy())); } } - -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; - case 128: return MVT::i128; - } - break; - case Type::FloatTyID: return MVT::f32; - case Type::DoubleTyID: return MVT::f64; - case Type::PointerTyID: return PointerTy; - case Type::VectorTyID: return MVT::Vector; - } -} |