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/llvm/CodeGen/ValueTypes.h | |
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/llvm/CodeGen/ValueTypes.h')
-rw-r--r-- | include/llvm/CodeGen/ValueTypes.h | 6 |
1 files changed, 6 insertions, 0 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); + }; |