diff options
author | David Greene <greened@obbligato.org> | 2009-11-13 00:29:53 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2009-11-13 00:29:53 +0000 |
commit | dda3978d7877d2d60390833c73ed24857295e89c (patch) | |
tree | 3f13bb5866eba31734f415e5cab0abfa653ccbf5 /include/llvm/Target | |
parent | 98538b4bea8653d47ac4cc1b6f750a245b0a5e45 (diff) | |
download | external_llvm-dda3978d7877d2d60390833c73ed24857295e89c.zip external_llvm-dda3978d7877d2d60390833c73ed24857295e89c.tar.gz external_llvm-dda3978d7877d2d60390833c73ed24857295e89c.tar.bz2 |
Fix a bootstrap failure.
Provide special isLoadFromStackSlotPostFE and isStoreToStackSlotPostFE
interfaces to explicitly request checking for post-frame ptr elimination
operands. This uses a heuristic so it isn't reliable for correctness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87047 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 42621fe..194baaf 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -171,6 +171,14 @@ public: return 0; } + /// isLoadFromStackSlotPostFE - Check for post-frame ptr elimination + /// stack locations as well. This uses a heuristic so it isn't + /// reliable for correctness. + virtual unsigned isLoadFromStackSlotPostFE(const MachineInstr *MI, + int &FrameIndex) const { + return 0; + } + /// hasLoadFromStackSlot - If the specified machine instruction has /// a load from a stack slot, return true along with the FrameIndex /// of the loaded stack slot. If not, return false. Unlike @@ -192,6 +200,14 @@ public: return 0; } + /// isStoreToStackSlotPostFE - Check for post-frame ptr elimination + /// stack locations as well. This uses a heuristic so it isn't + /// reliable for correctness. + virtual unsigned isStoreToStackSlotPostFE(const MachineInstr *MI, + int &FrameIndex) const { + return 0; + } + /// hasStoreToStackSlot - If the specified machine instruction has a /// store to a stack slot, return true along with the FrameIndex of /// the loaded stack slot. If not, return false. Unlike |