17#define DEBUG_TYPE "aarch64-post-coalescer-pass"
34 return "AArch64 Post Coalescer pass";
44char AArch64PostCoalescer::ID = 0;
49 "AArch64 Post Coalescer Pass",
false,
false)
55 if (skipFunction(MF.getFunction()))
62 MRI = &MF.getRegInfo();
63 LIS = &getAnalysis<LiveIntervalsWrapperPass>().getLIS();
68 switch (
MI.getOpcode()) {
71 case AArch64::COALESCER_BARRIER_FPR16:
72 case AArch64::COALESCER_BARRIER_FPR32:
73 case AArch64::COALESCER_BARRIER_FPR64:
74 case AArch64::COALESCER_BARRIER_FPR128: {
78 MRI->replaceRegWith(Dst, Src);
82 LIS->RemoveMachineInstrFromMaps(
MI);
85 LIS->removeInterval(Src);
86 LIS->createAndComputeVirtRegInterval(Src);
99 return new AArch64PostCoalescer();
unsigned const MachineRegisterInfo * MRI
aarch64 post coalescer pass
#define INITIALIZE_PASS_DEPENDENCY(depName)
#define INITIALIZE_PASS_END(passName, arg, name, cfg, analysis)
#define INITIALIZE_PASS_BEGIN(passName, arg, name, cfg, analysis)
register Register Coalescer
AArch64FunctionInfo - This class is derived from MachineFunctionInfo and contains private AArch64-spe...
bool hasStreamingModeChanges() const
Represent the analysis usage information of a pass.
AnalysisUsage & addRequired()
void setPreservesAll()
Set by analyses that do not transform their input at all.
FunctionPass class - This class is used to implement most global optimizations.
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
virtual bool runOnMachineFunction(MachineFunction &MF)=0
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformat...
Representation of each machine instruction.
MachineRegisterInfo - Keep track of information for virtual and physical registers,...
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
Pass interface - Implemented by all 'passes'.
virtual StringRef getPassName() const
getPassName - Return a nice clean name for a pass.
Wrapper class representing virtual and physical registers.
StringRef - Represent a constant reference to a string, i.e.
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
This is an optimization pass for GlobalISel generic memory operations.
void initializeAArch64PostCoalescerPass(PassRegistry &)
FunctionPass * createAArch64PostCoalescerPass()
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...