22#define DEBUG_TYPE "wasm-nullify-dbg-value-lists"
27 return "WebAssembly Nullify DBG_VALUE_LISTs";
38char WebAssemblyNullifyDebugValueLists::ID = 0;
40 "WebAssembly Nullify DBG_VALUE_LISTs",
false,
false)
43 return new WebAssemblyNullifyDebugValueLists();
46bool WebAssemblyNullifyDebugValueLists::runOnMachineFunction(
48 LLVM_DEBUG(
dbgs() <<
"********** Nullify DBG_VALUE_LISTs **********\n"
49 "********** Function: "
55 for (
auto &
MBB : MF) {
56 for (
auto &
MI :
MBB) {
57 if (
MI.getOpcode() == TargetOpcode::DBG_VALUE_LIST) {
58 MI.setDebugValueUndef();
#define INITIALIZE_PASS(passName, arg, name, cfg, analysis)
This file declares the WebAssembly-specific subclass of TargetSubtarget.
This file contains the entry points for global functions defined in the LLVM WebAssembly back-end.
FunctionPass class - This class is used to implement most global optimizations.
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
virtual bool runOnMachineFunction(MachineFunction &MF)=0
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformat...
StringRef getName() const
getName - Return the name of the corresponding LLVM function.
virtual StringRef getPassName() const
getPassName - Return a nice clean name for a pass.
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.
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
FunctionPass * createWebAssemblyNullifyDebugValueLists()