nac3/nac3core/src/codegen
David Mak f1664e7158 core: Fix passing structure arguments to extern functions
All parameters with a structure type in extern functions are marked as
`byref` instead of `byval`, as most ABIs require the first several
arguments to be passed in registers before spilling into the stack.

`byval` breaks this contract by explicitly requiring all arguments to be
 passed in the stack, breaking interop with libraries written in other
 languages.
2023-09-21 15:25:24 +08:00
..
irrt core: Add name to build_gep_and_load 2023-09-21 12:09:27 +08:00
concrete_type.rs basic unsigned integer support 2022-03-08 13:34:02 +08:00
expr.rs core: Fix passing structure arguments to extern functions 2023-09-21 15:25:24 +08:00
generator.rs core: Add name parameter to gen_{var_alloc,store_target} 2023-09-06 11:00:02 +08:00
mod.rs core: Move bitcode verification error message into panic message 2023-09-21 12:09:28 +08:00
stmt.rs core: Add name to build_gep_and_load 2023-09-21 12:09:27 +08:00
test.rs core: Remove emit_llvm from CodeGenLLVMOptions 2023-09-21 12:06:56 +08:00