compiler/
lib/
examples/
std/
arch/
char/
collections/
lang/
alloc/
ast/
gen/
il/
module/
parser/
resolver/
scanner/
alloc.rad
5.3 KiB
ast.rad
23.6 KiB
gen.rad
513 B
il.rad
15.5 KiB
lower.rad
277.7 KiB
module.rad
13.5 KiB
package.rad
1.3 KiB
parser.rad
79.6 KiB
resolver.rad
332.7 KiB
scanner.rad
17.6 KiB
sexpr.rad
6.4 KiB
strings.rad
2.2 KiB
types.rad
286 B
sys/
arch.rad
68 B
char.rad
855 B
collections.rad
39 B
fmt.rad
8.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
281 B
scripts/
seed/
sublime/
test/
vim/
.gitignore
336 B
.gitsigners
112 B
CONTRIBUTING
2.1 KiB
LICENSE
1.1 KiB
Makefile
4.1 KiB
README
2.5 KiB
STYLE
2.6 KiB
std.lib
1.2 KiB
std.lib.test
347 B
lib/std/lang/gen.rad
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); |