opt -time-passes -info-output-file tmp $passes $input -o $output -f
File lib/Support/Timer.cpp
opt --debug-pass=None|Arguments|Structure|Executions|Details $input -o $output -f
static cl::opt<enum PassDebugLevel>
PassDebugging("debug-pass", cl::Hidden,
cl::desc("Print PassManager debugging information"),
cl::values(
clEnumVal(None , "disable debug output"),
clEnumVal(Arguments , "print pass arguments to pass to 'opt'"),
clEnumVal(Structure , "print pass structure before run()"),
clEnumVal(Executions, "print pass name before it is executed"),
clEnumVal(Details , "print pass details when it is executed"),
clEnumValEnd));
本文介绍了LLVM中opt工具的调试选项配置方法及其使用场景。通过不同的调试级别设置,如None、Arguments、Structure、Executions及Details,可以实现对PassManager的不同层面的调试信息输出。

3677

被折叠的 条评论
为什么被折叠?



