Guide agents through the LLVM IR pipeline: generating IR, running optimisation passes with opt, lowering to assembly with llc, and inspecting IR for debugging or performance work.
| alloca | Stack allocation (pre-SSA; mem2reg promotes to registers) | | load/store | Memory access | | getelementptr (GEP) | Pointer arithmetic / field access | | phi | SSA φ-node: merges values from predecessor blocks | | call/invoke | Function call (invoke has exception edges) | | icmp/fcmp | Integer/float comparison |
| br | Branch (conditional or unconditional) | | ret | Return | | bitcast | Reinterpret bits (no-op in codegen) | | ptrtoint/inttoptr | Pointer↔integer (avoid where possible) |
LLVM IR e passa abilità pipeline. Da utilizzare quando si lavora direttamente con LLVM Intermediate Representation (IR), si eseguono passaggi opt, si genera IR con llc, si ispeziona o si scrive IR LLVM per passaggi personalizzati o si comprende come il backend LLVM riduce l'IR all'assemblaggio. Si attiva su query su LLVM IR, opt, llc, llvm-dis, passaggi LLVM, trasformazioni IR o creazione di strumenti basati su LLVM. Fonte: mohitmishra786/low-level-dev-skills.