aboutsummaryrefslogtreecommitdiff
path: root/backend/include/rcc/CodeGen
Commit message (Collapse)AuthorAgeFilesLines
* [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.