PredicateOperand can be used as a normal operand for isel.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 8 May 2007 21:06:08 +0000 (21:06 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 8 May 2007 21:06:08 +0000 (21:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36947 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstrInfo.td
lib/Target/Target.td

index e43b33921b7edcb081317515bc18a94f3578cc94..bbddad2d0acea0f3fcc33f86687a21c161745aeb 100644 (file)
@@ -272,7 +272,7 @@ def memrix : Operand<iPTR> {   // memri where the imm is shifted 2 bits.
 
 // PowerPC Predicate operand.  20 = (0<<5)|20 = always, CR0 is a dummy reg
 // that doesn't matter.
-def pred : PredicateOperand<(ops imm, CRRC), (ops (i32 20), CR0)> {
+def pred : PredicateOperand<OtherVT, (ops imm, CRRC), (ops (i32 20), CR0)> {
   let PrintMethod = "printPredicateOperand";
 }
 
index f98c414d34cd349e6a36455ab9a748908352ce1a..d7723a546f1f5fdf2999580c929b749aa8973558 100644 (file)
@@ -254,7 +254,7 @@ def i64imm : Operand<i64>;
 /// instruction.  OpTypes specifies the MIOperandInfo for the operand, and
 /// AlwaysVal specifies the value of this predicate when set to "always
 /// execute".
-class PredicateOperand<dag OpTypes, dag AlwaysVal> : Operand<OtherVT> {
+class PredicateOperand<ValueType ty, dag OpTypes, dag AlwaysVal> : Operand<ty> {
   let MIOperandInfo = OpTypes;
   dag ExecuteAlways = AlwaysVal;
 }