Merge pull request #186 from GuillaumeGomez/update-intrinsics-tool
Update intrinsics tool
This commit is contained in:
commit
45e3a4aa57
@ -65,6 +65,7 @@
|
||||
"llvm.amdgcn.cvt.pknorm.u16" => "__builtin_amdgcn_cvt_pknorm_u16",
|
||||
"llvm.amdgcn.cvt.pkrtz" => "__builtin_amdgcn_cvt_pkrtz",
|
||||
"llvm.amdgcn.dispatch.id" => "__builtin_amdgcn_dispatch_id",
|
||||
"llvm.amdgcn.ds.add.gs.reg.rtn" => "__builtin_amdgcn_ds_add_gs_reg_rtn",
|
||||
"llvm.amdgcn.ds.bpermute" => "__builtin_amdgcn_ds_bpermute",
|
||||
"llvm.amdgcn.ds.fadd.v2bf16" => "__builtin_amdgcn_ds_atomic_fadd_v2bf16",
|
||||
"llvm.amdgcn.ds.gws.barrier" => "__builtin_amdgcn_ds_gws_barrier",
|
||||
@ -74,9 +75,13 @@
|
||||
"llvm.amdgcn.ds.gws.sema.release.all" => "__builtin_amdgcn_ds_gws_sema_release_all",
|
||||
"llvm.amdgcn.ds.gws.sema.v" => "__builtin_amdgcn_ds_gws_sema_v",
|
||||
"llvm.amdgcn.ds.permute" => "__builtin_amdgcn_ds_permute",
|
||||
"llvm.amdgcn.ds.sub.gs.reg.rtn" => "__builtin_amdgcn_ds_sub_gs_reg_rtn",
|
||||
"llvm.amdgcn.ds.swizzle" => "__builtin_amdgcn_ds_swizzle",
|
||||
"llvm.amdgcn.endpgm" => "__builtin_amdgcn_endpgm",
|
||||
"llvm.amdgcn.fdot2" => "__builtin_amdgcn_fdot2",
|
||||
"llvm.amdgcn.fdot2.bf16.bf16" => "__builtin_amdgcn_fdot2_bf16_bf16",
|
||||
"llvm.amdgcn.fdot2.f16.f16" => "__builtin_amdgcn_fdot2_f16_f16",
|
||||
"llvm.amdgcn.fdot2.f32.bf16" => "__builtin_amdgcn_fdot2_f32_bf16",
|
||||
"llvm.amdgcn.fmed3" => "__builtin_amdgcn_fmed3",
|
||||
"llvm.amdgcn.fmul.legacy" => "__builtin_amdgcn_fmul_legacy",
|
||||
"llvm.amdgcn.groupstaticsize" => "__builtin_amdgcn_groupstaticsize",
|
||||
@ -167,6 +172,8 @@
|
||||
"llvm.amdgcn.smfmac.f32.32x32x16.f16" => "__builtin_amdgcn_smfmac_f32_32x32x16_f16",
|
||||
"llvm.amdgcn.smfmac.i32.16x16x64.i8" => "__builtin_amdgcn_smfmac_i32_16x16x64_i8",
|
||||
"llvm.amdgcn.smfmac.i32.32x32x32.i8" => "__builtin_amdgcn_smfmac_i32_32x32x32_i8",
|
||||
"llvm.amdgcn.sudot4" => "__builtin_amdgcn_sudot4",
|
||||
"llvm.amdgcn.sudot8" => "__builtin_amdgcn_sudot8",
|
||||
"llvm.amdgcn.udot2" => "__builtin_amdgcn_udot2",
|
||||
"llvm.amdgcn.udot4" => "__builtin_amdgcn_udot4",
|
||||
"llvm.amdgcn.udot8" => "__builtin_amdgcn_udot8",
|
||||
|
@ -67,7 +67,7 @@ def extract_instrinsics_from_llvm(llvm_path, intrinsics):
|
||||
pos += 1
|
||||
if line == "}":
|
||||
break
|
||||
entries = re.findall('string GCCBuiltinName = "(\\w+)";', content)
|
||||
entries = re.findall('string ClangBuiltinName = "(\\w+)";', content)
|
||||
current_arch = re.findall('string TargetPrefix = "(\\w+)";', content)
|
||||
if len(entries) == 1 and len(current_arch) == 1:
|
||||
current_arch = current_arch[0]
|
||||
|
Loading…
Reference in New Issue
Block a user