[llvm-commits] CVS: llvm/include/llvm/CodeGen/ValueTypes.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Jan 1 07:59:24 PST 2005
Changes in directory llvm/include/llvm/CodeGen:
ValueTypes.h updated: 1.5 -> 1.6
---
Log message:
Add two helper functions.
---
Diffs of the changes: (+7 -0)
Index: llvm/include/llvm/CodeGen/ValueTypes.h
diff -u llvm/include/llvm/CodeGen/ValueTypes.h:1.5 llvm/include/llvm/CodeGen/ValueTypes.h:1.6
--- llvm/include/llvm/CodeGen/ValueTypes.h:1.5 Tue Nov 11 16:41:31 2003
+++ llvm/include/llvm/CodeGen/ValueTypes.h Sat Jan 1 09:58:41 2005
@@ -40,6 +40,13 @@
isVoid = 11, // This has no value
};
+
+ static inline bool isInteger(ValueType VT) {
+ return VT >= i1 && VT <= i128;
+ }
+ static inline bool isFloatingPoint(ValueType VT) {
+ return VT >= f32 && VT <= f128;
+ }
};
} // End llvm namespace
More information about the llvm-commits
mailing list