stage2: rework C backend for new AIR memory layout

This commit is contained in:
Andrew Kelley 2021-07-17 12:15:27 -07:00
parent a804de13c8
commit 761f36ff93
2 changed files with 398 additions and 266 deletions

View File

@ -200,6 +200,8 @@ pub const Inst = struct {
ret,
/// Returns a pointer to a global variable.
/// Uses the `ty_pl` field. Index is into the `variables` array.
/// TODO this can be modeled simply as a constant with a decl ref and then
/// the variables array can be removed from Air.
varptr,
/// Write a value to a pointer. LHS is pointer, RHS is value.
/// Result type is always void.

File diff suppressed because it is too large Load Diff