Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1034)

Side by Side Diff: lib/Target/Mips/MipsFrameLowering.h

Issue 2470173003: Cherry-pick r237153: [Mips] Return false for isFPCloseToIncomingSP() (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | test/CodeGen/Mips/emergency-spill-slot-near-fp.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===-- MipsFrameLowering.h - Define frame lowering for Mips ----*- C++ -*-===// 1 //===-- MipsFrameLowering.h - Define frame lowering for Mips ----*- C++ -*-===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // The LLVM Compiler Infrastructure
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // 10 //
(...skipping 14 matching lines...) Expand all
25 const MipsSubtarget &STI; 25 const MipsSubtarget &STI;
26 26
27 public: 27 public:
28 explicit MipsFrameLowering(const MipsSubtarget &sti, unsigned Alignment) 28 explicit MipsFrameLowering(const MipsSubtarget &sti, unsigned Alignment)
29 : TargetFrameLowering(StackGrowsDown, Alignment, 0, Alignment), STI(sti) {} 29 : TargetFrameLowering(StackGrowsDown, Alignment, 0, Alignment), STI(sti) {}
30 30
31 static const MipsFrameLowering *create(const MipsSubtarget &ST); 31 static const MipsFrameLowering *create(const MipsSubtarget &ST);
32 32
33 bool hasFP(const MachineFunction &MF) const override; 33 bool hasFP(const MachineFunction &MF) const override;
34 34
35 bool isFPCloseToIncomingSP() const override { return false; }
36
35 void 37 void
36 eliminateCallFramePseudoInstr(MachineFunction &MF, 38 eliminateCallFramePseudoInstr(MachineFunction &MF,
37 MachineBasicBlock &MBB, 39 MachineBasicBlock &MBB,
38 MachineBasicBlock::iterator I) const override; 40 MachineBasicBlock::iterator I) const override;
39 41
40 protected: 42 protected:
41 uint64_t estimateStackSize(const MachineFunction &MF) const; 43 uint64_t estimateStackSize(const MachineFunction &MF) const;
42 }; 44 };
43 45
44 /// Create MipsFrameLowering objects. 46 /// Create MipsFrameLowering objects.
45 const MipsFrameLowering *createMips16FrameLowering(const MipsSubtarget &ST); 47 const MipsFrameLowering *createMips16FrameLowering(const MipsSubtarget &ST);
46 const MipsFrameLowering *createMipsSEFrameLowering(const MipsSubtarget &ST); 48 const MipsFrameLowering *createMipsSEFrameLowering(const MipsSubtarget &ST);
47 49
48 } // End llvm namespace 50 } // End llvm namespace
49 51
50 #endif 52 #endif
OLDNEW
« no previous file with comments | « no previous file | test/CodeGen/Mips/emergency-spill-slot-near-fp.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698