2012-12-12 05:25:42 +08:00
|
|
|
//===-- R600InstrInfo.h - R600 Instruction Info Interface -------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
/// \file
|
|
|
|
/// \brief Interface definition for R600InstrInfo
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2016-03-11 16:00:27 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_AMDGPU_R600INSTRINFO_H
|
|
|
|
#define LLVM_LIB_TARGET_AMDGPU_R600INSTRINFO_H
|
2012-12-12 05:25:42 +08:00
|
|
|
|
|
|
|
#include "AMDGPUInstrInfo.h"
|
|
|
|
#include "R600RegisterInfo.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
2016-08-13 09:43:46 +08:00
|
|
|
|
|
|
|
namespace R600InstrFlags {
|
2016-08-16 07:54:44 +08:00
|
|
|
enum : uint64_t {
|
2016-08-13 09:43:46 +08:00
|
|
|
REGISTER_STORE = UINT64_C(1) << 62,
|
|
|
|
REGISTER_LOAD = UINT64_C(1) << 63
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2016-06-24 14:30:11 +08:00
|
|
|
class AMDGPUTargetMachine;
|
|
|
|
class DFAPacketizer;
|
|
|
|
class MachineFunction;
|
|
|
|
class MachineInstr;
|
|
|
|
class MachineInstrBuilder;
|
|
|
|
class R600Subtarget;
|
|
|
|
|
|
|
|
class R600InstrInfo final : public AMDGPUInstrInfo {
|
|
|
|
private:
|
2012-12-12 05:25:42 +08:00
|
|
|
const R600RegisterInfo RI;
|
2016-06-24 14:30:11 +08:00
|
|
|
const R600Subtarget &ST;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2016-06-24 14:30:11 +08:00
|
|
|
std::vector<std::pair<int, unsigned>>
|
2016-06-30 08:01:54 +08:00
|
|
|
ExtractSrcs(MachineInstr &MI, const DenseMap<unsigned, unsigned> &PV,
|
2016-06-24 14:30:11 +08:00
|
|
|
unsigned &ConstCount) const;
|
2014-06-18 00:53:14 +08:00
|
|
|
|
|
|
|
MachineInstrBuilder buildIndirectRead(MachineBasicBlock *MBB,
|
|
|
|
MachineBasicBlock::iterator I,
|
|
|
|
unsigned ValueReg, unsigned Address,
|
|
|
|
unsigned OffsetReg,
|
|
|
|
unsigned AddrChan) const;
|
|
|
|
|
|
|
|
MachineInstrBuilder buildIndirectWrite(MachineBasicBlock *MBB,
|
2016-06-24 14:30:11 +08:00
|
|
|
MachineBasicBlock::iterator I,
|
|
|
|
unsigned ValueReg, unsigned Address,
|
|
|
|
unsigned OffsetReg,
|
|
|
|
unsigned AddrChan) const;
|
|
|
|
public:
|
2013-05-18 00:50:02 +08:00
|
|
|
enum BankSwizzle {
|
2013-06-30 03:32:29 +08:00
|
|
|
ALU_VEC_012_SCL_210 = 0,
|
|
|
|
ALU_VEC_021_SCL_122,
|
|
|
|
ALU_VEC_120_SCL_212,
|
|
|
|
ALU_VEC_102_SCL_221,
|
2013-05-18 00:50:02 +08:00
|
|
|
ALU_VEC_201,
|
|
|
|
ALU_VEC_210
|
|
|
|
};
|
|
|
|
|
2016-06-24 14:30:11 +08:00
|
|
|
explicit R600InstrInfo(const R600Subtarget &);
|
|
|
|
|
|
|
|
const R600RegisterInfo &getRegisterInfo() const {
|
|
|
|
return RI;
|
|
|
|
}
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2016-06-12 23:39:02 +08:00
|
|
|
void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
|
|
|
|
const DebugLoc &DL, unsigned DestReg, unsigned SrcReg,
|
2014-04-29 15:57:24 +08:00
|
|
|
bool KillSrc) const override;
|
2013-11-22 08:41:08 +08:00
|
|
|
bool isLegalToSplitMBBAt(MachineBasicBlock &MBB,
|
2014-04-29 15:57:24 +08:00
|
|
|
MachineBasicBlock::iterator MBBI) const override;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
|
|
|
bool isReductionOp(unsigned opcode) const;
|
|
|
|
bool isCubeOp(unsigned opcode) const;
|
|
|
|
|
|
|
|
/// \returns true if this \p Opcode represents an ALU instruction.
|
|
|
|
bool isALUInstr(unsigned Opcode) const;
|
2013-06-28 23:47:08 +08:00
|
|
|
bool hasInstrModifiers(unsigned Opcode) const;
|
|
|
|
bool isLDSInstr(unsigned Opcode) const;
|
2013-11-15 08:12:45 +08:00
|
|
|
bool isLDSRetInstr(unsigned Opcode) const;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-10-02 03:32:58 +08:00
|
|
|
/// \returns true if this \p Opcode represents an ALU instruction or an
|
|
|
|
/// instruction that will be lowered in ExpandSpecialInstrs Pass.
|
2016-06-30 08:01:54 +08:00
|
|
|
bool canBeConsideredALU(const MachineInstr &MI) const;
|
2013-10-02 03:32:58 +08:00
|
|
|
|
2013-04-30 08:14:17 +08:00
|
|
|
bool isTransOnly(unsigned Opcode) const;
|
2016-06-30 08:01:54 +08:00
|
|
|
bool isTransOnly(const MachineInstr &MI) const;
|
2013-09-05 03:53:30 +08:00
|
|
|
bool isVectorOnly(unsigned Opcode) const;
|
2016-06-30 08:01:54 +08:00
|
|
|
bool isVectorOnly(const MachineInstr &MI) const;
|
2013-08-16 09:11:51 +08:00
|
|
|
bool isExport(unsigned Opcode) const;
|
2013-04-30 08:14:17 +08:00
|
|
|
|
2013-04-30 08:13:39 +08:00
|
|
|
bool usesVertexCache(unsigned Opcode) const;
|
2016-06-30 08:01:54 +08:00
|
|
|
bool usesVertexCache(const MachineInstr &MI) const;
|
2013-04-30 08:13:39 +08:00
|
|
|
bool usesTextureCache(unsigned Opcode) const;
|
2016-06-30 08:01:54 +08:00
|
|
|
bool usesTextureCache(const MachineInstr &MI) const;
|
2013-04-30 08:13:39 +08:00
|
|
|
|
2013-06-28 23:46:59 +08:00
|
|
|
bool mustBeLastInClause(unsigned Opcode) const;
|
2016-06-30 08:01:54 +08:00
|
|
|
bool usesAddressRegister(MachineInstr &MI) const;
|
|
|
|
bool definesAddressRegister(MachineInstr &MI) const;
|
|
|
|
bool readsLDSSrcReg(const MachineInstr &MI) const;
|
2013-06-28 23:46:59 +08:00
|
|
|
|
2013-07-23 09:48:24 +08:00
|
|
|
/// \returns The operand Index for the Sel operand given an index to one
|
|
|
|
/// of the instruction's src operands.
|
|
|
|
int getSelIdx(unsigned Opcode, unsigned SrcIdx) const;
|
|
|
|
|
2013-05-18 00:50:02 +08:00
|
|
|
/// \returns a pair for each src of an ALU instructions.
|
|
|
|
/// The first member of a pair is the register id.
|
|
|
|
/// If register is ALU_CONST, second member is SEL.
|
|
|
|
/// If register is ALU_LITERAL, second member is IMM.
|
|
|
|
/// Otherwise, second member value is undefined.
|
|
|
|
SmallVector<std::pair<MachineOperand *, int64_t>, 3>
|
2016-06-30 08:01:54 +08:00
|
|
|
getSrcs(MachineInstr &MI) const;
|
2013-05-18 00:50:02 +08:00
|
|
|
|
2013-06-30 03:32:43 +08:00
|
|
|
unsigned isLegalUpTo(
|
|
|
|
const std::vector<std::vector<std::pair<int, unsigned> > > &IGSrcs,
|
|
|
|
const std::vector<R600InstrInfo::BankSwizzle> &Swz,
|
|
|
|
const std::vector<std::pair<int, unsigned> > &TransSrcs,
|
|
|
|
R600InstrInfo::BankSwizzle TransSwz) const;
|
|
|
|
|
|
|
|
bool FindSwizzleForVectorSlot(
|
|
|
|
const std::vector<std::vector<std::pair<int, unsigned> > > &IGSrcs,
|
|
|
|
std::vector<R600InstrInfo::BankSwizzle> &SwzCandidate,
|
|
|
|
const std::vector<std::pair<int, unsigned> > &TransSrcs,
|
|
|
|
R600InstrInfo::BankSwizzle TransSwz) const;
|
2013-06-28 23:47:08 +08:00
|
|
|
|
2013-05-18 00:50:02 +08:00
|
|
|
/// Given the order VEC_012 < VEC_021 < VEC_120 < VEC_102 < VEC_201 < VEC_210
|
|
|
|
/// returns true and the first (in lexical order) BankSwizzle affectation
|
|
|
|
/// starting from the one already provided in the Instruction Group MIs that
|
|
|
|
/// fits Read Port limitations in BS if available. Otherwise returns false
|
|
|
|
/// and undefined content in BS.
|
2013-06-30 03:32:43 +08:00
|
|
|
/// isLastAluTrans should be set if the last Alu of MIs will be executed on
|
|
|
|
/// Trans ALU. In this case, ValidTSwizzle returns the BankSwizzle value to
|
|
|
|
/// apply to the last instruction.
|
2013-05-18 00:50:02 +08:00
|
|
|
/// PV holds GPR to PV registers in the Instruction Group MIs.
|
|
|
|
bool fitsReadPortLimitations(const std::vector<MachineInstr *> &MIs,
|
|
|
|
const DenseMap<unsigned, unsigned> &PV,
|
2013-06-30 03:32:43 +08:00
|
|
|
std::vector<BankSwizzle> &BS,
|
|
|
|
bool isLastAluTrans) const;
|
|
|
|
|
|
|
|
/// An instruction group can only access 2 channel pair (either [XY] or [ZW])
|
|
|
|
/// from KCache bank on R700+. This function check if MI set in input meet
|
|
|
|
/// this limitations
|
|
|
|
bool fitsConstReadLimitations(const std::vector<MachineInstr *> &) const;
|
|
|
|
/// Same but using const index set instead of MI set.
|
2013-03-14 23:50:45 +08:00
|
|
|
bool fitsConstReadLimitations(const std::vector<unsigned>&) const;
|
|
|
|
|
2014-01-25 01:20:08 +08:00
|
|
|
/// \brief Vector instructions are instructions that must fill all
|
2012-12-12 05:25:42 +08:00
|
|
|
/// instruction slots within an instruction group.
|
|
|
|
bool isVector(const MachineInstr &MI) const;
|
|
|
|
|
2016-01-29 00:04:37 +08:00
|
|
|
bool isMov(unsigned Opcode) const;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2014-10-09 09:59:35 +08:00
|
|
|
DFAPacketizer *
|
|
|
|
CreateTargetScheduleState(const TargetSubtargetInfo &) const override;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2016-09-15 04:43:16 +08:00
|
|
|
bool reverseBranchCondition(
|
2016-06-24 14:30:11 +08:00
|
|
|
SmallVectorImpl<MachineOperand> &Cond) const override;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2016-07-15 22:41:04 +08:00
|
|
|
bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
|
2016-06-24 14:30:11 +08:00
|
|
|
MachineBasicBlock *&FBB,
|
|
|
|
SmallVectorImpl<MachineOperand> &Cond,
|
|
|
|
bool AllowModify) const override;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2016-09-15 01:24:15 +08:00
|
|
|
unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
|
2015-06-12 03:30:37 +08:00
|
|
|
MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond,
|
2016-09-15 01:23:48 +08:00
|
|
|
const DebugLoc &DL,
|
|
|
|
int *BytesAdded = nullptr) const override;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2016-09-15 04:43:16 +08:00
|
|
|
unsigned removeBranch(MachineBasicBlock &MBB,
|
2016-09-15 01:23:48 +08:00
|
|
|
int *BytesRemvoed = nullptr) const override;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2016-02-23 10:46:52 +08:00
|
|
|
bool isPredicated(const MachineInstr &MI) const override;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2017-03-04 02:30:54 +08:00
|
|
|
bool isPredicable(const MachineInstr &MI) const override;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2017-03-15 23:37:42 +08:00
|
|
|
bool isProfitableToDupForIfCvt(MachineBasicBlock &MBB, unsigned NumCycles,
|
2016-06-24 14:30:11 +08:00
|
|
|
BranchProbability Probability) const override;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2017-03-15 23:37:42 +08:00
|
|
|
bool isProfitableToIfCvt(MachineBasicBlock &MBB, unsigned NumCycles,
|
2012-12-12 05:25:42 +08:00
|
|
|
unsigned ExtraPredCycles,
|
2015-09-11 07:10:42 +08:00
|
|
|
BranchProbability Probability) const override ;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2016-06-24 14:30:11 +08:00
|
|
|
bool isProfitableToIfCvt(MachineBasicBlock &TMBB,
|
|
|
|
unsigned NumTCycles, unsigned ExtraTCycles,
|
|
|
|
MachineBasicBlock &FMBB,
|
|
|
|
unsigned NumFCycles, unsigned ExtraFCycles,
|
|
|
|
BranchProbability Probability) const override;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2016-02-23 10:46:52 +08:00
|
|
|
bool DefinesPredicate(MachineInstr &MI,
|
|
|
|
std::vector<MachineOperand> &Pred) const override;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
|
|
|
bool isProfitableToUnpredicate(MachineBasicBlock &TMBB,
|
2016-06-24 14:30:11 +08:00
|
|
|
MachineBasicBlock &FMBB) const override;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2016-02-23 10:46:52 +08:00
|
|
|
bool PredicateInstruction(MachineInstr &MI,
|
2015-06-12 03:30:37 +08:00
|
|
|
ArrayRef<MachineOperand> Pred) const override;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2016-02-23 10:46:52 +08:00
|
|
|
unsigned int getPredicationCost(const MachineInstr &) const override;
|
2013-09-30 23:28:56 +08:00
|
|
|
|
2012-12-12 05:25:42 +08:00
|
|
|
unsigned int getInstrLatency(const InstrItineraryData *ItinData,
|
2016-06-30 08:01:54 +08:00
|
|
|
const MachineInstr &MI,
|
2014-04-29 15:57:24 +08:00
|
|
|
unsigned *PredCost = nullptr) const override;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2016-06-30 08:01:54 +08:00
|
|
|
bool expandPostRAPseudo(MachineInstr &MI) const override;
|
2014-06-18 00:53:14 +08:00
|
|
|
|
2013-11-14 07:36:50 +08:00
|
|
|
/// \brief Reserve the registers that may be accesed using indirect addressing.
|
|
|
|
void reserveIndirectRegisters(BitVector &Reserved,
|
|
|
|
const MachineFunction &MF) const;
|
2013-02-07 01:32:29 +08:00
|
|
|
|
2016-02-06 02:44:57 +08:00
|
|
|
/// Calculate the "Indirect Address" for the given \p RegIndex and
|
|
|
|
/// \p Channel
|
|
|
|
///
|
|
|
|
/// We model indirect addressing using a virtual address space that can be
|
|
|
|
/// accesed with loads and stores. The "Indirect Address" is the memory
|
|
|
|
/// address in this virtual address space that maps to the given \p RegIndex
|
|
|
|
/// and \p Channel.
|
|
|
|
unsigned calculateIndirectAddress(unsigned RegIndex, unsigned Channel) const;
|
|
|
|
|
2013-02-07 01:32:29 +08:00
|
|
|
|
2016-07-10 02:11:15 +08:00
|
|
|
/// \returns The register class to be used for loading and storing values
|
|
|
|
/// from an "Indirect Address" .
|
|
|
|
const TargetRegisterClass *getIndirectAddrRegClass() const;
|
|
|
|
|
|
|
|
/// \returns the smallest register index that will be accessed by an indirect
|
|
|
|
/// read or write or -1 if indirect addressing is not used by this program.
|
|
|
|
int getIndirectIndexBegin(const MachineFunction &MF) const;
|
|
|
|
|
|
|
|
/// \returns the largest register index that will be accessed by an indirect
|
|
|
|
/// read or write or -1 if indirect addressing is not used by this program.
|
|
|
|
int getIndirectIndexEnd(const MachineFunction &MF) const;
|
2013-02-07 01:32:29 +08:00
|
|
|
|
2016-02-06 02:44:57 +08:00
|
|
|
/// \brief Build instruction(s) for an indirect register write.
|
|
|
|
///
|
|
|
|
/// \returns The instruction that performs the indirect register write
|
2014-04-29 15:57:24 +08:00
|
|
|
MachineInstrBuilder buildIndirectWrite(MachineBasicBlock *MBB,
|
2016-02-06 02:44:57 +08:00
|
|
|
MachineBasicBlock::iterator I,
|
|
|
|
unsigned ValueReg, unsigned Address,
|
|
|
|
unsigned OffsetReg) const;
|
2013-02-07 01:32:29 +08:00
|
|
|
|
2016-02-06 02:44:57 +08:00
|
|
|
/// \brief Build instruction(s) for an indirect register read.
|
|
|
|
///
|
|
|
|
/// \returns The instruction that performs the indirect register read
|
2014-04-29 15:57:24 +08:00
|
|
|
MachineInstrBuilder buildIndirectRead(MachineBasicBlock *MBB,
|
|
|
|
MachineBasicBlock::iterator I,
|
|
|
|
unsigned ValueReg, unsigned Address,
|
2016-02-06 02:44:57 +08:00
|
|
|
unsigned OffsetReg) const;
|
2013-02-07 01:32:29 +08:00
|
|
|
|
2013-04-04 00:49:34 +08:00
|
|
|
unsigned getMaxAlusPerClause() const;
|
2013-02-07 01:32:29 +08:00
|
|
|
|
2016-06-24 14:30:11 +08:00
|
|
|
/// buildDefaultInstruction - This function returns a MachineInstr with all
|
|
|
|
/// the instruction modifiers initialized to their default values. You can
|
|
|
|
/// use this function to avoid manually specifying each instruction modifier
|
|
|
|
/// operand when building a new instruction.
|
2012-12-12 05:25:42 +08:00
|
|
|
///
|
|
|
|
/// \returns a MachineInstr with all the instruction modifiers initialized
|
|
|
|
/// to their default values.
|
|
|
|
MachineInstrBuilder buildDefaultInstruction(MachineBasicBlock &MBB,
|
|
|
|
MachineBasicBlock::iterator I,
|
|
|
|
unsigned Opcode,
|
|
|
|
unsigned DstReg,
|
|
|
|
unsigned Src0Reg,
|
|
|
|
unsigned Src1Reg = 0) const;
|
|
|
|
|
2013-05-18 00:50:32 +08:00
|
|
|
MachineInstr *buildSlotOfVectorInstruction(MachineBasicBlock &MBB,
|
|
|
|
MachineInstr *MI,
|
|
|
|
unsigned Slot,
|
|
|
|
unsigned DstReg) const;
|
|
|
|
|
2012-12-12 05:25:42 +08:00
|
|
|
MachineInstr *buildMovImm(MachineBasicBlock &BB,
|
2016-06-24 14:30:11 +08:00
|
|
|
MachineBasicBlock::iterator I,
|
|
|
|
unsigned DstReg,
|
|
|
|
uint64_t Imm) const;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-10-23 02:19:10 +08:00
|
|
|
MachineInstr *buildMovInstr(MachineBasicBlock *MBB,
|
|
|
|
MachineBasicBlock::iterator I,
|
2016-01-29 00:04:37 +08:00
|
|
|
unsigned DstReg, unsigned SrcReg) const;
|
2013-10-23 02:19:10 +08:00
|
|
|
|
2012-12-12 05:25:42 +08:00
|
|
|
/// \brief Get the index of Op in the MachineInstr.
|
|
|
|
///
|
|
|
|
/// \returns -1 if the Instruction does not contain the specified \p Op.
|
2013-06-26 05:22:18 +08:00
|
|
|
int getOperandIdx(const MachineInstr &MI, unsigned Op) const;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
|
|
|
/// \brief Get the index of \p Op for the given Opcode.
|
|
|
|
///
|
|
|
|
/// \returns -1 if the Instruction does not contain the specified \p Op.
|
2013-06-26 05:22:18 +08:00
|
|
|
int getOperandIdx(unsigned Opcode, unsigned Op) const;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
|
|
|
/// \brief Helper function for setting instruction flag values.
|
2016-06-30 08:01:54 +08:00
|
|
|
void setImmOperand(MachineInstr &MI, unsigned Op, int64_t Imm) const;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
|
|
|
///\brief Add one of the MO_FLAG* flags to the specified \p Operand.
|
2016-06-30 08:01:54 +08:00
|
|
|
void addFlag(MachineInstr &MI, unsigned Operand, unsigned Flag) const;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
|
|
|
///\brief Determine if the specified \p Flag is set on this \p Operand.
|
|
|
|
bool isFlagSet(const MachineInstr &MI, unsigned Operand, unsigned Flag) const;
|
|
|
|
|
|
|
|
/// \param SrcIdx The register source to set the flag on (e.g src0, src1, src2)
|
|
|
|
/// \param Flag The flag being set.
|
|
|
|
///
|
|
|
|
/// \returns the operand containing the flags for this instruction.
|
2016-06-30 08:01:54 +08:00
|
|
|
MachineOperand &getFlagOp(MachineInstr &MI, unsigned SrcIdx = 0,
|
2012-12-12 05:25:42 +08:00
|
|
|
unsigned Flag = 0) const;
|
|
|
|
|
|
|
|
/// \brief Clear the specified flag on the instruction.
|
2016-06-30 08:01:54 +08:00
|
|
|
void clearFlag(MachineInstr &MI, unsigned Operand, unsigned Flag) const;
|
2016-01-29 00:04:37 +08:00
|
|
|
|
|
|
|
// Helper functions that check the opcode for status information
|
2016-08-13 09:43:46 +08:00
|
|
|
bool isRegisterStore(const MachineInstr &MI) const {
|
|
|
|
return get(MI.getOpcode()).TSFlags & R600InstrFlags::REGISTER_STORE;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool isRegisterLoad(const MachineInstr &MI) const {
|
|
|
|
return get(MI.getOpcode()).TSFlags & R600InstrFlags::REGISTER_LOAD;
|
|
|
|
}
|
2012-12-12 05:25:42 +08:00
|
|
|
};
|
|
|
|
|
2013-09-06 02:38:09 +08:00
|
|
|
namespace AMDGPU {
|
|
|
|
|
|
|
|
int getLDSNoRetOp(uint16_t Opcode);
|
|
|
|
|
|
|
|
} //End namespace AMDGPU
|
|
|
|
|
2015-06-23 17:49:53 +08:00
|
|
|
} // End llvm namespace
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#endif
|