Go to the documentation of this file.
37 #define DEBUG_TYPE "x86-lower-tile-copy"
51 StringRef getPassName()
const override {
return "X86 Lower Tile Copy"; }
63 void X86LowerTileCopy::getAnalysisUsage(
AnalysisUsage &AU)
const {
69 return new X86LowerTileCopy();
85 if (!X86::TILERegClass.
contains(DstReg, SrcReg))
92 int TileSS = MF.getFrameInfo().CreateSpillStackObject(Size, Alignment);
96 int StrideSS = MF.getFrameInfo().CreateSpillStackObject(Size, Alignment);
110 unsigned Opc = X86::TILESTORED;
118 Opc = X86::TILELOADD;
125 MI.eraseFromParent();
const MachineInstrBuilder & addImm(int64_t Val) const
Add a new immediate operand.
This is an optimization pass for GlobalISel generic memory operations.
return AArch64::GPR64RegClass contains(Reg)
void setIsKill(bool Val=true)
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
unsigned const TargetRegisterInfo * TRI
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
const MachineOperand & getOperand(unsigned i) const
Represent the analysis usage information of a pass.
static const MachineInstrBuilder & addFrameReference(const MachineInstrBuilder &MIB, int FI, int Offset=0, bool mem=true)
addFrameReference - This function is used to add a reference to the base of an abstract object on the...
const HexagonInstrInfo * TII
MachineOperand class - Representation of each machine instruction operand.
This struct is a compact representation of a valid (non-zero power of two) alignment.
FunctionPass * createX86LowerTileCopyPass()
Return a pass that lower the tile copy instruction.
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
#define INITIALIZE_PASS_END(passName, arg, name, cfg, analysis)
Align getSpillAlign(const TargetRegisterClass &RC) const
Return the minimum required alignment in bytes for a spill slot for a register of this class.
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
unsigned getSpillSize(const TargetRegisterClass &RC) const
Return the size in bytes of the stack slot allocated to hold a spilled copy of a register from class ...
Representation of each machine instruction.
iterator_range< early_inc_iterator_impl< detail::IterOfRange< RangeT > > > make_early_inc_range(RangeT &&Range)
Make a range that does early increment to allow mutation of the underlying range without disrupting i...
const MachineInstrBuilder & addReg(Register RegNo, unsigned flags=0, unsigned SubReg=0) const
Add a new virtual register operand.
Register getReg() const
getReg - Returns the register number.
StringRef - Represent a constant reference to a string, i.e.
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
Wrapper class representing virtual and physical registers.
unsigned getKillRegState(bool B)
MachineInstrBuilder BuildMI(MachineFunction &MF, const DebugLoc &DL, const MCInstrDesc &MCID)
Builder interface. Specify how to create the initial instruction itself.
void setReg(Register Reg)
Change the register this operand corresponds to.
FunctionPass class - This class is used to implement most global optimizations.
INITIALIZE_PASS_BEGIN(X86LowerTileCopy, "lowertilecopy", "Tile Copy Lowering", false, false) INITIALIZE_PASS_END(X86LowerTileCopy