87 unsigned SubIdx)
const;
89 bool constrainCopyLikeIntrin(
MachineInstr &
MI,
unsigned NewOpc)
const;
126 bool selectDSAppendConsume(
MachineInstr &
MI,
bool IsAppend)
const;
132 bool selectG_INTRINSIC_W_SIDE_EFFECTS(
MachineInstr &
I)
const;
164 std::pair<Register, unsigned> selectVOP3ModsImpl(
Register Src,
165 bool IsCanonicalizing =
true,
166 bool AllowAbs =
true,
167 bool OpSel =
false)
const;
168 std::pair<Register, unsigned> selectVOP3PModsF32Impl(
Register Src)
const;
172 bool ForceVGPR =
false)
const;
198 std::pair<Register, unsigned>
200 bool IsDOT =
false,
bool NoOpSel0 =
false)
const;
203 bool NoOpSel0 =
false)
const;
248 bool IsSMEM =
false)
const;
250 int64_t *
Offset,
bool *ScaleOffset)
const;
260 std::pair<Register, int64_t>
273 bool NeedIOffset =
true)
const;
300 bool isDSOffset2Legal(
Register Base, int64_t Offset0, int64_t Offset1,
301 unsigned Size)
const;
302 bool isFlatScratchBaseLegal(
Register Addr)
const;
303 bool isFlatScratchBaseLegalSV(
Register Addr)
const;
304 bool isFlatScratchBaseLegalSVImm(
Register Addr)
const;
306 std::pair<Register, int64_t>
317 std::pair<Register, int64_t> selectDSReadWrite2Impl(
MachineOperand &Root,
318 unsigned size)
const;
322 std::tuple<Register, int64_t, bool>
323 getPtrBaseWithConstantOffset(
Register Root,
329 struct MUBUFAddressData {
334 bool shouldUseAddr64(MUBUFAddressData AddrData)
const;
336 void splitIllegalMUBUFOffset(MachineIRBuilder &
B,
337 Register &SOffset, int64_t &ImmOffset)
const;
339 MUBUFAddressData parseMUBUFAddress(
Register Src)
const;
341 bool selectMUBUFAddr64Impl(MachineOperand &Root,
Register &VAddr,
345 bool selectMUBUFOffsetImpl(MachineOperand &Root,
Register &RSrcReg,
349 selectBUFSOffset(MachineOperand &Root)
const;
352 selectMUBUFAddr64(MachineOperand &Root)
const;
355 selectMUBUFOffset(MachineOperand &Root)
const;
361 std::pair<Register, unsigned> selectVOP3PMadMixModsImpl(MachineOperand &Root,
362 bool &Matched)
const;
368 void renderTruncTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
370 void renderPrefetchLen(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
372 void renderZextBoolTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
375 void renderOpSelTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
378 void renderSrcAndDstSelToOpSelXForm_0_0(MachineInstrBuilder &MIB,
379 const MachineInstr &
MI,
382 void renderSrcAndDstSelToOpSelXForm_0_1(MachineInstrBuilder &MIB,
383 const MachineInstr &
MI,
386 void renderSrcAndDstSelToOpSelXForm_1_0(MachineInstrBuilder &MIB,
387 const MachineInstr &
MI,
390 void renderSrcAndDstSelToOpSelXForm_1_1(MachineInstrBuilder &MIB,
391 const MachineInstr &
MI,
394 void renderDstSelToOpSelXForm(MachineInstrBuilder &MIB,
395 const MachineInstr &
MI,
int OpIdx)
const;
397 void renderSrcSelToOpSelXForm(MachineInstrBuilder &MIB,
398 const MachineInstr &
MI,
int OpIdx)
const;
400 void renderSrcAndDstSelToOpSelXForm_2_0(MachineInstrBuilder &MIB,
401 const MachineInstr &
MI,
404 void renderDstSelToOpSel3XFormXForm(MachineInstrBuilder &MIB,
405 const MachineInstr &
MI,
int OpIdx)
const;
407 void renderNegateImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
410 void renderBitcastFPImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
413 void renderBitcastFPImm32(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
415 renderBitcastFPImm(MIB,
MI, OpIdx);
417 void renderBitcastFPImm64(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
419 renderBitcastFPImm(MIB,
MI, OpIdx);
422 void renderCountTrailingOnesImm(MachineInstrBuilder &MIB,
423 const MachineInstr &
MI,
int OpIdx)
const;
424 void renderExtractCPol(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
426 void renderExtractSWZ(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
428 void renderExtractCpolSetGLC(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
431 void renderFPPow2ToExponent(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
434 void renderRoundMode(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
437 void renderVOP3PModsNeg(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
439 void renderVOP3PModsNegs(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
441 void renderVOP3PModsNegAbs(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
444 void renderPrefetchLoc(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
447 void renderScaledMAIIntrinsicOperand(MachineInstrBuilder &MIB,
448 const MachineInstr &
MI,
int OpIdx)
const;
450 bool isInlineImmediate(
const APInt &
Imm)
const;
451 bool isInlineImmediate(
const APFloat &
Imm)
const;
455 bool isUnneededShiftMask(
const MachineInstr &
MI,
unsigned ShAmtBits)
const;
473 const SIInstrInfo &TII;
474 const SIRegisterInfo &TRI;
475 const AMDGPURegisterBankInfo &RBI;
476 const GCNSubtarget &STI;
477#define GET_GLOBALISEL_PREDICATES_DECL
478#define AMDGPUSubtarget GCNSubtarget
479#include "AMDGPUGenGlobalISel.inc"
480#undef GET_GLOBALISEL_PREDICATES_DECL
481#undef AMDGPUSubtarget
483#define GET_GLOBALISEL_TEMPORARIES_DECL
484#include "AMDGPUGenGlobalISel.inc"
485#undef GET_GLOBALISEL_TEMPORARIES_DECL