41 #define DEBUG_TYPE "wasm-argument-move" 49 StringRef getPassName()
const override {
return "WebAssembly Argument Move"; }
64 "Move ARGUMENT instructions for WebAssembly",
false,
false)
67 return new WebAssemblyArgumentMove();
70 bool WebAssemblyArgumentMove::runOnMachineFunction(
MachineFunction &MF) {
72 dbgs() <<
"********** Argument Move **********\n" 73 <<
"********** Function: " << MF.
getName() <<
'\n';
92 EntryMBB.insert(InsertPt,
MI.removeFromParent());
AnalysisUsage & addPreserved()
Add the specified Pass class to the set of analyses preserved by this pass.
This class represents lattice values for constants.
FunctionPass * createWebAssemblyArgumentMove()
char & MachineDominatorsID
MachineDominators - This pass is a machine dominators analysis pass.
MachineBlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate machine basic b...
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...
AnalysisUsage & addPreservedID(const void *ID)
StringRef getName() const
getName - Return the name of the corresponding LLVM function.
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.
const MachineBasicBlock & front() const
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.
INITIALIZE_PASS(WebAssemblyArgumentMove, DEBUG_TYPE, "Move ARGUMENT instructions for WebAssembly", false, false) FunctionPass *llvm