@@ -1375,50 +1375,54 @@ let TargetPrefix = "nvvm" in {
1375
1375
defm _f: PTXAtomicWithScope2_sem<llvm_anyfloat_ty>;
1376
1376
defm _i: PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1377
1377
}
1378
+ multiclass PTXAtomicWithScope3_fi {
1379
+ defm _f: PTXAtomicWithScope3_sem<llvm_anyfloat_ty>;
1380
+ defm _i: PTXAtomicWithScope3_sem<llvm_anyint_ty>;
1381
+ }
1378
1382
defm int_nvvm_ld_gen : PTXLdWithScope_fi;
1379
1383
defm int_nvvm_st_gen : PTXStWithScope_fi;
1380
1384
defm int_nvvm_atomic_add_gen : PTXAtomicWithScope2_fi;
1381
1385
defm int_nvvm_atomic_inc_gen_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1382
1386
defm int_nvvm_atomic_dec_gen_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1383
- defm int_nvvm_atomic_exch_gen_i: PTXAtomicWithScope2_sem<llvm_anyint_ty> ;
1387
+ defm int_nvvm_atomic_exch_gen: PTXAtomicWithScope2_fi ;
1384
1388
defm int_nvvm_atomic_xor_gen_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1385
1389
defm int_nvvm_atomic_max_gen_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1386
1390
defm int_nvvm_atomic_max_gen_ui: PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1387
1391
defm int_nvvm_atomic_min_gen_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1388
1392
defm int_nvvm_atomic_min_gen_ui: PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1389
1393
defm int_nvvm_atomic_or_gen_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1390
1394
defm int_nvvm_atomic_and_gen_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1391
- defm int_nvvm_atomic_cas_gen_i : PTXAtomicWithScope3_sem<llvm_anyint_ty> ;
1395
+ defm int_nvvm_atomic_cas_gen : PTXAtomicWithScope3_fi ;
1392
1396
1393
1397
defm int_nvvm_ld_shared : PTXLdWithScope_fi;
1394
1398
defm int_nvvm_st_shared : PTXStWithScope_fi;
1395
1399
defm int_nvvm_atomic_add_shared : PTXAtomicWithScope2_fi;
1396
1400
defm int_nvvm_atomic_inc_shared_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1397
1401
defm int_nvvm_atomic_dec_shared_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1398
- defm int_nvvm_atomic_exch_shared_i: PTXAtomicWithScope2_sem<llvm_anyint_ty> ;
1402
+ defm int_nvvm_atomic_exch_shared: PTXAtomicWithScope2_fi ;
1399
1403
defm int_nvvm_atomic_xor_shared_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1400
1404
defm int_nvvm_atomic_max_shared_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1401
1405
defm int_nvvm_atomic_max_shared_ui: PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1402
1406
defm int_nvvm_atomic_min_shared_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1403
1407
defm int_nvvm_atomic_min_shared_ui: PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1404
1408
defm int_nvvm_atomic_or_shared_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1405
1409
defm int_nvvm_atomic_and_shared_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1406
- defm int_nvvm_atomic_cas_shared_i : PTXAtomicWithScope3_sem<llvm_anyint_ty> ;
1410
+ defm int_nvvm_atomic_cas_shared : PTXAtomicWithScope3_fi ;
1407
1411
1408
1412
defm int_nvvm_ld_global : PTXLdWithScope_fi;
1409
1413
defm int_nvvm_st_global : PTXStWithScope_fi;
1410
1414
defm int_nvvm_atomic_add_global : PTXAtomicWithScope2_fi;
1411
1415
defm int_nvvm_atomic_inc_global_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1412
1416
defm int_nvvm_atomic_dec_global_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1413
- defm int_nvvm_atomic_exch_global_i: PTXAtomicWithScope2_sem<llvm_anyint_ty> ;
1417
+ defm int_nvvm_atomic_exch_global: PTXAtomicWithScope2_fi ;
1414
1418
defm int_nvvm_atomic_xor_global_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1415
1419
defm int_nvvm_atomic_max_global_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1416
1420
defm int_nvvm_atomic_max_global_ui: PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1417
1421
defm int_nvvm_atomic_min_global_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1418
1422
defm int_nvvm_atomic_min_global_ui: PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1419
1423
defm int_nvvm_atomic_or_global_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1420
1424
defm int_nvvm_atomic_and_global_i : PTXAtomicWithScope2_sem<llvm_anyint_ty>;
1421
- defm int_nvvm_atomic_cas_global_i : PTXAtomicWithScope3_sem<llvm_anyint_ty> ;
1425
+ defm int_nvvm_atomic_cas_global : PTXAtomicWithScope3_fi ;
1422
1426
1423
1427
// Bar.Sync
1424
1428
0 commit comments