Inspect and optimise LLVM IR before assembly.
Generates and analyses LLVM IR, applies optimisation passes, and produces assembly while diagnosing missed optimisations.
When to use it
Use when generating or inspecting LLVM IR, running optimisation passes, understanding assembly lowering, or diagnosing missed vectorisation.
Give it source code or LLVM IR to work on; it generates IR, applies optimisation passes, and lowers the result to assembly.
What you provide
Requires clang to generate LLVM IR from source and report missed vectorisation.
Requires opt to apply optimisation passes to LLVM IR.
Requires llc to lower LLVM IR to object files or assembly.
No additional actions listed.