mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 20:32:19 +00:00
Add two helper functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19208 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9964cd8e9a
commit
fd1cbc095a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user