[llvm-commits] CVS: llvm/include/llvm/CodeGen/ValueTypes.h
Chris Lattner
sabre at nondot.org
Fri Mar 30 21:03:22 PDT 2007
Changes in directory llvm/include/llvm/CodeGen:
ValueTypes.h updated: 1.30 -> 1.31
---
Log message:
add a method to turn a type into a VT.
---
Diffs of the changes: (+5 -0)
ValueTypes.h | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/include/llvm/CodeGen/ValueTypes.h
diff -u llvm/include/llvm/CodeGen/ValueTypes.h:1.30 llvm/include/llvm/CodeGen/ValueTypes.h:1.31
--- llvm/include/llvm/CodeGen/ValueTypes.h:1.30 Sat Mar 24 12:36:26 2007
+++ llvm/include/llvm/CodeGen/ValueTypes.h Fri Mar 30 23:03:02 2007
@@ -197,6 +197,11 @@
/// to the specified ValueType. For integer types, this returns an unsigned
/// type. Note that this will abort for types that cannot be represented.
const Type *getTypeForValueType(ValueType VT);
+
+ /// MVT::getValueType - Return the value type corresponding to the specified
+ /// type. This returns all vectors as MVT::Vector and all pointers as
+ /// MVT::iPTR.
+ ValueType getValueType(const Type *Ty);
}
} // End llvm namespace
More information about the llvm-commits
mailing list