Describe PPC predicates, which are a pair of CR# and condition.
authorChris Lattner <sabre@nondot.org>
Fri, 3 Nov 2006 23:53:25 +0000 (23:53 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 3 Nov 2006 23:53:25 +0000 (23:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31438 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstrInfo.td

index e28295f6ba366d8516689c9c6e5b2fe852f87081..02b066f58257ff25da652ae3397172a112450fcd 100644 (file)
@@ -255,6 +255,10 @@ def memrix : Operand<iPTR> {   // memri where the imm is shifted 2 bits.
   let MIOperandInfo = (ops i32imm, ptr_rc);
 }
 
+// PowerPC Predicate operand.  20 = always, CR0 is a dummy reg that doesn't
+// matter.
+def pred : PredicateOperand<(ops imm, CRRC), (ops 20, CR0)>;
+
 // Define PowerPC specific addressing mode.
 def iaddr  : ComplexPattern<iPTR, 2, "SelectAddrImm",    [], []>;
 def xaddr  : ComplexPattern<iPTR, 2, "SelectAddrIdx",    [], []>;