23#include "llvm/IR/IntrinsicsPISA.h"
26std::tuple<MachineInstr *, unsigned>
32 while (
Opc == TargetOpcode::G_BITCAST ||
38 LLT DstTy =
MRI.getType(
DefMI->getOperand(0).getReg());
39 if (NoVectors && (DstTy.
isVector() || SrcTy.isVector()))
45 int RegIdx =
DefMI->findRegisterDefOperandIdx(DefReg,
nullptr);
46 assert(RegIdx >= 0 &&
"defining register operand not found");
47 return std::make_tuple(
DefMI,
static_cast<unsigned>(RegIdx));
MachineInstrBuilder MachineInstrBuilder & DefMI
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
This file declares the MachineIRBuilder class.
This file declares common definitions used by the PISA MC components.
This file declares instruction information for the PISA target.
This file declares utility functions for the PISA backend.
This file declares the top-level interfaces for the PISA target.
MachineRegisterInfo & MRI
constexpr bool isVector() const
Representation of each machine instruction.
MachineRegisterInfo - Keep track of information for virtual and physical registers,...
Wrapper class representing virtual and physical registers.
std::tuple< MachineInstr *, unsigned > getDefIgnoringBitcasts(Register Reg, const MachineRegisterInfo &MRI, bool NoVectors)
bool isPreISelGenericOptimizationHint(unsigned Opcode)