[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Feb 16 23:55:02 PST 2004
Changes in directory llvm/include/llvm/Target:
MRegisterInfo.h updated: 1.32 -> 1.33
---
Log message:
Simplify and document the new interface
---
Diffs of the changes: (+8 -7)
Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.32 llvm/include/llvm/Target/MRegisterInfo.h:1.33
--- llvm/include/llvm/Target/MRegisterInfo.h:1.32 Mon Feb 16 22:33:18 2004
+++ llvm/include/llvm/Target/MRegisterInfo.h Mon Feb 16 23:54:26 2004
@@ -242,14 +242,15 @@
const TargetRegisterClass *RC) const = 0;
- virtual bool canFoldMemoryOperand(MachineInstr* MI, unsigned i) const {
+ /// foldMemoryOperand - If this target supports it, fold a load or store of
+ /// the specified stack slot into the specified machine instruction for the
+ /// specified operand. If this is possible, the target should perform the
+ /// folding and return true, otherwise it should return false. If it folds
+ /// the instruction, it is likely that the MachineInstruction the iterator
+ /// references has been changed.
+ virtual bool foldMemoryOperand(MachineBasicBlock::iterator &MI,
+ unsigned OpNum, int FrameIndex) const {
return false;
- }
-
- virtual int foldMemoryOperand(MachineInstr* MI,
- unsigned i,
- int FrameIndex) const {
- return 0;
}
/// getCallFrameSetup/DestroyOpcode - These methods return the opcode of the
More information about the llvm-commits
mailing list