41 #define DEBUG_TYPE "wasm-argument-move"
64 return new WebAssemblyArgumentMove();
67 bool WebAssemblyArgumentMove::runOnMachineFunction(
MachineFunction &MF) {
69 dbgs() <<
"********** Argument Move **********\n"
70 <<
"********** Function: " << MF.
getName() <<
'\n';
89 EntryMBB.insert(InsertPt,
MI.removeFromParent());
AnalysisUsage & addPreserved()
Add the specified Pass class to the set of analyses preserved by this pass.
FunctionPass * createWebAssemblyArgumentMove()
char & MachineDominatorsID
MachineDominators - This pass is a machine dominators analysis pass.
virtual void getAnalysisUsage(AnalysisUsage &) const
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
MachineBlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate machine basic b...
virtual StringRef getPassName() const
getPassName - Return a nice clean name for a pass.
This file contains the entry points for global functions defined in the LLVM WebAssembly back-end...
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
const MachineBasicBlock & front() const
AnalysisUsage & addPreservedID(const void *ID)
This file contains the declaration of the WebAssembly-specific utility functions. ...
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
This file provides WebAssembly-specific target descriptions.
Represent the analysis usage information of a pass.
FunctionPass class - This class is used to implement most global optimizations.
iterator_range< T > make_range(T x, T y)
Convenience function for iterating over sub-ranges.
This file declares the WebAssembly-specific subclass of TargetSubtarget.
bool isArgument(const MachineInstr &MI)
void setPreservesCFG()
This function should be called by the pass, iff they do not:
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
Representation of each machine instruction.
This file declares WebAssembly-specific per-machine-function information.
StringRef - Represent a constant reference to a string, i.e.
StringRef getName() const
getName - Return the name of the corresponding LLVM function.