aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Target.td
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-03 23:52:18 +0000
committerChris Lattner <sabre@nondot.org>2006-11-03 23:52:18 +0000
commit60a09a5d6d9205ee68d2864504a5b0f6835bbf8b (patch)
tree755da7b4bbfae00ca788e0dee8b30728d9acd5a2 /lib/Target/Target.td
parente69c436e6f203e7a422ac620d7f563cbca6da3e1 (diff)
downloadexternal_llvm-60a09a5d6d9205ee68d2864504a5b0f6835bbf8b.zip
external_llvm-60a09a5d6d9205ee68d2864504a5b0f6835bbf8b.tar.gz
external_llvm-60a09a5d6d9205ee68d2864504a5b0f6835bbf8b.tar.bz2
initial steps to getting the predicate on PPC::BLR right.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31437 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Target.td')
-rw-r--r--lib/Target/Target.td11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Target/Target.td b/lib/Target/Target.td
index f146ed3..0f2b034 100644
--- a/lib/Target/Target.td
+++ b/lib/Target/Target.td
@@ -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.
//