search for: debugifyeachfunctionpassmanager

Displaying 8 results from an estimated 8 matches for "debugifyeachfunctionpassmanager".

2018 Mar 16
2
Debugify and Verify-each mode
...is intended (hopefully others will > chime in about this :). If no one does, please file a bug. > > I imagine this is pretty simple to fix. You can just define and use custom > pass managers within opt which inject debugify passes as needed: > > // In opt.cpp: > > > class DebugifyEachFunctionPassManager : public > legacy::FunctionPassManager { > public: > explicit DebugifyEachFunctionPassManager(Module *M) > : FunctionPassManager(M) {} > > void add(Pass *P) override { > // FunctionPassManager::add(<debugify>) > FunctionPassManager::add(P); > } &...
2018 Mar 15
0
Debugify and Verify-each mode
...rrent behavior is intended (hopefully others will chime in about this :). If no one does, please file a bug. I imagine this is pretty simple to fix. You can just define and use custom pass managers within opt which inject debugify passes as needed: >> // In opt.cpp: >> >> class DebugifyEachFunctionPassManager : public legacy::FunctionPassManager { >> public: >> explicit DebugifyEachFunctionPassManager(Module *M) >> : FunctionPassManager(M) {} >> >> void add(Pass *P) override { >> // FunctionPassManager::add(<debugify>) >> FunctionPassMan...
2018 Mar 14
2
Debugify and Verify-each mode
Hi Vedant, hi all, My goal is to measure debug info loss of *each* optimization pass in LLVM. I am trying to create a debugify-each mode in opt, inspired by verify-each mode which is supposed to already work. However, if I understand correctly, the verify-each mode (triggered by -verify-each option in opt) only works when we provide a pass list or a pass pipeline. Is this intended? I mean, why
2018 Mar 16
0
Debugify and Verify-each mode
...(hopefully others will chime in about this :). If no one does, please file a bug. > > I imagine this is pretty simple to fix. You can just define and use custom pass managers within opt which inject debugify passes as needed: > >>> // In opt.cpp: >>> >>> class DebugifyEachFunctionPassManager : public legacy::FunctionPassManager { >>> public: >>> explicit DebugifyEachFunctionPassManager(Module *M) >>> : FunctionPassManager(M) {} >>> >>> void add(Pass *P) override { >>> // FunctionPassManager::add(<debugify>) >...
2018 Mar 16
2
Debugify and Verify-each mode
...gt;> chime in about this :). If no one does, please file a bug. >> >> I imagine this is pretty simple to fix. You can just define and use >> custom pass managers within opt which inject debugify passes as needed: >> >> // In opt.cpp: >> >> >> class DebugifyEachFunctionPassManager : public >> legacy::FunctionPassManager { >> public: >> explicit DebugifyEachFunctionPassManager(Module *M) >> : FunctionPassManager(M) {} >> >> void add(Pass *P) override { >> // FunctionPassManager::add(<debugify>) >> Functio...
2018 Apr 26
0
Debugify and Verify-each mode
...If no one does, please file a bug. >>> >>> I imagine this is pretty simple to fix. You can just define and use >>> custom pass managers within opt which inject debugify passes as needed: >>> >>> // In opt.cpp: >>> >>> >>> class DebugifyEachFunctionPassManager : public >>> legacy::FunctionPassManager { >>> public: >>> explicit DebugifyEachFunctionPassManager(Module *M) >>> : FunctionPassManager(M) {} >>> >>> void add(Pass *P) override { >>> // FunctionPassManager::add(<debugi...
2018 Apr 26
2
Debugify and Verify-each mode
...hime in about this :). If no one does, please file a bug. >> >> I imagine this is pretty simple to fix. You can just define and use custom pass managers within opt which inject debugify passes as needed: >> >>>> // In opt.cpp: >>>> >>>> class DebugifyEachFunctionPassManager : public legacy::FunctionPassManager { >>>> public: >>>> explicit DebugifyEachFunctionPassManager(Module *M) >>>> : FunctionPassManager(M) {} >>>> >>>> void add(Pass *P) override { >>>> // FunctionPassManager::ad...
2018 Apr 27
0
Debugify and Verify-each mode
...g. >>>> >>>> I imagine this is pretty simple to fix. You can just define and use >>>> custom pass managers within opt which inject debugify passes as needed: >>>> >>>> // In opt.cpp: >>>> >>>> >>>> class DebugifyEachFunctionPassManager : public >>>> legacy::FunctionPassManager { >>>> public: >>>> explicit DebugifyEachFunctionPassManager(Module *M) >>>> : FunctionPassManager(M) {} >>>> >>>> void add(Pass *P) override { >>>> // Functio...