aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/TargetInstrInfoImpl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-07 02:39:19 +0000
committerChris Lattner <sabre@nondot.org>2008-01-07 02:39:19 +0000
commit8ca5c67c6e95fdcf5ddb2f06586873c843dd0cde (patch)
treeb9e21ae796516ae90af9ada2915fadf2cf616e53 /lib/CodeGen/TargetInstrInfoImpl.cpp
parent572742e876478d3ec7ff0750c0473d7621804b15 (diff)
downloadexternal_llvm-8ca5c67c6e95fdcf5ddb2f06586873c843dd0cde.tar.gz
external_llvm-8ca5c67c6e95fdcf5ddb2f06586873c843dd0cde.tar.bz2
external_llvm-8ca5c67c6e95fdcf5ddb2f06586873c843dd0cde.zip
Add predicates methods to TargetOperandInfo, and switch all clients
over to using them, instead of diddling Flags directly. Change the various flags from const variables to enums. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInstrInfoImpl.cpp')
-rw-r--r--lib/CodeGen/TargetInstrInfoImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TargetInstrInfoImpl.cpp b/lib/CodeGen/TargetInstrInfoImpl.cpp
index 207f371b09..4498c984e2 100644
--- a/lib/CodeGen/TargetInstrInfoImpl.cpp
+++ b/lib/CodeGen/TargetInstrInfoImpl.cpp
@@ -38,7 +38,7 @@ bool TargetInstrInfoImpl::PredicateInstruction(MachineInstr *MI,
const TargetInstrDescriptor *TID = MI->getDesc();
if (TID->isPredicable()) {
for (unsigned j = 0, i = 0, e = MI->getNumOperands(); i != e; ++i) {
- if ((TID->OpInfo[i].Flags & M_PREDICATE_OPERAND)) {
+ if (TID->OpInfo[i].isPredicate()) {
MachineOperand &MO = MI->getOperand(i);
if (MO.isReg()) {
MO.setReg(Pred[j].getReg());