mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-03 01:48:15 +00:00
Add two helper functions.
llvm-svn: 19208
This commit is contained in:
parent
3ab011eb95
commit
7f004e59d8
@ -40,6 +40,13 @@ namespace MVT { // MVT = Machine Value Types
|
|||||||
|
|
||||||
isVoid = 11, // This has no value
|
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
|
} // End llvm namespace
|
||||||
|
Loading…
x
Reference in New Issue
Block a user