summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/BPF/BPFFrameLowering.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-07-14 17:17:13 +0000
committerMatthias Braun <matze@braunis.de>2015-07-14 17:17:13 +0000
commit02564865328fcd3ad83192044e8d6b7a2c802395 (patch)
tree7b8e13e24bf99ec8f070dfed1bc1486174d0b93d /llvm/lib/Target/BPF/BPFFrameLowering.h
parentc962d4f28bf0003ca315fb8fe267c5ade537a520 (diff)
downloadbcm5719-llvm-02564865328fcd3ad83192044e8d6b7a2c802395.tar.gz
bcm5719-llvm-02564865328fcd3ad83192044e8d6b7a2c802395.zip
PrologEpilogInserter: Rewrite API to determine callee save regsiters.
This changes TargetFrameLowering::processFunctionBeforeCalleeSavedScan(): - Rename the function to determineCalleeSaves() - Pass a bitset of callee saved registers by reference, thus avoiding the function-global PhysRegUsed bitset in MachineRegisterInfo. - Without PhysRegUsed the implementation is fine tuned to not save physcial registers which are only read but never modified. Related to rdar://21539507 Differential Revision: http://reviews.llvm.org/D10909 llvm-svn: 242165
Diffstat (limited to 'llvm/lib/Target/BPF/BPFFrameLowering.h')
-rw-r--r--llvm/lib/Target/BPF/BPFFrameLowering.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/BPF/BPFFrameLowering.h b/llvm/lib/Target/BPF/BPFFrameLowering.h
index 3b9fc443e05..251cda965ff 100644
--- a/llvm/lib/Target/BPF/BPFFrameLowering.h
+++ b/llvm/lib/Target/BPF/BPFFrameLowering.h
@@ -28,8 +28,8 @@ public:
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
bool hasFP(const MachineFunction &MF) const override;
- void processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
- RegScavenger *RS) const override;
+ void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
+ RegScavenger *RS) const override;
void
eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
OpenPOWER on IntegriCloud