86 unsigned SubIdx)
const;
88 bool constrainCopyLikeIntrin(
MachineInstr &
MI,
unsigned NewOpc)
const;
125 bool selectDSAppendConsume(
MachineInstr &
MI,
bool IsAppend)
const;
131 bool selectG_INTRINSIC_W_SIDE_EFFECTS(
MachineInstr &
I)
const;
162 std::pair<Register, unsigned> selectVOP3ModsImpl(
Register Src,
163 bool IsCanonicalizing =
true,
164 bool AllowAbs =
true,
165 bool OpSel =
false)
const;
166 std::pair<Register, unsigned> selectVOP3PModsF32Impl(
Register Src)
const;
170 bool ForceVGPR =
false)
const;
195 std::pair<Register, unsigned>
197 bool IsDOT =
false,
bool NoOpSel0 =
false)
const;
200 bool NoOpSel0 =
false)
const;
245 bool IsSMEM =
false)
const;
247 int64_t *
Offset,
bool *ScaleOffset)
const;
257 std::pair<Register, int64_t>
270 bool NeedIOffset =
true)
const;
297 bool isDSOffset2Legal(
Register Base, int64_t Offset0, int64_t Offset1,
298 unsigned Size)
const;
299 bool isFlatScratchBaseLegal(
Register Addr)
const;
300 bool isFlatScratchBaseLegalSV(
Register Addr)
const;
301 bool isFlatScratchBaseLegalSVImm(
Register Addr)
const;
303 std::pair<Register, int64_t>
314 std::pair<Register, int64_t> selectDSReadWrite2Impl(
MachineOperand &Root,
315 unsigned size)
const;
319 std::tuple<Register, int64_t, bool>
320 getPtrBaseWithConstantOffset(
Register Root,
326 struct MUBUFAddressData {
331 bool shouldUseAddr64(MUBUFAddressData AddrData)
const;
333 void splitIllegalMUBUFOffset(MachineIRBuilder &
B,
334 Register &SOffset, int64_t &ImmOffset)
const;
336 MUBUFAddressData parseMUBUFAddress(
Register Src)
const;
338 bool selectMUBUFAddr64Impl(MachineOperand &Root,
Register &VAddr,
342 bool selectMUBUFOffsetImpl(MachineOperand &Root,
Register &RSrcReg,
346 selectBUFSOffset(MachineOperand &Root)
const;
349 selectMUBUFAddr64(MachineOperand &Root)
const;
352 selectMUBUFOffset(MachineOperand &Root)
const;
358 std::pair<Register, unsigned> selectVOP3PMadMixModsImpl(MachineOperand &Root,
359 bool &Matched)
const;
365 void renderTruncTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
367 void renderZextBoolTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
370 void renderOpSelTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
373 void renderSrcAndDstSelToOpSelXForm_0_0(MachineInstrBuilder &MIB,
374 const MachineInstr &
MI,
377 void renderSrcAndDstSelToOpSelXForm_0_1(MachineInstrBuilder &MIB,
378 const MachineInstr &
MI,
381 void renderSrcAndDstSelToOpSelXForm_1_0(MachineInstrBuilder &MIB,
382 const MachineInstr &
MI,
385 void renderSrcAndDstSelToOpSelXForm_1_1(MachineInstrBuilder &MIB,
386 const MachineInstr &
MI,
389 void renderDstSelToOpSelXForm(MachineInstrBuilder &MIB,
390 const MachineInstr &
MI,
int OpIdx)
const;
392 void renderSrcSelToOpSelXForm(MachineInstrBuilder &MIB,
393 const MachineInstr &
MI,
int OpIdx)
const;
395 void renderSrcAndDstSelToOpSelXForm_2_0(MachineInstrBuilder &MIB,
396 const MachineInstr &
MI,
399 void renderDstSelToOpSel3XFormXForm(MachineInstrBuilder &MIB,
400 const MachineInstr &
MI,
int OpIdx)
const;
402 void renderNegateImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
405 void renderBitcastFPImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
408 void renderBitcastFPImm32(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
410 renderBitcastFPImm(MIB,
MI, OpIdx);
412 void renderBitcastFPImm64(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
414 renderBitcastFPImm(MIB,
MI, OpIdx);
417 void renderCountTrailingOnesImm(MachineInstrBuilder &MIB,
418 const MachineInstr &
MI,
int OpIdx)
const;
419 void renderExtractCPol(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
421 void renderExtractSWZ(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
423 void renderExtractCpolSetGLC(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
426 void renderFPPow2ToExponent(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
429 void renderRoundMode(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
432 void renderVOP3PModsNeg(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
434 void renderVOP3PModsNegs(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
436 void renderVOP3PModsNegAbs(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
439 void renderPrefetchLoc(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
442 void renderScaledMAIIntrinsicOperand(MachineInstrBuilder &MIB,
443 const MachineInstr &
MI,
int OpIdx)
const;
445 bool isInlineImmediate(
const APInt &
Imm)
const;
446 bool isInlineImmediate(
const APFloat &
Imm)
const;
450 bool isUnneededShiftMask(
const MachineInstr &
MI,
unsigned ShAmtBits)
const;
468 const SIInstrInfo &TII;
469 const SIRegisterInfo &TRI;
470 const AMDGPURegisterBankInfo &RBI;
471 const GCNSubtarget &STI;
472#define GET_GLOBALISEL_PREDICATES_DECL
473#define AMDGPUSubtarget GCNSubtarget
474#include "AMDGPUGenGlobalISel.inc"
475#undef GET_GLOBALISEL_PREDICATES_DECL
476#undef AMDGPUSubtarget
478#define GET_GLOBALISEL_TEMPORARIES_DECL
479#include "AMDGPUGenGlobalISel.inc"
480#undef GET_GLOBALISEL_TEMPORARIES_DECL