[PATCH] D109202: [WebAssembly] Change WebAssemblyMCLowerPrePass to ModulePass
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 2 23:01:43 PDT 2021
aeubanks added a comment.
IIUC, you're trying to make this pass run on all functions before some later function pass. A cleaner way is to add a barrier pass either after this pass or before AsmPrinter (or whatever pass you want) via `createBarrierNoopPass()`. That will force all function passes to run on all functions before the barrier pass, since the pass manager can't schedule function passes through a module pass so it creates two function pass managers, one before and one after the barrier module pass.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109202/new/
https://reviews.llvm.org/D109202
More information about the llvm-commits
mailing list