I have added a print statement in AlwaysInline.cpp file . I want to run this “always-inline” pass using new pass manger .
What would be the command in opt to get the output from AlwaysInline.cpp . My main aim is to disable passes of O3 level one by one . However , I want to get the print statement after running the pass -‘always-inline’
Hi @soma_p, please can you provide the print statement you’ve added?
Running opt -S --passes=always-inline source.ll
will execute the pass, but you may need to add a "-debug’ flag if you’re using the LLVM_DEBUG macro to wrap your print e.g.
Hi @soma_p, please can you provide the print statement you’ve added?
Running ‘opt -S --passes=always-inline source.ll’ will run the pass, but you may need to add a "-debug’ flag if you’re using the LLVM_DEBUG macro to wrap your print e.g.