1//===--- BuiltinsPTX.def - PTX Builtin function database ----*- C++ -*-===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file defines the PTX-specific builtin function database.  Users of
11// this file must define the BUILTIN macro to make use of this information.
12//
13//===----------------------------------------------------------------------===//
14
15// The format of this database matches clang/Basic/Builtins.def.
16
17// Builtins retained from previous PTX back-end
18BUILTIN(__builtin_ptx_read_tid_x, "i", "nc")
19BUILTIN(__builtin_ptx_read_tid_y, "i", "nc")
20BUILTIN(__builtin_ptx_read_tid_z, "i", "nc")
21BUILTIN(__builtin_ptx_read_tid_w, "i", "nc")
22
23BUILTIN(__builtin_ptx_read_ntid_x, "i", "nc")
24BUILTIN(__builtin_ptx_read_ntid_y, "i", "nc")
25BUILTIN(__builtin_ptx_read_ntid_z, "i", "nc")
26BUILTIN(__builtin_ptx_read_ntid_w, "i", "nc")
27
28BUILTIN(__builtin_ptx_read_ctaid_x, "i", "nc")
29BUILTIN(__builtin_ptx_read_ctaid_y, "i", "nc")
30BUILTIN(__builtin_ptx_read_ctaid_z, "i", "nc")
31BUILTIN(__builtin_ptx_read_ctaid_w, "i", "nc")
32
33BUILTIN(__builtin_ptx_read_nctaid_x, "i", "nc")
34BUILTIN(__builtin_ptx_read_nctaid_y, "i", "nc")
35BUILTIN(__builtin_ptx_read_nctaid_z, "i", "nc")
36BUILTIN(__builtin_ptx_read_nctaid_w, "i", "nc")
37
38BUILTIN(__builtin_ptx_read_laneid, "i", "nc")
39BUILTIN(__builtin_ptx_read_warpid, "i", "nc")
40BUILTIN(__builtin_ptx_read_nwarpid, "i", "nc")
41
42BUILTIN(__builtin_ptx_read_smid, "i", "nc")
43BUILTIN(__builtin_ptx_read_nsmid, "i", "nc")
44BUILTIN(__builtin_ptx_read_gridid, "i", "nc")
45
46BUILTIN(__builtin_ptx_read_lanemask_eq, "i", "nc")
47BUILTIN(__builtin_ptx_read_lanemask_le, "i", "nc")
48BUILTIN(__builtin_ptx_read_lanemask_lt, "i", "nc")
49BUILTIN(__builtin_ptx_read_lanemask_ge, "i", "nc")
50BUILTIN(__builtin_ptx_read_lanemask_gt, "i", "nc")
51
52BUILTIN(__builtin_ptx_read_clock, "i", "n")
53BUILTIN(__builtin_ptx_read_clock64, "LLi", "n")
54
55BUILTIN(__builtin_ptx_read_pm0, "i", "n")
56BUILTIN(__builtin_ptx_read_pm1, "i", "n")
57BUILTIN(__builtin_ptx_read_pm2, "i", "n")
58BUILTIN(__builtin_ptx_read_pm3, "i", "n")
59
60BUILTIN(__builtin_ptx_bar_sync, "vi", "n")
61
62
63// Builtins exposed as part of NVVM
64// MISC
65
66BUILTIN(__nvvm_clz_i, "ii", "")
67BUILTIN(__nvvm_clz_ll, "iLLi", "")
68BUILTIN(__nvvm_popc_i, "ii", "")
69BUILTIN(__nvvm_popc_ll, "iLLi", "")
70BUILTIN(__nvvm_prmt, "UiUiUiUi", "")
71
72// Min Max
73
74BUILTIN(__nvvm_min_i, "iii", "")
75BUILTIN(__nvvm_min_ui, "UiUiUi", "")
76BUILTIN(__nvvm_min_ll, "LLiLLiLLi", "")
77BUILTIN(__nvvm_min_ull, "ULLiULLiULLi", "")
78
79BUILTIN(__nvvm_max_i, "iii", "")
80BUILTIN(__nvvm_max_ui, "UiUiUi", "")
81BUILTIN(__nvvm_max_ll, "LLiLLiLLi", "")
82BUILTIN(__nvvm_max_ull, "ULLiULLiULLi", "")
83
84BUILTIN(__nvvm_fmax_ftz_f, "fff",  "")
85BUILTIN(__nvvm_fmax_f, "fff",  "")
86BUILTIN(__nvvm_fmin_ftz_f, "fff",  "")
87BUILTIN(__nvvm_fmin_f, "fff",  "")
88
89BUILTIN(__nvvm_fmax_d, "ddd", "")
90BUILTIN(__nvvm_fmin_d, "ddd", "")
91
92// Multiplication
93
94BUILTIN(__nvvm_mulhi_i, "iii", "")
95BUILTIN(__nvvm_mulhi_ui, "UiUiUi", "")
96BUILTIN(__nvvm_mulhi_ll, "LLiLLiLLi", "")
97BUILTIN(__nvvm_mulhi_ull, "ULLiULLiULLi", "")
98
99BUILTIN(__nvvm_mul_rn_ftz_f,  "fff", "")
100BUILTIN(__nvvm_mul_rn_f,  "fff", "")
101BUILTIN(__nvvm_mul_rz_ftz_f,  "fff", "")
102BUILTIN(__nvvm_mul_rz_f,  "fff", "")
103BUILTIN(__nvvm_mul_rm_ftz_f,  "fff", "")
104BUILTIN(__nvvm_mul_rm_f,  "fff", "")
105BUILTIN(__nvvm_mul_rp_ftz_f,  "fff", "")
106BUILTIN(__nvvm_mul_rp_f,  "fff", "")
107
108BUILTIN(__nvvm_mul_rn_d,  "ddd", "")
109BUILTIN(__nvvm_mul_rz_d,  "ddd", "")
110BUILTIN(__nvvm_mul_rm_d,  "ddd", "")
111BUILTIN(__nvvm_mul_rp_d,  "ddd", "")
112
113BUILTIN(__nvvm_mul24_i,  "iii", "")
114BUILTIN(__nvvm_mul24_ui,  "UiUiUi", "")
115
116// Div
117
118BUILTIN(__nvvm_div_approx_ftz_f,  "fff", "")
119BUILTIN(__nvvm_div_approx_f,  "fff", "")
120
121BUILTIN(__nvvm_div_rn_ftz_f,  "fff", "")
122BUILTIN(__nvvm_div_rn_f,  "fff", "")
123BUILTIN(__nvvm_div_rz_ftz_f,  "fff", "")
124BUILTIN(__nvvm_div_rz_f,  "fff", "")
125BUILTIN(__nvvm_div_rm_ftz_f,  "fff", "")
126BUILTIN(__nvvm_div_rm_f,  "fff", "")
127BUILTIN(__nvvm_div_rp_ftz_f,  "fff", "")
128BUILTIN(__nvvm_div_rp_f,  "fff", "")
129
130BUILTIN(__nvvm_div_rn_d,  "ddd", "")
131BUILTIN(__nvvm_div_rz_d,  "ddd", "")
132BUILTIN(__nvvm_div_rm_d,  "ddd", "")
133BUILTIN(__nvvm_div_rp_d,  "ddd", "")
134
135// Brev
136
137BUILTIN(__nvvm_brev32, "UiUi", "")
138BUILTIN(__nvvm_brev64, "ULLiULLi", "")
139
140// Sad
141
142BUILTIN(__nvvm_sad_i, "iiii", "")
143BUILTIN(__nvvm_sad_ui, "UiUiUiUi", "")
144
145// Floor, Ceil
146
147BUILTIN(__nvvm_floor_ftz_f, "ff", "")
148BUILTIN(__nvvm_floor_f, "ff", "")
149BUILTIN(__nvvm_floor_d, "dd", "")
150
151BUILTIN(__nvvm_ceil_ftz_f, "ff", "")
152BUILTIN(__nvvm_ceil_f, "ff", "")
153BUILTIN(__nvvm_ceil_d, "dd", "")
154
155// Abs
156
157BUILTIN(__nvvm_abs_i, "ii", "")
158BUILTIN(__nvvm_abs_ll, "LLiLLi", "")
159
160BUILTIN(__nvvm_fabs_ftz_f, "ff", "")
161BUILTIN(__nvvm_fabs_f, "ff", "")
162BUILTIN(__nvvm_fabs_d, "dd", "")
163
164// Round
165
166BUILTIN(__nvvm_round_ftz_f, "ff", "")
167BUILTIN(__nvvm_round_f, "ff", "")
168BUILTIN(__nvvm_round_d, "dd", "")
169
170// Trunc
171
172BUILTIN(__nvvm_trunc_ftz_f, "ff", "")
173BUILTIN(__nvvm_trunc_f, "ff", "")
174BUILTIN(__nvvm_trunc_d, "dd", "")
175
176// Saturate
177
178BUILTIN(__nvvm_saturate_ftz_f, "ff", "")
179BUILTIN(__nvvm_saturate_f, "ff", "")
180BUILTIN(__nvvm_saturate_d, "dd", "")
181
182// Exp2, Log2
183
184BUILTIN(__nvvm_ex2_approx_ftz_f, "ff", "")
185BUILTIN(__nvvm_ex2_approx_f, "ff", "")
186BUILTIN(__nvvm_ex2_approx_d, "dd", "")
187
188BUILTIN(__nvvm_lg2_approx_ftz_f, "ff", "")
189BUILTIN(__nvvm_lg2_approx_f, "ff", "")
190BUILTIN(__nvvm_lg2_approx_d, "dd", "")
191
192// Sin, Cos
193
194BUILTIN(__nvvm_sin_approx_ftz_f, "ff", "")
195BUILTIN(__nvvm_sin_approx_f, "ff", "")
196
197BUILTIN(__nvvm_cos_approx_ftz_f, "ff", "")
198BUILTIN(__nvvm_cos_approx_f, "ff", "")
199
200// Fma
201
202BUILTIN(__nvvm_fma_rn_ftz_f, "ffff", "")
203BUILTIN(__nvvm_fma_rn_f, "ffff", "")
204BUILTIN(__nvvm_fma_rz_ftz_f, "ffff", "")
205BUILTIN(__nvvm_fma_rz_f, "ffff", "")
206BUILTIN(__nvvm_fma_rm_ftz_f, "ffff", "")
207BUILTIN(__nvvm_fma_rm_f, "ffff", "")
208BUILTIN(__nvvm_fma_rp_ftz_f, "ffff", "")
209BUILTIN(__nvvm_fma_rp_f, "ffff", "")
210BUILTIN(__nvvm_fma_rn_d, "dddd", "")
211BUILTIN(__nvvm_fma_rz_d, "dddd", "")
212BUILTIN(__nvvm_fma_rm_d, "dddd", "")
213BUILTIN(__nvvm_fma_rp_d, "dddd", "")
214
215// Rcp
216
217BUILTIN(__nvvm_rcp_rn_ftz_f, "ff", "")
218BUILTIN(__nvvm_rcp_rn_f, "ff", "")
219BUILTIN(__nvvm_rcp_rz_ftz_f, "ff", "")
220BUILTIN(__nvvm_rcp_rz_f, "ff", "")
221BUILTIN(__nvvm_rcp_rm_ftz_f, "ff", "")
222BUILTIN(__nvvm_rcp_rm_f, "ff", "")
223BUILTIN(__nvvm_rcp_rp_ftz_f, "ff", "")
224BUILTIN(__nvvm_rcp_rp_f, "ff", "")
225
226BUILTIN(__nvvm_rcp_rn_d, "dd", "")
227BUILTIN(__nvvm_rcp_rz_d, "dd", "")
228BUILTIN(__nvvm_rcp_rm_d, "dd", "")
229BUILTIN(__nvvm_rcp_rp_d, "dd", "")
230BUILTIN(__nvvm_rcp_approx_ftz_d, "dd", "")
231
232// Sqrt
233
234BUILTIN(__nvvm_sqrt_rn_ftz_f, "ff", "")
235BUILTIN(__nvvm_sqrt_rn_f, "ff", "")
236BUILTIN(__nvvm_sqrt_rz_ftz_f, "ff", "")
237BUILTIN(__nvvm_sqrt_rz_f, "ff", "")
238BUILTIN(__nvvm_sqrt_rm_ftz_f, "ff", "")
239BUILTIN(__nvvm_sqrt_rm_f, "ff", "")
240BUILTIN(__nvvm_sqrt_rp_ftz_f, "ff", "")
241BUILTIN(__nvvm_sqrt_rp_f, "ff", "")
242BUILTIN(__nvvm_sqrt_approx_ftz_f, "ff", "")
243BUILTIN(__nvvm_sqrt_approx_f, "ff", "")
244
245BUILTIN(__nvvm_sqrt_rn_d, "dd", "")
246BUILTIN(__nvvm_sqrt_rz_d, "dd", "")
247BUILTIN(__nvvm_sqrt_rm_d, "dd", "")
248BUILTIN(__nvvm_sqrt_rp_d, "dd", "")
249
250// Rsqrt
251
252BUILTIN(__nvvm_rsqrt_approx_ftz_f, "ff", "")
253BUILTIN(__nvvm_rsqrt_approx_f, "ff", "")
254BUILTIN(__nvvm_rsqrt_approx_d, "dd", "")
255
256// Add
257
258BUILTIN(__nvvm_add_rn_ftz_f, "fff", "")
259BUILTIN(__nvvm_add_rn_f, "fff", "")
260BUILTIN(__nvvm_add_rz_ftz_f, "fff", "")
261BUILTIN(__nvvm_add_rz_f, "fff", "")
262BUILTIN(__nvvm_add_rm_ftz_f, "fff", "")
263BUILTIN(__nvvm_add_rm_f, "fff", "")
264BUILTIN(__nvvm_add_rp_ftz_f, "fff", "")
265BUILTIN(__nvvm_add_rp_f, "fff", "")
266
267BUILTIN(__nvvm_add_rn_d, "ddd", "")
268BUILTIN(__nvvm_add_rz_d, "ddd", "")
269BUILTIN(__nvvm_add_rm_d, "ddd", "")
270BUILTIN(__nvvm_add_rp_d, "ddd", "")
271
272// Convert
273
274BUILTIN(__nvvm_d2f_rn_ftz, "fd", "")
275BUILTIN(__nvvm_d2f_rn, "fd", "")
276BUILTIN(__nvvm_d2f_rz_ftz, "fd", "")
277BUILTIN(__nvvm_d2f_rz, "fd", "")
278BUILTIN(__nvvm_d2f_rm_ftz, "fd", "")
279BUILTIN(__nvvm_d2f_rm, "fd", "")
280BUILTIN(__nvvm_d2f_rp_ftz, "fd", "")
281BUILTIN(__nvvm_d2f_rp, "fd", "")
282
283BUILTIN(__nvvm_d2i_rn, "id", "")
284BUILTIN(__nvvm_d2i_rz, "id", "")
285BUILTIN(__nvvm_d2i_rm, "id", "")
286BUILTIN(__nvvm_d2i_rp, "id", "")
287
288BUILTIN(__nvvm_d2ui_rn, "Uid", "")
289BUILTIN(__nvvm_d2ui_rz, "Uid", "")
290BUILTIN(__nvvm_d2ui_rm, "Uid", "")
291BUILTIN(__nvvm_d2ui_rp, "Uid", "")
292
293BUILTIN(__nvvm_i2d_rn, "di", "")
294BUILTIN(__nvvm_i2d_rz, "di", "")
295BUILTIN(__nvvm_i2d_rm, "di", "")
296BUILTIN(__nvvm_i2d_rp, "di", "")
297
298BUILTIN(__nvvm_ui2d_rn, "dUi", "")
299BUILTIN(__nvvm_ui2d_rz, "dUi", "")
300BUILTIN(__nvvm_ui2d_rm, "dUi", "")
301BUILTIN(__nvvm_ui2d_rp, "dUi", "")
302
303BUILTIN(__nvvm_f2i_rn_ftz, "if", "")
304BUILTIN(__nvvm_f2i_rn, "if", "")
305BUILTIN(__nvvm_f2i_rz_ftz, "if", "")
306BUILTIN(__nvvm_f2i_rz, "if", "")
307BUILTIN(__nvvm_f2i_rm_ftz, "if", "")
308BUILTIN(__nvvm_f2i_rm, "if", "")
309BUILTIN(__nvvm_f2i_rp_ftz, "if", "")
310BUILTIN(__nvvm_f2i_rp, "if", "")
311
312BUILTIN(__nvvm_f2ui_rn_ftz, "Uif", "")
313BUILTIN(__nvvm_f2ui_rn, "Uif", "")
314BUILTIN(__nvvm_f2ui_rz_ftz, "Uif", "")
315BUILTIN(__nvvm_f2ui_rz, "Uif", "")
316BUILTIN(__nvvm_f2ui_rm_ftz, "Uif", "")
317BUILTIN(__nvvm_f2ui_rm, "Uif", "")
318BUILTIN(__nvvm_f2ui_rp_ftz, "Uif", "")
319BUILTIN(__nvvm_f2ui_rp, "Uif", "")
320
321BUILTIN(__nvvm_i2f_rn, "fi", "")
322BUILTIN(__nvvm_i2f_rz, "fi", "")
323BUILTIN(__nvvm_i2f_rm, "fi", "")
324BUILTIN(__nvvm_i2f_rp, "fi", "")
325
326BUILTIN(__nvvm_ui2f_rn, "fUi", "")
327BUILTIN(__nvvm_ui2f_rz, "fUi", "")
328BUILTIN(__nvvm_ui2f_rm, "fUi", "")
329BUILTIN(__nvvm_ui2f_rp, "fUi", "")
330
331BUILTIN(__nvvm_lohi_i2d, "dii", "")
332
333BUILTIN(__nvvm_d2i_lo, "id", "")
334BUILTIN(__nvvm_d2i_hi, "id", "")
335
336BUILTIN(__nvvm_f2ll_rn_ftz, "LLif", "")
337BUILTIN(__nvvm_f2ll_rn, "LLif", "")
338BUILTIN(__nvvm_f2ll_rz_ftz, "LLif", "")
339BUILTIN(__nvvm_f2ll_rz, "LLif", "")
340BUILTIN(__nvvm_f2ll_rm_ftz, "LLif", "")
341BUILTIN(__nvvm_f2ll_rm, "LLif", "")
342BUILTIN(__nvvm_f2ll_rp_ftz, "LLif", "")
343BUILTIN(__nvvm_f2ll_rp, "LLif", "")
344
345BUILTIN(__nvvm_f2ull_rn_ftz, "ULLif", "")
346BUILTIN(__nvvm_f2ull_rn, "ULLif", "")
347BUILTIN(__nvvm_f2ull_rz_ftz, "ULLif", "")
348BUILTIN(__nvvm_f2ull_rz, "ULLif", "")
349BUILTIN(__nvvm_f2ull_rm_ftz, "ULLif", "")
350BUILTIN(__nvvm_f2ull_rm, "ULLif", "")
351BUILTIN(__nvvm_f2ull_rp_ftz, "ULLif", "")
352BUILTIN(__nvvm_f2ull_rp, "ULLif", "")
353
354BUILTIN(__nvvm_d2ll_rn, "LLid", "")
355BUILTIN(__nvvm_d2ll_rz, "LLid", "")
356BUILTIN(__nvvm_d2ll_rm, "LLid", "")
357BUILTIN(__nvvm_d2ll_rp, "LLid", "")
358
359BUILTIN(__nvvm_d2ull_rn, "ULLid", "")
360BUILTIN(__nvvm_d2ull_rz, "ULLid", "")
361BUILTIN(__nvvm_d2ull_rm, "ULLid", "")
362BUILTIN(__nvvm_d2ull_rp, "ULLid", "")
363
364BUILTIN(__nvvm_ll2f_rn, "fLLi", "")
365BUILTIN(__nvvm_ll2f_rz, "fLLi", "")
366BUILTIN(__nvvm_ll2f_rm, "fLLi", "")
367BUILTIN(__nvvm_ll2f_rp, "fLLi", "")
368
369BUILTIN(__nvvm_ull2f_rn, "fULLi", "")
370BUILTIN(__nvvm_ull2f_rz, "fULLi", "")
371BUILTIN(__nvvm_ull2f_rm, "fULLi", "")
372BUILTIN(__nvvm_ull2f_rp, "fULLi", "")
373
374BUILTIN(__nvvm_ll2d_rn, "dLLi", "")
375BUILTIN(__nvvm_ll2d_rz, "dLLi", "")
376BUILTIN(__nvvm_ll2d_rm, "dLLi", "")
377BUILTIN(__nvvm_ll2d_rp, "dLLi", "")
378
379BUILTIN(__nvvm_ull2d_rn, "dULLi", "")
380BUILTIN(__nvvm_ull2d_rz, "dULLi", "")
381BUILTIN(__nvvm_ull2d_rm, "dULLi", "")
382BUILTIN(__nvvm_ull2d_rp, "dULLi", "")
383
384BUILTIN(__nvvm_f2h_rn_ftz, "Usf", "")
385BUILTIN(__nvvm_f2h_rn, "Usf", "")
386
387BUILTIN(__nvvm_h2f, "fUs", "")
388
389// Bitcast
390
391BUILTIN(__nvvm_bitcast_f2i, "if", "")
392BUILTIN(__nvvm_bitcast_i2f, "fi", "")
393
394BUILTIN(__nvvm_bitcast_ll2d, "dLLi", "")
395BUILTIN(__nvvm_bitcast_d2ll, "LLid", "")
396
397// Sync
398
399BUILTIN(__syncthreads, "v", "")
400BUILTIN(__nvvm_bar0, "v", "")
401BUILTIN(__nvvm_bar0_popc, "ii", "")
402BUILTIN(__nvvm_bar0_and, "ii", "")
403BUILTIN(__nvvm_bar0_or, "ii", "")
404
405// Membar
406
407BUILTIN(__nvvm_membar_cta, "v", "")
408BUILTIN(__nvvm_membar_gl, "v", "")
409BUILTIN(__nvvm_membar_sys, "v", "")
410
411// Memcpy, Memset
412
413BUILTIN(__nvvm_memcpy, "vUc*Uc*zi","")
414BUILTIN(__nvvm_memset, "vUc*Uczi","")
415
416// Image
417
418BUILTIN(__builtin_ptx_read_image2Dfi_, "V4fiiii", "")
419BUILTIN(__builtin_ptx_read_image2Dff_, "V4fiiff", "")
420BUILTIN(__builtin_ptx_read_image2Dii_, "V4iiiii", "")
421BUILTIN(__builtin_ptx_read_image2Dif_, "V4iiiff", "")
422
423BUILTIN(__builtin_ptx_read_image3Dfi_, "V4fiiiiii", "")
424BUILTIN(__builtin_ptx_read_image3Dff_, "V4fiiffff", "")
425BUILTIN(__builtin_ptx_read_image3Dii_, "V4iiiiiii", "")
426BUILTIN(__builtin_ptx_read_image3Dif_, "V4iiiffff", "")
427
428BUILTIN(__builtin_ptx_write_image2Df_, "viiiffff", "")
429BUILTIN(__builtin_ptx_write_image2Di_, "viiiiiii", "")
430BUILTIN(__builtin_ptx_write_image2Dui_, "viiiUiUiUiUi", "")
431BUILTIN(__builtin_ptx_get_image_depthi_, "ii", "")
432BUILTIN(__builtin_ptx_get_image_heighti_, "ii", "")
433BUILTIN(__builtin_ptx_get_image_widthi_, "ii", "")
434BUILTIN(__builtin_ptx_get_image_channel_data_typei_, "ii", "")
435BUILTIN(__builtin_ptx_get_image_channel_orderi_, "ii", "")
436
437// Atomic
438//
439// We need the atom intrinsics because
440// - they are used in converging analysis
441// - they are used in address space analysis and optimization
442// So it does not hurt to expose them as builtins.
443//
444BUILTIN(__nvvm_atom_add_g_i, "iiD*1i", "n")
445BUILTIN(__nvvm_atom_add_s_i, "iiD*3i", "n")
446BUILTIN(__nvvm_atom_add_gen_i, "iiD*i", "n")
447BUILTIN(__nvvm_atom_add_g_l, "LiLiD*1Li", "n")
448BUILTIN(__nvvm_atom_add_s_l, "LiLiD*3Li", "n")
449BUILTIN(__nvvm_atom_add_gen_l, "LiLiD*Li", "n")
450BUILTIN(__nvvm_atom_add_g_ll, "LLiLLiD*1LLi", "n")
451BUILTIN(__nvvm_atom_add_s_ll, "LLiLLiD*3LLi", "n")
452BUILTIN(__nvvm_atom_add_gen_ll, "LLiLLiD*LLi", "n")
453BUILTIN(__nvvm_atom_add_g_f, "ffD*1f", "n")
454BUILTIN(__nvvm_atom_add_s_f, "ffD*3f", "n")
455BUILTIN(__nvvm_atom_add_gen_f, "ffD*f", "n")
456BUILTIN(__nvvm_atom_add_g_d, "ddD*1d", "n")
457BUILTIN(__nvvm_atom_add_s_d, "ddD*3d", "n")
458BUILTIN(__nvvm_atom_add_gen_d, "ddD*d", "n")
459
460BUILTIN(__nvvm_atom_sub_g_i, "iiD*1i", "n")
461BUILTIN(__nvvm_atom_sub_s_i, "iiD*3i", "n")
462BUILTIN(__nvvm_atom_sub_gen_i, "iiD*i", "n")
463BUILTIN(__nvvm_atom_sub_g_l, "LiLiD*1Li", "n")
464BUILTIN(__nvvm_atom_sub_s_l, "LiLiD*3Li", "n")
465BUILTIN(__nvvm_atom_sub_gen_l, "LiLiD*Li", "n")
466BUILTIN(__nvvm_atom_sub_g_ll, "LLiLLiD*1LLi", "n")
467BUILTIN(__nvvm_atom_sub_s_ll, "LLiLLiD*3LLi", "n")
468BUILTIN(__nvvm_atom_sub_gen_ll, "LLiLLiD*LLi", "n")
469
470BUILTIN(__nvvm_atom_xchg_g_i, "iiD*1i", "n")
471BUILTIN(__nvvm_atom_xchg_s_i, "iiD*3i", "n")
472BUILTIN(__nvvm_atom_xchg_gen_i, "iiD*i", "n")
473BUILTIN(__nvvm_atom_xchg_g_l, "LiLiD*1Li", "n")
474BUILTIN(__nvvm_atom_xchg_s_l, "LiLiD*3Li", "n")
475BUILTIN(__nvvm_atom_xchg_gen_l, "LiLiD*Li", "n")
476BUILTIN(__nvvm_atom_xchg_g_ll, "LLiLLiD*1LLi", "n")
477BUILTIN(__nvvm_atom_xchg_s_ll, "LLiLLiD*3LLi", "n")
478BUILTIN(__nvvm_atom_xchg_gen_ll, "LLiLLiD*LLi", "n")
479
480BUILTIN(__nvvm_atom_max_g_i, "iiD*1i", "n")
481BUILTIN(__nvvm_atom_max_s_i, "iiD*3i", "n")
482BUILTIN(__nvvm_atom_max_gen_i, "iiD*i", "n")
483BUILTIN(__nvvm_atom_max_g_ui, "UiUiD*1Ui", "n")
484BUILTIN(__nvvm_atom_max_s_ui, "UiUiD*3Ui", "n")
485BUILTIN(__nvvm_atom_max_gen_ui, "UiUiD*Ui", "n")
486BUILTIN(__nvvm_atom_max_g_l, "LiLiD*1Li", "n")
487BUILTIN(__nvvm_atom_max_s_l, "LiLiD*3Li", "n")
488BUILTIN(__nvvm_atom_max_gen_l, "LiLiD*Li", "n")
489BUILTIN(__nvvm_atom_max_g_ul, "ULiULiD*1ULi", "n")
490BUILTIN(__nvvm_atom_max_s_ul, "ULiULiD*3ULi", "n")
491BUILTIN(__nvvm_atom_max_gen_ul, "ULiULiD*ULi", "n")
492BUILTIN(__nvvm_atom_max_g_ll, "LLiLLiD*1LLi", "n")
493BUILTIN(__nvvm_atom_max_s_ll, "LLiLLiD*3LLi", "n")
494BUILTIN(__nvvm_atom_max_gen_ll, "LLiLLiD*LLi", "n")
495BUILTIN(__nvvm_atom_max_g_ull, "ULLiULLiD*1ULLi", "n")
496BUILTIN(__nvvm_atom_max_s_ull, "ULLiULLiD*3ULLi", "n")
497BUILTIN(__nvvm_atom_max_gen_ull, "ULLiULLiD*ULLi", "n")
498
499BUILTIN(__nvvm_atom_min_g_i, "iiD*1i", "n")
500BUILTIN(__nvvm_atom_min_s_i, "iiD*3i", "n")
501BUILTIN(__nvvm_atom_min_gen_i, "iiD*i", "n")
502BUILTIN(__nvvm_atom_min_g_ui, "UiUiD*1Ui", "n")
503BUILTIN(__nvvm_atom_min_s_ui, "UiUiD*3Ui", "n")
504BUILTIN(__nvvm_atom_min_gen_ui, "UiUiD*Ui", "n")
505BUILTIN(__nvvm_atom_min_g_l, "LiLiD*1Li", "n")
506BUILTIN(__nvvm_atom_min_s_l, "LiLiD*3Li", "n")
507BUILTIN(__nvvm_atom_min_gen_l, "LiLiD*Li", "n")
508BUILTIN(__nvvm_atom_min_g_ul, "ULiULiD*1ULi", "n")
509BUILTIN(__nvvm_atom_min_s_ul, "ULiULiD*3ULi", "n")
510BUILTIN(__nvvm_atom_min_gen_ul, "ULiULiD*ULi", "n")
511BUILTIN(__nvvm_atom_min_g_ll, "LLiLLiD*1LLi", "n")
512BUILTIN(__nvvm_atom_min_s_ll, "LLiLLiD*3LLi", "n")
513BUILTIN(__nvvm_atom_min_gen_ll, "LLiLLiD*LLi", "n")
514BUILTIN(__nvvm_atom_min_g_ull, "ULLiULLiD*1ULLi", "n")
515BUILTIN(__nvvm_atom_min_s_ull, "ULLiULLiD*3ULLi", "n")
516BUILTIN(__nvvm_atom_min_gen_ull, "ULLiULLiD*ULLi", "n")
517
518BUILTIN(__nvvm_atom_inc_g_ui, "UiUiD*1Ui", "n")
519BUILTIN(__nvvm_atom_inc_s_ui, "UiUiD*3Ui", "n")
520BUILTIN(__nvvm_atom_inc_gen_ui, "UiUiD*Ui", "n")
521BUILTIN(__nvvm_atom_dec_g_ui, "UiUiD*1Ui", "n")
522BUILTIN(__nvvm_atom_dec_s_ui, "UiUiD*3Ui", "n")
523BUILTIN(__nvvm_atom_dec_gen_ui, "UiUiD*Ui", "n")
524
525BUILTIN(__nvvm_atom_and_g_i, "iiD*1i", "n")
526BUILTIN(__nvvm_atom_and_s_i, "iiD*3i", "n")
527BUILTIN(__nvvm_atom_and_gen_i, "iiD*i", "n")
528BUILTIN(__nvvm_atom_and_g_l, "LiLiD*1Li", "n")
529BUILTIN(__nvvm_atom_and_s_l, "LiLiD*3Li", "n")
530BUILTIN(__nvvm_atom_and_gen_l, "LiLiD*Li", "n")
531BUILTIN(__nvvm_atom_and_g_ll, "LLiLLiD*1LLi", "n")
532BUILTIN(__nvvm_atom_and_s_ll, "LLiLLiD*3LLi", "n")
533BUILTIN(__nvvm_atom_and_gen_ll, "LLiLLiD*LLi", "n")
534
535BUILTIN(__nvvm_atom_or_g_i, "iiD*1i", "n")
536BUILTIN(__nvvm_atom_or_s_i, "iiD*3i", "n")
537BUILTIN(__nvvm_atom_or_gen_i, "iiD*i", "n")
538BUILTIN(__nvvm_atom_or_g_l, "LiLiD*1Li", "n")
539BUILTIN(__nvvm_atom_or_s_l, "LiLiD*3Li", "n")
540BUILTIN(__nvvm_atom_or_gen_l, "LiLiD*Li", "n")
541BUILTIN(__nvvm_atom_or_g_ll, "LLiLLiD*1LLi", "n")
542BUILTIN(__nvvm_atom_or_s_ll, "LLiLLiD*3LLi", "n")
543BUILTIN(__nvvm_atom_or_gen_ll, "LLiLLiD*LLi", "n")
544
545BUILTIN(__nvvm_atom_xor_g_i, "iiD*1i", "n")
546BUILTIN(__nvvm_atom_xor_s_i, "iiD*3i", "n")
547BUILTIN(__nvvm_atom_xor_gen_i, "iiD*i", "n")
548BUILTIN(__nvvm_atom_xor_g_l, "LiLiD*1Li", "n")
549BUILTIN(__nvvm_atom_xor_s_l, "LiLiD*3Li", "n")
550BUILTIN(__nvvm_atom_xor_gen_l, "LiLiD*Li", "n")
551BUILTIN(__nvvm_atom_xor_g_ll, "LLiLLiD*1LLi", "n")
552BUILTIN(__nvvm_atom_xor_s_ll, "LLiLLiD*3LLi", "n")
553BUILTIN(__nvvm_atom_xor_gen_ll, "LLiLLiD*LLi", "n")
554
555BUILTIN(__nvvm_atom_cas_g_i, "iiD*1ii", "n")
556BUILTIN(__nvvm_atom_cas_s_i, "iiD*3ii", "n")
557BUILTIN(__nvvm_atom_cas_gen_i, "iiD*ii", "n")
558BUILTIN(__nvvm_atom_cas_g_l, "LiLiD*1LiLi", "n")
559BUILTIN(__nvvm_atom_cas_s_l, "LiLiD*3LiLi", "n")
560BUILTIN(__nvvm_atom_cas_gen_l, "LiLiD*LiLi", "n")
561BUILTIN(__nvvm_atom_cas_g_ll, "LLiLLiD*1LLiLLi", "n")
562BUILTIN(__nvvm_atom_cas_s_ll, "LLiLLiD*3LLiLLi", "n")
563BUILTIN(__nvvm_atom_cas_gen_ll, "LLiLLiD*LLiLLi", "n")
564
565// Compiler Error Warn
566BUILTIN(__nvvm_compiler_error, "vcC*4", "n")
567BUILTIN(__nvvm_compiler_warn, "vcC*4", "n")
568
569#undef BUILTIN
570