Package org.ek9lang.compiler.ir
package org.ek9lang.compiler.ir
Intermediate Representation (IR) - The common foundation for code generation.
This package defines the EK9 IR structure that serves as the bridge between the frontend phases (parsing, type checking, resolution) and the backend code generation phases.
The IR is designed to support multiple target architectures:
- JVM - Java bytecode generation for enterprise compatibility
- LLVM - Native compilation for performance-critical systems
Key Components:
IROpcode- Defines the 63 IR opcodesCoverageMode- Coverage instrumentation modesCoverageProbeType- Types of coverage probes
Subpackages:
org.ek9lang.compiler.ir.instructions- IR instruction classesorg.ek9lang.compiler.ir.data- Metadata and detail structuresorg.ek9lang.compiler.ir.support- Support utilities
IR generation occurs in Phase 10 (org.ek9lang.compiler.phase10), followed by
analysis in Phase 11 and optimization in Phase 12.
-
Enum ClassesClassDescriptionCoverage tracking modes that control how probe hits are recorded.Enumeration of coverage probe types placed at control flow points.Enumeration of all IR opcodes used in the EK9 intermediate representation.