Changes in directory llvm/lib/CodeGen/SelectionDAG:
TargetLowering.cpp updated: 1.104 -> 1.105 --- Log message: switch TL::getValueType to use MVT::getValueType. --- Diffs of the changes: (+0 -22) TargetLowering.cpp | 22 ---------------------- 1 files changed, 22 deletions(-) Index: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp diff -u llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.104 llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.105 --- llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.104 Fri Mar 30 18:14:50 2007 +++ llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp Fri Mar 30 23:05:24 2007 @@ -2273,25 +2273,3 @@ 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; - } -} _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits