mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-17 00:50:58 +00:00
Move the constructor for NVPTXFrameLowering into the implementation
file in preparation for the subtarget move. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211847 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9456c7b20a
commit
84d545dd34
@ -26,6 +26,10 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
NVPTXFrameLowering::NVPTXFrameLowering(NVPTXSubtarget &STI)
|
||||
: TargetFrameLowering(TargetFrameLowering::StackGrowsUp, 8, 0),
|
||||
is64bit(STI.is64Bit()) {}
|
||||
|
||||
bool NVPTXFrameLowering::hasFP(const MachineFunction &MF) const { return true; }
|
||||
|
||||
void NVPTXFrameLowering::emitPrologue(MachineFunction &MF) const {
|
||||
|
@ -14,18 +14,15 @@
|
||||
#ifndef NVPTX_FRAMELOWERING_H
|
||||
#define NVPTX_FRAMELOWERING_H
|
||||
|
||||
#include "NVPTXSubtarget.h"
|
||||
#include "llvm/Target/TargetFrameLowering.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
class NVPTXSubtarget;
|
||||
class NVPTXFrameLowering : public TargetFrameLowering {
|
||||
bool is64bit;
|
||||
|
||||
public:
|
||||
explicit NVPTXFrameLowering(NVPTXSubtarget &STI)
|
||||
: TargetFrameLowering(TargetFrameLowering::StackGrowsUp, 8, 0),
|
||||
is64bit(STI.is64Bit()) {}
|
||||
explicit NVPTXFrameLowering(NVPTXSubtarget &STI);
|
||||
|
||||
bool hasFP(const MachineFunction &MF) const override;
|
||||
void emitPrologue(MachineFunction &MF) const override;
|
||||
|
Loading…
Reference in New Issue
Block a user