projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9964cd8
)
Add two helper functions.
author
Chris Lattner
<sabre@nondot.org>
Sat, 1 Jan 2005 15:58:41 +0000
(15:58 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 1 Jan 2005 15:58:41 +0000
(15:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19208
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/ValueTypes.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/ValueTypes.h
b/include/llvm/CodeGen/ValueTypes.h
index b523b71a14be030a01167bbf8ae8d35d311dda8a..ed58c9eee6a0e551353fc70ae15527bb9f066afb 100644
(file)
--- a/
include/llvm/CodeGen/ValueTypes.h
+++ b/
include/llvm/CodeGen/ValueTypes.h
@@
-40,6
+40,13
@@
namespace MVT { // MVT = Machine Value Types
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