aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>2012-12-19 12:02:25 +0000
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>2012-12-19 12:02:25 +0000
commite5c65911a659e49320d214bf0702793ad37b5ed5 (patch)
tree2684777c174e9ddff8b674ac216746170a8334fa /include/llvm/CodeGen
parentee211d2b8da98a549f7c68401aba866fa2a0eee2 (diff)
downloadexternal_llvm-e5c65911a659e49320d214bf0702793ad37b5ed5.zip
external_llvm-e5c65911a659e49320d214bf0702793ad37b5ed5.tar.gz
external_llvm-e5c65911a659e49320d214bf0702793ad37b5ed5.tar.bz2
Change TargetLowering::getTypeForExtArgOrReturn to take and return
MVTs, instead of EVTs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/ValueTypes.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/ValueTypes.h b/include/llvm/CodeGen/ValueTypes.h
index 2401992..b9f4295 100644
--- a/include/llvm/CodeGen/ValueTypes.h
+++ b/include/llvm/CodeGen/ValueTypes.h
@@ -389,6 +389,27 @@ namespace llvm {
return getStoreSize() * 8;
}
+ /// Return true if this has more bits than VT.
+ bool bitsGT(MVT VT) const {
+ return getSizeInBits() > VT.getSizeInBits();
+ }
+
+ /// Return true if this has no less bits than VT.
+ bool bitsGE(MVT VT) const {
+ return getSizeInBits() >= VT.getSizeInBits();
+ }
+
+ /// Return true if this has less bits than VT.
+ bool bitsLT(MVT VT) const {
+ return getSizeInBits() < VT.getSizeInBits();
+ }
+
+ /// Return true if this has no more bits than VT.
+ bool bitsLE(MVT VT) const {
+ return getSizeInBits() <= VT.getSizeInBits();
+ }
+
+
static MVT getFloatingPointVT(unsigned BitWidth) {
switch (BitWidth) {
default: