diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-04-26 07:38:55 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-04-26 07:38:55 +0000 |
commit | 962021bc7f6721c20c7dfe8ca809e2d98b1c554a (patch) | |
tree | afae781cdda12ddd87b3dc2d5c5d9041c990f07b /include | |
parent | f822e733aff93b34e6cd85b2f92d86e71fe67f87 (diff) | |
download | llvm-962021bc7f6721c20c7dfe8ca809e2d98b1c554a.tar.gz llvm-962021bc7f6721c20c7dfe8ca809e2d98b1c554a.tar.bz2 llvm-962021bc7f6721c20c7dfe8ca809e2d98b1c554a.tar.xz |
- Move TargetLowering::EmitTargetCodeForFrameDebugValue to TargetInstrInfo and rename it to emitFrameIndexDebugValue.
- Teach spiller to modify DBG_VALUE instructions to reference spill slots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 14 | ||||
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 10 |
2 files changed, 14 insertions, 10 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 959f55219e..db1a15b534 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -23,6 +23,7 @@ class CalleeSavedInfo; class LiveVariables; class MCAsmInfo; class MachineMemOperand; +class MDNode; class SDNode; class SelectionDAG; class TargetRegisterClass; @@ -361,6 +362,19 @@ public: return false; } + /// emitFrameIndexDebugValue - Emit a target-dependent form of + /// DBG_VALUE encoding the address of a frame index. Addresses would + /// normally be lowered the same way as other addresses on the target, + /// e.g. in load instructions. For targets that do not support this + /// the debug info is simply lost. + virtual MachineInstr *emitFrameIndexDebugValue(MachineFunction &MF, + unsigned FrameIx, + uint64_t Offset, + const MDNode *MDPtr, + DebugLoc dl) const { + return 0; + } + /// foldMemoryOperand - Attempt to fold a load or store of the specified stack /// slot into the specified machine instruction for the specified operand(s). /// If this is possible, a new instruction is returned with the specified diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 2c77331533..58037dded1 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -1255,16 +1255,6 @@ public: return SDValue(); } - /// EmitTargetCodeForFrameDebugValue - Emit a target-dependent form of - /// DBG_VALUE encoding the address of a frame index. Addresses would - /// normally be lowered the same way as other addresses on the target, - /// e.g. in load instructions. For targets that do not support this - /// the debug info is simply lost. - virtual void - EmitTargetCodeForFrameDebugValue(MachineBasicBlock* BB, unsigned FrameIx, - uint64_t Offset, MDNode *MDPtr, - DebugLoc dl) const {} - /// LowerOperationWrapper - This callback is invoked by the type legalizer /// to legalize nodes with an illegal operand type but legal result types. /// It replaces the LowerOperation callback in the type Legalizer. |