diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-01-24 20:50:47 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-01-24 20:50:47 +0000 |
commit | f3474549ba401c05a6d3db3dc6b2cfe3a7f73314 (patch) | |
tree | b95e4ba3094c0d393c055dfcfc1053f47edede07 /include | |
parent | 96172cb4a44d890263c9054df35739a60569d4a5 (diff) | |
download | llvm-f3474549ba401c05a6d3db3dc6b2cfe3a7f73314.tar.gz llvm-f3474549ba401c05a6d3db3dc6b2cfe3a7f73314.tar.bz2 llvm-f3474549ba401c05a6d3db3dc6b2cfe3a7f73314.tar.xz |
Replace tablegen uses of EVT with MVT. Add isOverloaded() to MVT to facilitate. Remove TGValueTypes.cpp since its unused now (and may have been before).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-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 071bd1498e..d59670410b 100644 --- a/include/llvm/CodeGen/ValueTypes.h +++ b/include/llvm/CodeGen/ValueTypes.h @@ -237,6 +237,12 @@ namespace llvm { return (SimpleTy == MVT::v16i64); } + /// isOverloaded - Return true if this is an overloaded type for TableGen. + bool isOverloaded() const { + return (SimpleTy==MVT::iAny || SimpleTy==MVT::fAny || + SimpleTy==MVT::vAny || SimpleTy==MVT::iPTRAny); + } + /// isPow2VectorType - Returns true if the given vector is a power of 2. bool isPow2VectorType() const { unsigned NElts = getVectorNumElements(); |