diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2016-01-28 16:04:37 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2016-01-28 16:04:37 +0000 |
commit | 2ff726272ae72bf2ddf9356cf4569a1b938e7ed5 (patch) | |
tree | c5f68abe20b867b4a059c47e6371538d067544b0 /llvm/lib/Target/AMDGPU/R600InstrInfo.h | |
parent | 7a2e2bed67cccec20e657abbdeac64564a0e5f7e (diff) | |
download | bcm5719-llvm-2ff726272ae72bf2ddf9356cf4569a1b938e7ed5.tar.gz bcm5719-llvm-2ff726272ae72bf2ddf9356cf4569a1b938e7ed5.zip |
AMDGPU: Move subtarget specific code out of AMDGPUInstrInfo.cpp
Summary:
Also delete all the stub functions that are identical to the
implementations in TargetInstrInfo.cpp.
Reviewers: arsenm
Subscribers: arsenm, llvm-commits
Differential Revision: http://reviews.llvm.org/D16609
llvm-svn: 259054
Diffstat (limited to 'llvm/lib/Target/AMDGPU/R600InstrInfo.h')
-rw-r--r-- | llvm/lib/Target/AMDGPU/R600InstrInfo.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/R600InstrInfo.h b/llvm/lib/Target/AMDGPU/R600InstrInfo.h index e7251c31107..ecfc1891af4 100644 --- a/llvm/lib/Target/AMDGPU/R600InstrInfo.h +++ b/llvm/lib/Target/AMDGPU/R600InstrInfo.h @@ -152,7 +152,7 @@ namespace llvm { /// instruction slots within an instruction group. bool isVector(const MachineInstr &MI) const; - bool isMov(unsigned Opcode) const override; + bool isMov(unsigned Opcode) const; DFAPacketizer * CreateTargetScheduleState(const TargetSubtargetInfo &) const override; @@ -257,7 +257,7 @@ namespace llvm { MachineInstr *buildMovInstr(MachineBasicBlock *MBB, MachineBasicBlock::iterator I, - unsigned DstReg, unsigned SrcReg) const override; + unsigned DstReg, unsigned SrcReg) const; /// \brief Get the index of Op in the MachineInstr. /// @@ -290,6 +290,11 @@ namespace llvm { /// \brief Clear the specified flag on the instruction. void clearFlag(MachineInstr *MI, unsigned Operand, unsigned Flag) const; + + // Helper functions that check the opcode for status information + bool isRegisterStore(const MachineInstr &MI) const; + bool isRegisterLoad(const MachineInstr &MI) const; + }; namespace AMDGPU { |