@@ -41,83 +41,95 @@ def SPIRVSmoothStep : Builtin {
41
41
def SPIRVGetNumWrkgrpX : Builtin {
42
42
let Spellings = [" __builtin_spirv_get_num_workgroups_x" ];
43
43
let Attributes = [NoThrow, Const];
44
- let Prototype = " void(... )" ;
44
+ let Prototype = " uint32_t( )" ;
45
45
}
46
46
47
47
def SPIRVGetNumWrkgrpY : Builtin {
48
48
let Spellings = [" __builtin_spirv_get_num_workgroups_y" ];
49
49
let Attributes = [NoThrow, Const];
50
- let Prototype = " void(... )" ;
50
+ let Prototype = " uint32_t( )" ;
51
51
}
52
52
53
53
def SPIRVGetNumWrkgrpZ : Builtin {
54
54
let Spellings = [" __builtin_spirv_get_num_workgroups_z" ];
55
55
let Attributes = [NoThrow, Const];
56
- let Prototype = " void(... )" ;
56
+ let Prototype = " uint32_t( )" ;
57
57
}
58
58
59
59
def SPIRVGetWrkgrpIdX : Builtin {
60
60
let Spellings = [" __builtin_spirv_get_workgroup_id_x" ];
61
61
let Attributes = [NoThrow, Const];
62
- let Prototype = " void(... )" ;
62
+ let Prototype = " uint32_t( )" ;
63
63
}
64
64
65
65
def SPIRVGetWrkgrpIdY : Builtin {
66
66
let Spellings = [" __builtin_spirv_get_workgroup_id_y" ];
67
67
let Attributes = [NoThrow, Const];
68
- let Prototype = " void(... )" ;
68
+ let Prototype = " uint32_t( )" ;
69
69
}
70
70
71
71
def SPIRVGetWrkgrpIdZ : Builtin {
72
72
let Spellings = [" __builtin_spirv_get_workgroup_id_z" ];
73
73
let Attributes = [NoThrow, Const];
74
- let Prototype = " void(... )" ;
74
+ let Prototype = " uint32_t( )" ;
75
75
}
76
76
77
77
def SPIRVGetWrkgrpSizeX : Builtin {
78
78
let Spellings = [" __builtin_spirv_workgroup_size_x" ];
79
79
let Attributes = [NoThrow, Const];
80
- let Prototype = " void(... )" ;
80
+ let Prototype = " uint32_t( )" ;
81
81
}
82
82
83
83
def SPIRVGetWrkgrpSizeY : Builtin {
84
84
let Spellings = [" __builtin_spirv_workgroup_size_y" ];
85
85
let Attributes = [NoThrow, Const];
86
- let Prototype = " void(... )" ;
86
+ let Prototype = " uint32_t( )" ;
87
87
}
88
88
89
89
def SPIRVGetWrkgrpSizeZ : Builtin {
90
90
let Spellings = [" __builtin_spirv_workgroup_size_z" ];
91
91
let Attributes = [NoThrow, Const];
92
- let Prototype = " void(... )" ;
92
+ let Prototype = " uint32_t( )" ;
93
93
}
94
94
95
95
def SPIRVGetWrkitemIdX : Builtin {
96
96
let Spellings = [" __builtin_spirv_workitem_id_x" ];
97
97
let Attributes = [NoThrow, Const];
98
- let Prototype = " void(... )" ;
98
+ let Prototype = " uint32_t( )" ;
99
99
}
100
100
101
101
def SPIRVGetWrkitemIdY : Builtin {
102
102
let Spellings = [" __builtin_spirv_workitem_id_y" ];
103
103
let Attributes = [NoThrow, Const];
104
- let Prototype = " void(... )" ;
104
+ let Prototype = " uint32_t( )" ;
105
105
}
106
106
107
107
def SPIRVGetWrkitemIdZ : Builtin {
108
108
let Spellings = [" __builtin_spirv_workitem_id_z" ];
109
109
let Attributes = [NoThrow, Const];
110
- let Prototype = " void(... )" ;
110
+ let Prototype = " uint32_t( )" ;
111
111
}
112
112
113
113
def SPIRVBallot : Builtin {
114
114
let Spellings = [" __builtin_spirv_ballot" ];
115
115
let Attributes = [NoThrow, Const];
116
- let Prototype = " void(... )" ;
116
+ let Prototype = " uint64_t(bool )" ;
117
117
}
118
118
119
119
def SPIRVSyncThreads : Builtin {
120
120
let Spellings = [" __builtin_spirv_sync_threads" ];
121
121
let Attributes = [NoThrow, Const];
122
- let Prototype = " void(...)" ;
122
+ let Prototype = " void()" ;
123
+ }
124
+
125
+ def SPIRVIsShared : Builtin {
126
+ let Spellings = [" __builtin_spirv_is_shared" ];
127
+ let Attributes = [NoThrow, Const];
128
+ let Prototype = " bool(void*)" ;
129
+ }
130
+
131
+ def SPIRVIsPrivate : Builtin {
132
+ let Spellings = [" __builtin_spirv_is_private" ];
133
+ let Attributes = [NoThrow, Const];
134
+ let Prototype = " bool(void*)" ;
123
135
}
0 commit comments