aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'src/codegen/llvm')
-rw-r--r--src/codegen/llvm/Builder.zig77
1 files changed, 77 insertions, 0 deletions
diff --git a/src/codegen/llvm/Builder.zig b/src/codegen/llvm/Builder.zig
index a23bc86c57..90da3bdd7a 100644
--- a/src/codegen/llvm/Builder.zig
+++ b/src/codegen/llvm/Builder.zig
@@ -2729,6 +2729,17 @@ pub const Intrinsic = enum {
@"amdgcn.workgroup.id.z",
@"amdgcn.dispatch.ptr",
+ // NVPTX
+ @"nvvm.read.ptx.sreg.tid.x",
+ @"nvvm.read.ptx.sreg.tid.y",
+ @"nvvm.read.ptx.sreg.tid.z",
+ @"nvvm.read.ptx.sreg.ntid.x",
+ @"nvvm.read.ptx.sreg.ntid.y",
+ @"nvvm.read.ptx.sreg.ntid.z",
+ @"nvvm.read.ptx.sreg.ctaid.x",
+ @"nvvm.read.ptx.sreg.ctaid.y",
+ @"nvvm.read.ptx.sreg.ctaid.z",
+
// WebAssembly
@"wasm.memory.size",
@"wasm.memory.grow",
@@ -3886,6 +3897,72 @@ pub const Intrinsic = enum {
.attrs = &.{ .nocallback, .nofree, .nosync, .nounwind, .speculatable, .willreturn, .{ .memory = Attribute.Memory.all(.none) } },
},
+ .@"nvvm.read.ptx.sreg.tid.x" = .{
+ .ret_len = 1,
+ .params = &.{
+ .{ .kind = .{ .type = .i32 } },
+ },
+ .attrs = &.{ .nounwind, .readnone },
+ },
+ .@"nvvm.read.ptx.sreg.tid.y" = .{
+ .ret_len = 1,
+ .params = &.{
+ .{ .kind = .{ .type = .i32 } },
+ },
+ .attrs = &.{ .nounwind, .readnone },
+ },
+ .@"nvvm.read.ptx.sreg.tid.z" = .{
+ .ret_len = 1,
+ .params = &.{
+ .{ .kind = .{ .type = .i32 } },
+ },
+ .attrs = &.{ .nounwind, .readnone },
+ },
+
+ .@"nvvm.read.ptx.sreg.ntid.x" = .{
+ .ret_len = 1,
+ .params = &.{
+ .{ .kind = .{ .type = .i32 } },
+ },
+ .attrs = &.{ .nounwind, .readnone },
+ },
+ .@"nvvm.read.ptx.sreg.ntid.y" = .{
+ .ret_len = 1,
+ .params = &.{
+ .{ .kind = .{ .type = .i32 } },
+ },
+ .attrs = &.{ .nounwind, .readnone },
+ },
+ .@"nvvm.read.ptx.sreg.ntid.z" = .{
+ .ret_len = 1,
+ .params = &.{
+ .{ .kind = .{ .type = .i32 } },
+ },
+ .attrs = &.{ .nounwind, .readnone },
+ },
+
+ .@"nvvm.read.ptx.sreg.ctaid.x" = .{
+ .ret_len = 1,
+ .params = &.{
+ .{ .kind = .{ .type = .i32 } },
+ },
+ .attrs = &.{ .nounwind, .readnone },
+ },
+ .@"nvvm.read.ptx.sreg.ctaid.y" = .{
+ .ret_len = 1,
+ .params = &.{
+ .{ .kind = .{ .type = .i32 } },
+ },
+ .attrs = &.{ .nounwind, .readnone },
+ },
+ .@"nvvm.read.ptx.sreg.ctaid.z" = .{
+ .ret_len = 1,
+ .params = &.{
+ .{ .kind = .{ .type = .i32 } },
+ },
+ .attrs = &.{ .nounwind, .readnone },
+ },
+
.@"wasm.memory.size" = .{
.ret_len = 1,
.params = &.{