aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorantlilja <liljaanton2001@gmail.com>2024-02-19 22:51:19 +0100
committerantlilja <liljaanton2001@gmail.com>2024-02-21 16:24:59 +0100
commit4653fc4bb4b101ca6a937ad97a6691515cae0fb7 (patch)
tree88d93bb95cb38dd144aea27ffd48ab8a652e087f /src/codegen
parent15029590ee2824dff76b22eeaff9c3e195345206 (diff)
downloadzig-4653fc4bb4b101ca6a937ad97a6691515cae0fb7.tar.gz
zig-4653fc4bb4b101ca6a937ad97a6691515cae0fb7.zip
LLVM Builder: Add dbg.declare and dbg.value intrinsics
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/llvm/Builder.zig23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/codegen/llvm/Builder.zig b/src/codegen/llvm/Builder.zig
index c40d12ed63..4f08ba88f4 100644
--- a/src/codegen/llvm/Builder.zig
+++ b/src/codegen/llvm/Builder.zig
@@ -2723,6 +2723,10 @@ pub const Intrinsic = enum {
@"threadlocal.address",
vscale,
+ // Debug
+ @"dbg.declare",
+ @"dbg.value",
+
// AMDGPU
@"amdgcn.workitem.id.x",
@"amdgcn.workitem.id.y",
@@ -3817,6 +3821,25 @@ pub const Intrinsic = enum {
.attrs = &.{ .nocallback, .nofree, .nosync, .nounwind, .willreturn, .{ .memory = Attribute.Memory.all(.none) } },
},
+ .@"dbg.declare" = .{
+ .ret_len = 0,
+ .params = &.{
+ .{ .kind = .{ .type = .metadata } },
+ .{ .kind = .{ .type = .metadata } },
+ .{ .kind = .{ .type = .metadata } },
+ },
+ .attrs = &.{ .nocallback, .nofree, .nosync, .nounwind, .speculatable, .willreturn, .{ .memory = Attribute.Memory.all(.none) } },
+ },
+ .@"dbg.value" = .{
+ .ret_len = 0,
+ .params = &.{
+ .{ .kind = .{ .type = .metadata } },
+ .{ .kind = .{ .type = .metadata } },
+ .{ .kind = .{ .type = .metadata } },
+ },
+ .attrs = &.{ .nocallback, .nofree, .nosync, .nounwind, .speculatable, .willreturn, .{ .memory = Attribute.Memory.all(.none) } },
+ },
+
.@"amdgcn.workitem.id.x" = .{
.ret_len = 1,
.params = &.{