[llvm-commits] CVS: llvm/include/llvm/Target/TargetLowering.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Jan 29 22:09:14 PST 2006
Changes in directory llvm/include/llvm/Target:
TargetLowering.h updated: 1.44 -> 1.45
---
Log message:
Clear the OpAction field before setting it. This allows a target to set
an instruction operation action to Expand, then set it to Legal later.
---
Diffs of the changes: (+1 -0)
TargetLowering.h | 1 +
1 files changed, 1 insertion(+)
Index: llvm/include/llvm/Target/TargetLowering.h
diff -u llvm/include/llvm/Target/TargetLowering.h:1.44 llvm/include/llvm/Target/TargetLowering.h:1.45
--- llvm/include/llvm/Target/TargetLowering.h:1.44 Sun Jan 29 22:08:18 2006
+++ llvm/include/llvm/Target/TargetLowering.h Mon Jan 30 00:09:03 2006
@@ -368,6 +368,7 @@
LegalizeAction Action) {
assert(VT < 32 && Op < sizeof(OpActions)/sizeof(OpActions[0]) &&
"Table isn't big enough!");
+ OpActions[Op] &= ~(3ULL << VT*2);
OpActions[Op] |= Action << VT*2;
}
More information about the llvm-commits
mailing list