diff options
| author | Owen Anderson <resistor@mac.com> | 2009-08-11 20:47:22 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-08-11 20:47:22 +0000 |
| commit | 9f94459d24d82504f0962dfe366a5b39576c4809 (patch) | |
| tree | 30fe4c6ae2098fabf6467a05035d39feec7d6b59 /llvm/utils/TableGen/CodeGenDAGPatterns.h | |
| parent | a1e04d43c4986c24723e8840d9f7a00ed068c2df (diff) | |
| download | bcm5719-llvm-9f94459d24d82504f0962dfe366a5b39576c4809.tar.gz bcm5719-llvm-9f94459d24d82504f0962dfe366a5b39576c4809.zip | |
Split EVT into MVT and EVT, the former representing _just_ a primitive type, while
the latter is capable of representing either a primitive or an extended type.
llvm-svn: 78713
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.h')
| -rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.h b/llvm/utils/TableGen/CodeGenDAGPatterns.h index 6dbc7596c63..7c2791d4406 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.h +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.h @@ -34,10 +34,10 @@ namespace llvm { class ComplexPattern; /// EEVT::DAGISelGenValueType - These are some extended forms of -/// EVT::SimpleValueType that we use as lattice values during type inference. +/// MVT::SimpleValueType that we use as lattice values during type inference. namespace EEVT { enum DAGISelGenValueType { - isFP = EVT::LAST_VALUETYPE, + isFP = MVT::LAST_VALUETYPE, isInt, isUnknown }; @@ -181,19 +181,19 @@ public: bool isLeaf() const { return Val != 0; } bool hasTypeSet() const { - return (Types[0] < EVT::LAST_VALUETYPE) || (Types[0] == EVT::iPTR) || - (Types[0] == EVT::iPTRAny); + return (Types[0] < MVT::LAST_VALUETYPE) || (Types[0] == MVT::iPTR) || + (Types[0] == MVT::iPTRAny); } bool isTypeCompletelyUnknown() const { return Types[0] == EEVT::isUnknown; } bool isTypeDynamicallyResolved() const { - return (Types[0] == EVT::iPTR) || (Types[0] == EVT::iPTRAny); + return (Types[0] == MVT::iPTR) || (Types[0] == MVT::iPTRAny); } - EVT::SimpleValueType getTypeNum(unsigned Num) const { + MVT::SimpleValueType getTypeNum(unsigned Num) const { assert(hasTypeSet() && "Doesn't have a type yet!"); assert(Types.size() > Num && "Type num out of range!"); - return (EVT::SimpleValueType)Types[Num]; + return (MVT::SimpleValueType)Types[Num]; } unsigned char getExtTypeNum(unsigned Num) const { assert(Types.size() > Num && "Extended type num out of range!"); |

