diff options
author | Patrik Hagglund <patrik.h.hagglund@ericsson.com> | 2012-12-19 15:19:11 +0000 |
---|---|---|
committer | Patrik Hagglund <patrik.h.hagglund@ericsson.com> | 2012-12-19 15:19:11 +0000 |
commit | c698d3a2a40f0909d16cbe857685f0f22cb9ae43 (patch) | |
tree | 01ff056b23a49dfd626a2f24d1a65813ae906463 /include | |
parent | cd7ee1ced017d7a957113df9d6cf855ecbc3797e (diff) | |
download | llvm-c698d3a2a40f0909d16cbe857685f0f22cb9ae43.tar.gz llvm-c698d3a2a40f0909d16cbe857685f0f22cb9ae43.tar.bz2 llvm-c698d3a2a40f0909d16cbe857685f0f22cb9ae43.tar.xz |
Change AsmOperandInfo::ConstraintVT to MVT, instead of EVT.
Accordingly, add MVT::getVT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/ValueTypes.h | 6 | ||||
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/ValueTypes.h b/include/llvm/CodeGen/ValueTypes.h index b9f429537c..931a47ee02 100644 --- a/include/llvm/CodeGen/ValueTypes.h +++ b/include/llvm/CodeGen/ValueTypes.h @@ -499,6 +499,12 @@ namespace llvm { } return (MVT::SimpleValueType)(MVT::INVALID_SIMPLE_VALUE_TYPE); } + + /// Return the value type corresponding to the specified type. This returns + /// all pointers as iPTR. If HandleUnknown is true, unknown types are + /// returned as Other, otherwise they are invalid. + static MVT getVT(Type *Ty, bool HandleUnknown = false); + }; diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index f2ec08d93b..46d860c3c2 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -1555,7 +1555,7 @@ public: Value *CallOperandVal; /// ConstraintVT - The ValueType for the operand value. - EVT ConstraintVT; + MVT ConstraintVT; /// isMatchingInputConstraint - Return true of this is an input operand that /// is a matching constraint like "4". |