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 und Pipeline-Fähigkeit bestehen. Verwenden Sie diese Option, wenn Sie direkt mit LLVM Intermediate Representation (IR) arbeiten, Opt-Durchläufe ausführen, IR mit LLC generieren, LLVM-IR für benutzerdefinierte Durchgänge überprüfen oder schreiben oder verstehen, wie das LLVM-Backend IR auf Assembly senkt. Wird bei Abfragen zu LLVM IR, opt, llc, llvm-dis, LLVM-Pässen, IR-Transformationen oder dem Erstellen von LLVM-basierten Tools aktiviert. Quelle: mohitmishra786/low-level-dev-skills.