aboutsummaryrefslogtreecommitdiff
path: root/backend/include/rcc/CodeGen
Commit message (Collapse)AuthorAgeFilesLines
...
* [CodeGen] Add MIR function and block attributesRichard-Qin-X2026-08-016-18/+353
|
* [MIR] Add compilation unit reference contextRichard-Qin-X2026-08-011-0/+61
|
* [CodeGen] Add target register descriptionsRichard-Qin-X2026-08-016-11/+303
| | | | Introduce an immutable register topology for units, subregisters, classes, banks, and preserved masks. Bind instruction descriptors to this topology through TargetDescription so builders, cloning, and verification share one target-aware contract. Add the test-only TestTarget model and positive and negative target fact coverage.
* [CodeGen] Add target state and compilation statusRichard-Qin-X2026-08-014-0/+389
|
* [CodeGen] Add constant and jump table stateRichard-Qin-X2026-08-016-0/+586
| | | | Add stable, tombstone-preserving MachineConstantPool and MachineJumpTableInfo ownership. Define the versioned TargetConstant contract and integrate all table references with builders, verification, and deterministic deep cloning.
* [CodeGen] Add MachineFrameInfoRichard-Qin-X2026-08-013-0/+197
| | | | Model stable frame indices, stack object kinds, tombstones, lifetimes, and frozen layouts. Validate owned frame references in the builder and verifier, and remap complete frame state during MachineFunction cloning.
* [CodeGen] Add explicit MachineFunction cloningRichard-Qin-X2026-08-011-0/+49
| | | | Deep-clone the live MachineIR graph with deterministic identity maps while rebuilding CFG, def-use, ties, register configuration, and memory operand ownership. Verify both source and destination and omit detached arena history.
* [CodeGen] Add strict MachineIR verificationRichard-Qin-X2026-08-012-0/+40
| | | | Verify arena catalogs, intrusive layouts, reciprocal CFG edges, operand ownership, exact def-use coverage, instruction descriptors, pseudo deadlines, and MachineFunctionProperties. Preserve monotonic-arena history while rejecting detached objects that retain live state.
* [CodeGen] Add transactional MachineIR builderRichard-Qin-X2026-08-013-2/+189
| | | | Validate insertion cursors, operand ownership, descriptor constraints, ties, implicit registers, and memory operands before allocating or publishing an instruction. Share instruction legality checks with the verifier path and preserve deterministic insertion order.
* [CodeGen] Add machine instruction descriptorsRichard-Qin-X2026-08-013-0/+275
| | | | Introduce an immutable instruction registry with exact operand, implicit register, tie, pseudo lifecycle, and memory constraints. Validate descriptor tables before publication and use the same rules to verify MachineInstr instances.
* [CodeGen] Build the core MachineIR object modelRichard-Qin-X2026-08-017-0/+1002
| | | | | | Add arena-owned, address-stable MachineFunction, MachineBasicBlock, and MachineInstr nodes with intrusive layout and instruction lists. Model every required MachineOperand category, reciprocal ties, source state, and immutable per-instruction memory references. Implement physical and virtual register def-use chains whose back-links survive operand vector moves, plus vreg properties, tombstones, live-ins, reserved registers, and atomic CFG updates. Exercise ownership, reallocation, unlink/relink, cross-function rejection, and sanitizer paths.
* [CodeGen] Add machine IR value semanticsRichard-Qin-X2026-08-013-0/+558
| | | | | | Add strongly typed machine indices, lane masks, instruction flags, fixed-point branch probabilities, and preserved-register masks. Model immutable machine memory operands with explicit base identity, size, alignment, address space, alias information, and validated atomic operation and ordering rules. Cover normal, boundary, and invalid combinations in standalone tests.
* [CodeGen] Add core machine type primitivesRichard-Qin-X2026-08-014-0/+546
Introduce an independent 64-bit extended LLT representation that preserves exact floating-point semantics and supports fixed and scalable vectors. Add opaque physical and virtual registers, strongly typed monotonic stable IDs, and atomic MachineFunctionProperties transitions. Export the primitives through RCCBackend::CodeGen, cover their boundary and failure cases, record the frozen invariants, and normalize the architecture document permissions.