zig

fork of https://codeberg.org/ziglang/zig
Log | Tree | Refs | README | LICENSE

commit 4653fc4bb4b101ca6a937ad97a6691515cae0fb7 (tree)
parent 15029590ee2824dff76b22eeaff9c3e195345206
Author: antlilja <liljaanton2001@gmail.com>
Date:   Mon, 19 Feb 2024 22:51:19 +0100

LLVM Builder: Add dbg.declare and dbg.value intrinsics

Diffstat:
Msrc/codegen/llvm/Builder.zig | 23+++++++++++++++++++++++
1 file changed, 23 insertions(+), 0 deletions(-)

diff --git 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 = &.{