LLVM IR and Tooling Purpose Guide agents through the LLVM IR pipeline: generating IR, running optimisation passes with , lowering to assembly with , and inspecting IR for debugging or performance work. Triggers - "Show me the LLVM IR for this function" - "How do I run an LLVM optimisation pass?" - "What does this LLVM IR instruction mean?" - "How do I write a custom LLVM pass?" - "Why isn't auto-vectorisation happening in LLVM?" Workflow 1. Generate LLVM IR 2. Run optimisation passes with 3. Lower IR to assembly with 4. Inspect IR Key IR constructs to understand: | Construct | Meaning | |----…