I’d like to run clang with some optimization passes (-reassociate, -simplifycfg, -dce…)
But in the end I need to dump the llvm IR (no link to assembly generation).
I didn’t find any way to do that.
I found out that passes are run via opt, but opt generates bc code, and I want IR.
Any help will be welcome