aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm/bindings.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-05-04 20:38:53 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-05-04 20:38:53 -0700
commit1b432b557608bd047afaad71ffb7bd2ddf23c444 (patch)
tree0930ca5f5f1e78460a75dc5d86e243fccb5027ba /src/codegen/llvm/bindings.zig
parent0bebb688fbc4c6ffb88a2b0aefcf536143bb5f2e (diff)
downloadzig-1b432b557608bd047afaad71ffb7bd2ddf23c444.tar.gz
zig-1b432b557608bd047afaad71ffb7bd2ddf23c444.zip
stage2: implement global assembly
So far it's supported by the LLVM backend only. I recommend for the other backends to wait for the resolution of #10761 before adding support for this feature.
Diffstat (limited to 'src/codegen/llvm/bindings.zig')
-rw-r--r--src/codegen/llvm/bindings.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/codegen/llvm/bindings.zig b/src/codegen/llvm/bindings.zig
index 560b9544dd..4732e0dd49 100644
--- a/src/codegen/llvm/bindings.zig
+++ b/src/codegen/llvm/bindings.zig
@@ -381,6 +381,9 @@ pub const Module = opaque {
pub const createDIBuilder = ZigLLVMCreateDIBuilder;
extern fn ZigLLVMCreateDIBuilder(module: *const Module, allow_unresolved: bool) *DIBuilder;
+
+ pub const setModuleInlineAsm2 = LLVMSetModuleInlineAsm2;
+ extern fn LLVMSetModuleInlineAsm2(M: *const Module, Asm: [*]const u8, Len: usize) void;
};
pub const lookupIntrinsicID = LLVMLookupIntrinsicID;