diff --git a/lib/Target/Target.td b/lib/Target/Target.td index 9612f08bd82..b55f174314f 100644 --- a/lib/Target/Target.td +++ b/lib/Target/Target.td @@ -161,7 +161,7 @@ def DNVT_val : DagNodeValType; // A non-void type def DNVT_arg0 : DagNodeValType; // Tree node returns same type as Arg0 def DNVT_arg1 : DagNodeValType; // Tree node returns same type as Arg1 def DNVT_ptr : DagNodeValType; // The target pointer type -def DNVT_bool : DagNodeValType; // Always returns bool +def DNVT_i8 : DagNodeValType; // Always have an i8 value class DagNode args> { DagNodeValType RetType = ret; @@ -197,12 +197,12 @@ def or : BuiltinDagNode; def xor : BuiltinDagNode; // Comparisons... -def seteq : BuiltinDagNode; -def setne : BuiltinDagNode; -def setlt : BuiltinDagNode; -def setle : BuiltinDagNode; -def setgt : BuiltinDagNode; -def setge : BuiltinDagNode; +def seteq : BuiltinDagNode; +def setne : BuiltinDagNode; +def setlt : BuiltinDagNode; +def setle : BuiltinDagNode; +def setgt : BuiltinDagNode; +def setge : BuiltinDagNode; def load : BuiltinDagNode; //def store : BuiltinDagNode; @@ -211,7 +211,7 @@ def load : BuiltinDagNode; def ret : BuiltinDagNode; def retvoid : BuiltinDagNode; def br : BuiltinDagNode; -def brcond : BuiltinDagNode; //===----------------------------------------------------------------------===// diff --git a/support/tools/TableGen/InstrSelectorEmitter.cpp b/support/tools/TableGen/InstrSelectorEmitter.cpp index 133ed7daf52..42d8b1b2185 100644 --- a/support/tools/TableGen/InstrSelectorEmitter.cpp +++ b/support/tools/TableGen/InstrSelectorEmitter.cpp @@ -19,7 +19,7 @@ NodeType::ArgResultTypes NodeType::Translate(Record *R) { if (Name == "DNVT_arg0") return Arg0; if (Name == "DNVT_arg1") return Arg1; if (Name == "DNVT_ptr" ) return Ptr; - if (Name == "DNVT_bool") return Bool; + if (Name == "DNVT_i8" ) return I8; throw "Unknown DagNodeValType '" + Name + "'!"; } @@ -276,7 +276,7 @@ bool Pattern::InferTypes(TreePatternNode *N, bool &MadeChange) { AnyUnset |= InferTypes(Child, MadeChange); switch (NT.ArgTypes[i]) { - case NodeType::Bool: + case NodeType::I8: MadeChange |= Child->updateNodeType(MVT::i1, TheRecord->getName()); break; case NodeType::Arg0: @@ -304,7 +304,7 @@ bool Pattern::InferTypes(TreePatternNode *N, bool &MadeChange) { case NodeType::Void: MadeChange |= N->updateNodeType(MVT::isVoid, TheRecord->getName()); break; - case NodeType::Bool: + case NodeType::I8: MadeChange |= N->updateNodeType(MVT::i1, TheRecord->getName()); break; case NodeType::Arg0: diff --git a/support/tools/TableGen/InstrSelectorEmitter.h b/support/tools/TableGen/InstrSelectorEmitter.h index d34c1910c50..f81ad72828a 100644 --- a/support/tools/TableGen/InstrSelectorEmitter.h +++ b/support/tools/TableGen/InstrSelectorEmitter.h @@ -25,7 +25,7 @@ struct NodeType { Arg0, // Value matches the type of Arg0 Arg1, // Value matches the type of Arg1 Ptr, // Tree node is the type of the target pointer - Bool, // Always bool + I8, // Always bool Void, // Tree node always returns void }; diff --git a/utils/TableGen/InstrSelectorEmitter.cpp b/utils/TableGen/InstrSelectorEmitter.cpp index 133ed7daf52..42d8b1b2185 100644 --- a/utils/TableGen/InstrSelectorEmitter.cpp +++ b/utils/TableGen/InstrSelectorEmitter.cpp @@ -19,7 +19,7 @@ NodeType::ArgResultTypes NodeType::Translate(Record *R) { if (Name == "DNVT_arg0") return Arg0; if (Name == "DNVT_arg1") return Arg1; if (Name == "DNVT_ptr" ) return Ptr; - if (Name == "DNVT_bool") return Bool; + if (Name == "DNVT_i8" ) return I8; throw "Unknown DagNodeValType '" + Name + "'!"; } @@ -276,7 +276,7 @@ bool Pattern::InferTypes(TreePatternNode *N, bool &MadeChange) { AnyUnset |= InferTypes(Child, MadeChange); switch (NT.ArgTypes[i]) { - case NodeType::Bool: + case NodeType::I8: MadeChange |= Child->updateNodeType(MVT::i1, TheRecord->getName()); break; case NodeType::Arg0: @@ -304,7 +304,7 @@ bool Pattern::InferTypes(TreePatternNode *N, bool &MadeChange) { case NodeType::Void: MadeChange |= N->updateNodeType(MVT::isVoid, TheRecord->getName()); break; - case NodeType::Bool: + case NodeType::I8: MadeChange |= N->updateNodeType(MVT::i1, TheRecord->getName()); break; case NodeType::Arg0: diff --git a/utils/TableGen/InstrSelectorEmitter.h b/utils/TableGen/InstrSelectorEmitter.h index d34c1910c50..f81ad72828a 100644 --- a/utils/TableGen/InstrSelectorEmitter.h +++ b/utils/TableGen/InstrSelectorEmitter.h @@ -25,7 +25,7 @@ struct NodeType { Arg0, // Value matches the type of Arg0 Arg1, // Value matches the type of Arg1 Ptr, // Tree node is the type of the target pointer - Bool, // Always bool + I8, // Always bool Void, // Tree node always returns void };