authorgravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2024-02-19 22:51:19+01:00
committergravatar for liljaanton2001@gmail.comantlilja <liljaanton2001@gmail.com> 2024-02-21 16:24:59+01:00
log4653fc4bb4b101ca6a937ad97a6691515cae0fb7
tree88d93bb95cb38dd144aea27ffd48ab8a652e087f
parent15029590ee2824dff76b22eeaff9c3e195345206

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


1 files changed, 23 insertions(+), 0 deletions(-)

src/codegen/llvm/Builder.zig+23
...@@ -2723,6 +2723,10 @@ pub const Intrinsic = enum {...@@ -2723,6 +2723,10 @@ pub const Intrinsic = enum {
2723 @"threadlocal.address",2723 @"threadlocal.address",
2724 vscale,2724 vscale,
27252725
2726 // Debug
2727 @"dbg.declare",
2728 @"dbg.value",
2729
2726 // AMDGPU2730 // AMDGPU
2727 @"amdgcn.workitem.id.x",2731 @"amdgcn.workitem.id.x",
2728 @"amdgcn.workitem.id.y",2732 @"amdgcn.workitem.id.y",
...@@ -3817,6 +3821,25 @@ pub const Intrinsic = enum {...@@ -3817,6 +3821,25 @@ pub const Intrinsic = enum {
3817 .attrs = &.{ .nocallback, .nofree, .nosync, .nounwind, .willreturn, .{ .memory = Attribute.Memory.all(.none) } },3821 .attrs = &.{ .nocallback, .nofree, .nosync, .nounwind, .willreturn, .{ .memory = Attribute.Memory.all(.none) } },
3818 },3822 },
38193823
3824 .@"dbg.declare" = .{
3825 .ret_len = 0,
3826 .params = &.{
3827 .{ .kind = .{ .type = .metadata } },
3828 .{ .kind = .{ .type = .metadata } },
3829 .{ .kind = .{ .type = .metadata } },
3830 },
3831 .attrs = &.{ .nocallback, .nofree, .nosync, .nounwind, .speculatable, .willreturn, .{ .memory = Attribute.Memory.all(.none) } },
3832 },
3833 .@"dbg.value" = .{
3834 .ret_len = 0,
3835 .params = &.{
3836 .{ .kind = .{ .type = .metadata } },
3837 .{ .kind = .{ .type = .metadata } },
3838 .{ .kind = .{ .type = .metadata } },
3839 },
3840 .attrs = &.{ .nocallback, .nofree, .nosync, .nounwind, .speculatable, .willreturn, .{ .memory = Attribute.Memory.all(.none) } },
3841 },
3842
3820 .@"amdgcn.workitem.id.x" = .{3843 .@"amdgcn.workitem.id.x" = .{
3821 .ret_len = 1,3844 .ret_len = 1,
3822 .params = &.{3845 .params = &.{