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;
192 std::pair<Register, unsigned>
194 bool IsDOT =
false)
const;
196 selectVOP3PRetHelper(
MachineOperand &Root,
bool IsDOT =
false)
const;
237 bool IsSigned)
const;
239 int64_t *
Offset,
bool *ScaleOffset)
const;
249 std::pair<Register, int>
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;
357 void renderTruncImm32(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
358 int OpIdx = -1)
const;
360 void renderTruncTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
362 void renderZextBoolTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
365 void renderOpSelTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
368 void renderSrcAndDstSelToOpSelXForm_0_0(MachineInstrBuilder &MIB,
369 const MachineInstr &
MI,
372 void renderSrcAndDstSelToOpSelXForm_0_1(MachineInstrBuilder &MIB,
373 const MachineInstr &
MI,
376 void renderSrcAndDstSelToOpSelXForm_1_0(MachineInstrBuilder &MIB,
377 const MachineInstr &
MI,
380 void renderSrcAndDstSelToOpSelXForm_1_1(MachineInstrBuilder &MIB,
381 const MachineInstr &
MI,
384 void renderDstSelToOpSelXForm(MachineInstrBuilder &MIB,
385 const MachineInstr &
MI,
int OpIdx)
const;
387 void renderSrcSelToOpSelXForm(MachineInstrBuilder &MIB,
388 const MachineInstr &
MI,
int OpIdx)
const;
390 void renderSrcAndDstSelToOpSelXForm_2_0(MachineInstrBuilder &MIB,
391 const MachineInstr &
MI,
394 void renderDstSelToOpSel3XFormXForm(MachineInstrBuilder &MIB,
395 const MachineInstr &
MI,
int OpIdx)
const;
397 void renderNegateImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
400 void renderBitcastFPImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
403 void renderBitcastFPImm32(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
405 renderBitcastFPImm(MIB,
MI, OpIdx);
407 void renderBitcastFPImm64(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
409 renderBitcastFPImm(MIB,
MI, OpIdx);
412 void renderCountTrailingOnesImm(MachineInstrBuilder &MIB,
413 const MachineInstr &
MI,
int OpIdx)
const;
414 void renderExtractCPol(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
416 void renderExtractSWZ(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
418 void renderExtractCpolSetGLC(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
421 void renderFPPow2ToExponent(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
424 void renderRoundMode(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
427 void renderVOP3PModsNeg(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
429 void renderVOP3PModsNegs(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
431 void renderVOP3PModsNegAbs(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
434 void renderPrefetchLoc(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
437 void renderScaledMAIIntrinsicOperand(MachineInstrBuilder &MIB,
438 const MachineInstr &
MI,
int OpIdx)
const;
440 bool isInlineImmediate(
const APInt &
Imm)
const;
441 bool isInlineImmediate(
const APFloat &
Imm)
const;
445 bool isUnneededShiftMask(
const MachineInstr &
MI,
unsigned ShAmtBits)
const;
463 const SIInstrInfo &TII;
464 const SIRegisterInfo &TRI;
465 const AMDGPURegisterBankInfo &RBI;
466 const GCNSubtarget &STI;
467#define GET_GLOBALISEL_PREDICATES_DECL
468#define AMDGPUSubtarget GCNSubtarget
469#include "AMDGPUGenGlobalISel.inc"
470#undef GET_GLOBALISEL_PREDICATES_DECL
471#undef AMDGPUSubtarget
473#define GET_GLOBALISEL_TEMPORARIES_DECL
474#include "AMDGPUGenGlobalISel.inc"
475#undef GET_GLOBALISEL_TEMPORARIES_DECL