24#define DEBUG_TYPE "wasm-nullify-dbg-value-lists"
27class WebAssemblyNullifyDebugValueListsLegacy final
30 return "WebAssembly Nullify DBG_VALUE_LISTs";
41char WebAssemblyNullifyDebugValueListsLegacy::ID = 0;
43 "WebAssembly Nullify DBG_VALUE_LISTs",
false,
false)
46 return new WebAssemblyNullifyDebugValueListsLegacy();
50 LLVM_DEBUG(
dbgs() <<
"********** Nullify DBG_VALUE_LISTs **********\n"
51 "********** Function: "
57 for (
auto &
MBB : MF) {
58 for (
auto &
MI :
MBB) {
59 if (
MI.getOpcode() == TargetOpcode::DBG_VALUE_LIST) {
60 MI.setDebugValueUndef();
68bool WebAssemblyNullifyDebugValueListsLegacy::runOnMachineFunction(
#define INITIALIZE_PASS(passName, arg, name, cfg, analysis)
static bool nullifyDebugValueLists(MachineFunction &MF)
This file contains the entry points for global functions defined in the LLVM WebAssembly back-end.
Represents analyses that only rely on functions' control flow.
FunctionPass class - This class is used to implement most global optimizations.
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
StringRef getName() const
getName - Return the name of the corresponding LLVM function.
A set of analyses that are preserved following a run of a transformation pass.
static PreservedAnalyses all()
Construct a special preserved set that preserves all passes.
PreservedAnalyses & preserveSet()
Mark an analysis set as preserved.
Represent a constant reference to a string, i.e.
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
Pass manager infrastructure for declaring and invalidating analyses.
This is an optimization pass for GlobalISel generic memory operations.
AnalysisManager< MachineFunction > MachineFunctionAnalysisManager
LLVM_ABI PreservedAnalyses getMachineFunctionPassPreservedAnalyses()
Returns the minimum set of Analyses that all machine function passes must preserve.
LLVM_ABI raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
FunctionPass * createWebAssemblyNullifyDebugValueListsLegacyPass()