86 unsigned SubIdx)
const;
88 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;
163 std::pair<Register, unsigned> selectVOP3ModsImpl(
Register Src,
164 bool IsCanonicalizing =
true,
165 bool AllowAbs =
true,
166 bool OpSel =
false)
const;
167 std::pair<Register, unsigned> selectVOP3PModsF32Impl(
Register Src)
const;
171 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> selectFlatOffsetImpl(
MachineOperand &Root,
263 bool NeedIOffset =
true)
const;
290 bool isDSOffset2Legal(
Register Base, int64_t Offset0, int64_t Offset1,
291 unsigned Size)
const;
292 bool isFlatScratchBaseLegal(
Register Addr)
const;
293 bool isFlatScratchBaseLegalSV(
Register Addr)
const;
294 bool isFlatScratchBaseLegalSVImm(
Register Addr)
const;
296 std::pair<Register, unsigned>
307 std::pair<Register, unsigned> selectDSReadWrite2Impl(
MachineOperand &Root,
308 unsigned size)
const;
312 std::tuple<Register, int64_t, bool>
313 getPtrBaseWithConstantOffset(
Register Root,
319 struct MUBUFAddressData {
324 bool shouldUseAddr64(MUBUFAddressData AddrData)
const;
326 void splitIllegalMUBUFOffset(MachineIRBuilder &
B,
327 Register &SOffset, int64_t &ImmOffset)
const;
329 MUBUFAddressData parseMUBUFAddress(
Register Src)
const;
331 bool selectMUBUFAddr64Impl(MachineOperand &Root,
Register &VAddr,
335 bool selectMUBUFOffsetImpl(MachineOperand &Root,
Register &RSrcReg,
339 selectBUFSOffset(MachineOperand &Root)
const;
342 selectMUBUFAddr64(MachineOperand &Root)
const;
345 selectMUBUFOffset(MachineOperand &Root)
const;
351 std::pair<Register, unsigned> selectVOP3PMadMixModsImpl(MachineOperand &Root,
352 bool &Matched)
const;
356 void renderTruncImm32(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
357 int OpIdx = -1)
const;
359 void renderTruncTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
361 void renderZextBoolTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
364 void renderOpSelTImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
367 void renderSrcAndDstSelToOpSelXForm_0_0(MachineInstrBuilder &MIB,
368 const MachineInstr &
MI,
371 void renderSrcAndDstSelToOpSelXForm_0_1(MachineInstrBuilder &MIB,
372 const MachineInstr &
MI,
375 void renderSrcAndDstSelToOpSelXForm_1_0(MachineInstrBuilder &MIB,
376 const MachineInstr &
MI,
379 void renderSrcAndDstSelToOpSelXForm_1_1(MachineInstrBuilder &MIB,
380 const MachineInstr &
MI,
383 void renderDstSelToOpSelXForm(MachineInstrBuilder &MIB,
384 const MachineInstr &
MI,
int OpIdx)
const;
386 void renderSrcSelToOpSelXForm(MachineInstrBuilder &MIB,
387 const MachineInstr &
MI,
int OpIdx)
const;
389 void renderSrcAndDstSelToOpSelXForm_2_0(MachineInstrBuilder &MIB,
390 const MachineInstr &
MI,
393 void renderDstSelToOpSel3XFormXForm(MachineInstrBuilder &MIB,
394 const MachineInstr &
MI,
int OpIdx)
const;
396 void renderNegateImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
399 void renderBitcastFPImm(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
402 void renderBitcastFPImm32(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
404 renderBitcastFPImm(MIB,
MI,
OpIdx);
406 void renderBitcastFPImm64(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
408 renderBitcastFPImm(MIB,
MI,
OpIdx);
411 void renderCountTrailingOnesImm(MachineInstrBuilder &MIB,
412 const MachineInstr &
MI,
int OpIdx)
const;
413 void renderExtractCPol(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
415 void renderExtractSWZ(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
417 void renderExtractCpolSetGLC(MachineInstrBuilder &MIB,
const MachineInstr &
MI,
420 void renderFrameIndex(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 AMDGPUTargetMachine &TM;
469 const GCNSubtarget &STI;
470#define GET_GLOBALISEL_PREDICATES_DECL
471#define AMDGPUSubtarget GCNSubtarget
472#include "AMDGPUGenGlobalISel.inc"
473#undef GET_GLOBALISEL_PREDICATES_DECL
474#undef AMDGPUSubtarget
476#define GET_GLOBALISEL_TEMPORARIES_DECL
477#include "AMDGPUGenGlobalISel.inc"
478#undef GET_GLOBALISEL_TEMPORARIES_DECL