nac3/nac3core/src/toplevel
David Mak 31dcd2dde9 core: Use i8 for boolean variable allocation
In LLVM, i1 represents a 1-byte integer with a single valid bit; The
rest of the 7 upper bits are undefined. This causes problems when
using these variables in memory operations (e.g. memcpy/memmove as
needed by List slicing and assignment).

We fix this by treating all local boolean variables as i8 so that they
are well-defined for memory operations. Function ABIs will continue to
use i1, as memory operations cannot be directly performed on function
arguments or return types, instead they are always converted back into
local boolean variables (which are i8s anyways).

Fixes #315.
2023-09-25 15:42:07 +08:00
..
snapshots update insta snapshots 2022-04-12 09:56:49 +08:00
builtins.rs core: Use i8 for boolean variable allocation 2023-09-25 15:42:07 +08:00
composer.rs nac3standalone: allow classes without explicit init (#221) 2022-07-07 10:36:25 +08:00
helper.rs nac3core: fix exception type in primitive store 2022-05-29 19:14:00 +08:00
mod.rs nac3core: refactored for better error messages 2022-02-21 18:24:19 +08:00
test.rs nac3standalone: allow classes without explicit init (#221) 2022-07-07 10:36:25 +08:00
type_annotation.rs spelling (#264) 2022-04-13 11:32:31 +08:00