aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/src_outside_function.zig
diff options
context:
space:
mode:
authorCody Tapscott <topolarity@tapscott.me>2022-07-28 17:06:57 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-07-31 12:59:19 -0700
commit075f93fa108030fb0dd12faa6e389ace302cfb4c (patch)
tree73cc539ff6dc66dc67cb35ba30af0c9c2a263098 /test/cases/compile_errors/src_outside_function.zig
parent1ab15b6c9c529c9acc85f4b0bf3fcaea97a5a48e (diff)
downloadzig-075f93fa108030fb0dd12faa6e389ace302cfb4c.tar.gz
zig-075f93fa108030fb0dd12faa6e389ace302cfb4c.zip
stage2 LLVM: Pass inline assembly outputs directly when not targeting memory
This change provides a basic implementation of #2349 for stage2. There's still quite a lot of work before this logic is as complete as what's in Clang (https://github.com/llvm/llvm-project/blob/b3645353041818f61e2580635409ddb81ff5a272/clang/lib/CodeGen/CGStmt.cpp#L2304-L2795), particularly considering the diversity of constraints across targets. It's probably not worth doing the complete work until there's a clearer picture for constraints in Zig's future dedicated ASM syntax, but at least this gives us a small improvement for now. As a bonus, this also fixes a bug with how we were handling `_` identifiers.
Diffstat (limited to 'test/cases/compile_errors/src_outside_function.zig')
0 files changed, 0 insertions, 0 deletions