radianceRadiance self-hosting compiler home log refs
agent/cell-permissions
  • master
  • agent/cell-permissions
  • cloudhead/master-next
  • agent/master-fixes
  • agent/opaque-records
  • agent/safe-ast
  • agent/lexical-regions-kernel-t2
  • agent/kernel-t2
  • kernel
  • cloudhead/memory-safety
  • cloudhead/generic-core-types
  • radiance-generics
  • ai/ril-safety
413073d6 module: (WIP) Associate updates with authority Alexis Sellier 4 days ago
Clone
compiler/ lib/ examples/ std/ arch/ char/ collections/ graph/ lang/ alloc/ ast/ gen/ il/ module/ parser/ resolver/ scanner/ alloc.rad 7.1 KiB ast.rad 26.9 KiB gen.rad 513 B il.rad 20.4 KiB lower.rad 321.7 KiB module.rad 17.3 KiB package.rad 1.3 KiB parser.rad 92.2 KiB resolver.rad 511.1 KiB scanner.rad 17.9 KiB sexpr.rad 6.7 KiB strings.rad 2.2 KiB types.rad 1.6 KiB sys/ arch.rad 68 B char.rad 855 B collections.rad 39 B fmt.rad 8.3 KiB graph.rad 4.3 KiB intrinsics.rad 467 B io.rad 1.7 KiB lang.rad 276 B mem.rad 2.3 KiB sys.rad 179 B testing.rad 2.4 KiB tests.rad 15.7 KiB vec.rad 3.2 KiB std.rad 299 B scripts/ seed/ sublime/ test/ vim/ .gitignore 336 B .gitsigners 112 B CELL_PERMISSIONS 6.8 KiB CONTRIBUTING 2.1 KiB LICENSE 1.1 KiB Makefile 5.4 KiB README 2.5 KiB STYLE 2.5 KiB std.lib 1.5 KiB std.lib.test 808 B
lib/std/lang/gen.rad 513 B raw
1
//! Code generation framework.
2
//!
3
//! Target-independent infrastructure for lowering IL to machine code.
4
//! Target-specific backends (e.g., `std::arch::rv64`) provide
5
//! instruction selection and emission.
6
7
export mod labels;
8
export mod bitset;
9
export mod regalloc;
10
export mod data;
11
export mod types;
12
13
/// Physical register.
14
///
15
/// Lightweight wrapper around a register number. Used both in the
16
/// target-independent register allocator and in architecture-specific
17
/// backends.
18
export record Reg: Copy(u8);