Dump IR after each llvm optimization (each pass), both llvm ir passes and backend debugging
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to find some debugging options for clang/LLVM which work like gcc's -fdump-tree-all-all -fdump-rtl-all-all -fdump-ipa-all-all . Basically I want to have an LLVM IR dumps before and after each optimization pass, also it can be useful to have all dumps of AST from clang and all phases of code generation (backend phases, Selection DAG, ISEL-SDNode, register allocation, MCInsts). I was able to find only the clang's -ccc-print-phases , but it will only print high-level phases names, e.g. preprocess-compile-assemble-link; but no any dump of