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 및 파이프라인 기술 전달. LLVM IR(Intermediate Representation)로 직접 작업하거나, opt 패스를 실행하거나, llc를 사용하여 IR을 생성하거나, 사용자 정의 패스를 위해 LLVM IR을 검사 또는 작성하거나, LLVM 백엔드가 IR을 어셈블리로 낮추는 방법을 이해할 때 사용하세요. LLVM IR, opt, llc, llvm-dis, LLVM 패스, IR 변환 또는 LLVM 기반 도구 구축에 대한 쿼리에 대해 활성화됩니다. 출처: mohitmishra786/low-level-dev-skills.