Tag

IR

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 9, 2022 · Fundamentals

Understanding Kotlin IR and Compose Compiler Code Generation

This article explains how the Kotlin Compose Compiler uses the intermediate representation (IR) to generate code, covering IR tree structure, traversal with visitors and transformers, and the process of adding composer parameters and restart groups via custom IrGenerationExtension plugins.

AndroidCompiler PluginsCompose Compiler
0 likes · 10 min read
Understanding Kotlin IR and Compose Compiler Code Generation
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 12, 2022 · Fundamentals

Understanding Kotlin Compiler Internals: From K1 to K2, FIR, IR, and Compose Compiler

This article explains the architecture and evolution of the Kotlin compiler, detailing the roles of the frontend and backend, the transition from K1’s PSI and BindingContext to K2’s FIR and IR, and how Kotlin Compiler Plugins like Compose and No‑arg are implemented.

CompilerComposeFIR
0 likes · 19 min read
Understanding Kotlin Compiler Internals: From K1 to K2, FIR, IR, and Compose Compiler
Amap Tech
Amap Tech
Aug 28, 2020 · Fundamentals

Code Coverage Instrumentation Using LLVM and GCOV

The article explains how to instrument code for coverage using LLVM’s modular compiler infrastructure—adding compile‑time probes that generate .gcno files, runtime counters that produce .gcda files, and then parsing these with GCOV, while detailing LLVM IR, basic blocks, flow graphs, and extensions for custom plugins.

CompilerIRInstrumentation
0 likes · 17 min read
Code Coverage Instrumentation Using LLVM and GCOV