From 9f94459d24d82504f0962dfe366a5b39576c4809 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Tue, 11 Aug 2009 20:47:22 +0000 Subject: 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 --- llvm/utils/TableGen/CodeGenDAGPatterns.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.h') 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!"); -- cgit v1.2.3