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;
161 std::pair<Register, unsigned> selectVOP3ModsImpl(
Register Src,
162 bool IsCanonicalizing =
true,
163 bool AllowAbs =
true,
164 bool OpSel =
false)
const;
165 std::pair<Register, unsigned> selectVOP3PModsF32Impl(
Register Src)
const;
169 bool ForceVGPR =
false)
const;
194 std::pair<Register, unsigned>
196 bool IsDOT =
false)
const;
198 selectVOP3PRetHelper(
MachineOperand &Root,
bool IsDOT =
false)
const;
239 bool IsSigned)
const;
241 int64_t *
Offset,
bool *ScaleOffset)
const;
251 std::pair<Register, int>
264 bool NeedIOffset =
true)
const;
291 bool isDSOffset2Legal(
Register Base, int64_t Offset0, int64_t Offset1,
292 unsigned Size)
const;
293 bool isFlatScratchBaseLegal(
Register Addr)
const;
294 bool isFlatScratchBaseLegalSV(
Register Addr)
const;
295 bool isFlatScratchBaseLegalSVImm(
Register Addr)
const;
297 std::pair<Register, unsigned>
308 std::pair<Register, unsigned> selectDSReadWrite2Impl(
MachineOperand &Root,
309 unsigned size)
const;
313 std::tuple<Register, int64_t, bool>
314 getPtrBaseWithConstantOffset(
Register Root,
320 struct MUBUFAddressData {
325 bool shouldUseAddr64(MUBUFAddressData AddrData)
const;
327 void splitIllegalMUBUFOffset(MachineIRBuilder &
B,
328 Register &SOffset, int64_t &ImmOffset)
const;
330 MUBUFAddressData parseMUBUFAddress(
Register Src)
const;
332 bool selectMUBUFAddr64Impl(MachineOperand &Root,
Register &VAddr,
336 bool selectMUBUFOffsetImpl(MachineOperand &Root,
Register &RSrcReg,
340 selectBUFSOffset(MachineOperand &Root)
const;
343 selectMUBUFAddr64(MachineOperand &Root)
const;
346 selectMUBUFOffset(MachineOperand &Root)
const;
352 std::pair<Register, unsigned> selectVOP3PMadMixModsImpl(MachineOperand &Root,
353 bool &Matched)
const;
359 void renderTruncImm32(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
360 int OpIdx = -1)
const;
362 void renderTruncTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
364 void renderZextBoolTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
367 void renderOpSelTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
370 void renderSrcAndDstSelToOpSelXForm_0_0(MachineInstrBuilder &MIB,
371 const MachineInstr &
MI,
374 void renderSrcAndDstSelToOpSelXForm_0_1(MachineInstrBuilder &MIB,
375 const MachineInstr &
MI,
378 void renderSrcAndDstSelToOpSelXForm_1_0(MachineInstrBuilder &MIB,
379 const MachineInstr &
MI,
382 void renderSrcAndDstSelToOpSelXForm_1_1(MachineInstrBuilder &MIB,
383 const MachineInstr &
MI,
386 void renderDstSelToOpSelXForm(MachineInstrBuilder &MIB,
387 const MachineInstr &
MI,
int OpIdx)
const;
389 void renderSrcSelToOpSelXForm(MachineInstrBuilder &MIB,
390 const MachineInstr &
MI,
int OpIdx)
const;
392 void renderSrcAndDstSelToOpSelXForm_2_0(MachineInstrBuilder &MIB,
393 const MachineInstr &
MI,
396 void renderDstSelToOpSel3XFormXForm(MachineInstrBuilder &MIB,
397 const MachineInstr &
MI,
int OpIdx)
const;
399 void renderNegateImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
402 void renderBitcastFPImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
405 void renderBitcastFPImm32(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
407 renderBitcastFPImm(MIB,
MI, OpIdx);
409 void renderBitcastFPImm64(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
411 renderBitcastFPImm(MIB,
MI, OpIdx);
414 void renderCountTrailingOnesImm(MachineInstrBuilder &MIB,
415 const MachineInstr &
MI,
int OpIdx)
const;
416 void renderExtractCPol(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
418 void renderExtractSWZ(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
420 void renderExtractCpolSetGLC(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
423 void renderFPPow2ToExponent(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
426 void renderRoundMode(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
429 void renderVOP3PModsNeg(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
431 void renderVOP3PModsNegs(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
433 void renderVOP3PModsNegAbs(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
436 void renderPrefetchLoc(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
439 void renderScaledMAIIntrinsicOperand(MachineInstrBuilder &MIB,
440 const MachineInstr &
MI,
int OpIdx)
const;
442 bool isInlineImmediate(
const APInt &
Imm)
const;
443 bool isInlineImmediate(
const APFloat &
Imm)
const;
447 bool isUnneededShiftMask(
const MachineInstr &
MI,
unsigned ShAmtBits)
const;
465 const SIInstrInfo &TII;
466 const SIRegisterInfo &TRI;
467 const AMDGPURegisterBankInfo &RBI;
468 const GCNSubtarget &STI;
469#define GET_GLOBALISEL_PREDICATES_DECL
470#define AMDGPUSubtarget GCNSubtarget
471#include "AMDGPUGenGlobalISel.inc"
472#undef GET_GLOBALISEL_PREDICATES_DECL
473#undef AMDGPUSubtarget
475#define GET_GLOBALISEL_TEMPORARIES_DECL
476#include "AMDGPUGenGlobalISel.inc"
477#undef GET_GLOBALISEL_TEMPORARIES_DECL