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;
193 std::pair<Register, unsigned>
195 bool IsDOT =
false)
const;
197 selectVOP3PRetHelper(
MachineOperand &Root,
bool IsDOT =
false)
const;
238 bool IsSigned)
const;
240 int64_t *
Offset,
bool *ScaleOffset)
const;
250 std::pair<Register, int> selectFlatOffsetImpl(
MachineOperand &Root,
262 bool NeedIOffset =
true)
const;
289 bool isDSOffset2Legal(
Register Base, int64_t Offset0, int64_t Offset1,
290 unsigned Size)
const;
291 bool isFlatScratchBaseLegal(
Register Addr)
const;
292 bool isFlatScratchBaseLegalSV(
Register Addr)
const;
293 bool isFlatScratchBaseLegalSVImm(
Register Addr)
const;
295 std::pair<Register, unsigned>
306 std::pair<Register, unsigned> selectDSReadWrite2Impl(
MachineOperand &Root,
307 unsigned size)
const;
311 std::tuple<Register, int64_t, bool>
312 getPtrBaseWithConstantOffset(
Register Root,
318 struct MUBUFAddressData {
323 bool shouldUseAddr64(MUBUFAddressData AddrData)
const;
325 void splitIllegalMUBUFOffset(MachineIRBuilder &
B,
326 Register &SOffset, int64_t &ImmOffset)
const;
328 MUBUFAddressData parseMUBUFAddress(
Register Src)
const;
330 bool selectMUBUFAddr64Impl(MachineOperand &Root,
Register &VAddr,
334 bool selectMUBUFOffsetImpl(MachineOperand &Root,
Register &RSrcReg,
338 selectBUFSOffset(MachineOperand &Root)
const;
341 selectMUBUFAddr64(MachineOperand &Root)
const;
344 selectMUBUFOffset(MachineOperand &Root)
const;
350 std::pair<Register, unsigned> selectVOP3PMadMixModsImpl(MachineOperand &Root,
351 bool &Matched)
const;
355 void renderTruncImm32(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
356 int OpIdx = -1)
const;
358 void renderTruncTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
360 void renderZextBoolTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
363 void renderOpSelTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
366 void renderSrcAndDstSelToOpSelXForm_0_0(MachineInstrBuilder &MIB,
367 const MachineInstr &
MI,
370 void renderSrcAndDstSelToOpSelXForm_0_1(MachineInstrBuilder &MIB,
371 const MachineInstr &
MI,
374 void renderSrcAndDstSelToOpSelXForm_1_0(MachineInstrBuilder &MIB,
375 const MachineInstr &
MI,
378 void renderSrcAndDstSelToOpSelXForm_1_1(MachineInstrBuilder &MIB,
379 const MachineInstr &
MI,
382 void renderDstSelToOpSelXForm(MachineInstrBuilder &MIB,
383 const MachineInstr &
MI,
int OpIdx)
const;
385 void renderSrcSelToOpSelXForm(MachineInstrBuilder &MIB,
386 const MachineInstr &
MI,
int OpIdx)
const;
388 void renderSrcAndDstSelToOpSelXForm_2_0(MachineInstrBuilder &MIB,
389 const MachineInstr &
MI,
392 void renderDstSelToOpSel3XFormXForm(MachineInstrBuilder &MIB,
393 const MachineInstr &
MI,
int OpIdx)
const;
395 void renderNegateImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
398 void renderBitcastFPImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
401 void renderBitcastFPImm32(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
403 renderBitcastFPImm(MIB,
MI,
OpIdx);
405 void renderBitcastFPImm64(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
407 renderBitcastFPImm(MIB,
MI,
OpIdx);
410 void renderCountTrailingOnesImm(MachineInstrBuilder &MIB,
411 const MachineInstr &
MI,
int OpIdx)
const;
412 void renderExtractCPol(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
414 void renderExtractSWZ(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
416 void renderExtractCpolSetGLC(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
419 void renderFrameIndex(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
422 void renderFPPow2ToExponent(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
425 void renderRoundMode(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
428 void renderVOP3PModsNeg(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
430 void renderVOP3PModsNegs(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
432 void renderVOP3PModsNegAbs(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
435 void renderPrefetchLoc(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
438 void renderScaledMAIIntrinsicOperand(MachineInstrBuilder &MIB,
439 const MachineInstr &
MI,
int OpIdx)
const;
441 bool isInlineImmediate(
const APInt &Imm)
const;
442 bool isInlineImmediate(
const APFloat &Imm)
const;
446 bool isUnneededShiftMask(
const MachineInstr &
MI,
unsigned ShAmtBits)
const;
464 const SIInstrInfo &TII;
465 const SIRegisterInfo &TRI;
466 const AMDGPURegisterBankInfo &RBI;
467 const AMDGPUTargetMachine &TM;
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