initial steps to getting the predicate on PPC::BLR right.
authorChris Lattner <sabre@nondot.org>
Fri, 3 Nov 2006 23:52:18 +0000 (23:52 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 3 Nov 2006 23:52:18 +0000 (23:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31437 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Target.td

index f146ed35c7db879e84e925797ae2df350d2cbb2b..0f2b0348bef52d40749e9161dd3ace81a0bd8b03 100644 (file)
@@ -222,6 +222,17 @@ def i16imm : Operand<i16>;
 def i32imm : Operand<i32>;
 def i64imm : Operand<i64>;
 
+
+/// PredicateOperand - This can be used to define a predicate operand for an
+/// 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> {
+  let MIOperandInfo = OpTypes;
+  dag ExecuteAlways = AlwaysVal;
+}
+
+
 // InstrInfo - This class should only be instantiated once to provide parameters
 // which are global to the the target machine.
 //