[clang] 320b72e - [X86][AMX] Rename amx-bf16 intrinsic according to correct naming convention
Bing1 Yu via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 16 20:23:20 PDT 2021
Author: Bing1 Yu
Date: 2021-03-17T11:22:52+08:00
New Revision: 320b72e9cd77504054bd2c837149df2f2bd4c149
URL: https://github.com/llvm/llvm-project/commit/320b72e9cd77504054bd2c837149df2f2bd4c149
DIFF: https://github.com/llvm/llvm-project/commit/320b72e9cd77504054bd2c837149df2f2bd4c149.diff
LOG: [X86][AMX] Rename amx-bf16 intrinsic according to correct naming convention
__tile_tdpbf16ps should be renamed with __tile_dpbf16ps
Reviewed By: pengfei
Differential Revision: https://reviews.llvm.org/D98685
Added:
Modified:
clang/lib/Headers/amxintrin.h
clang/test/CodeGen/X86/amx_api.c
Removed:
################################################################################
diff --git a/clang/lib/Headers/amxintrin.h b/clang/lib/Headers/amxintrin.h
index 8c276519e362..12d21d40bcff 100644
--- a/clang/lib/Headers/amxintrin.h
+++ b/clang/lib/Headers/amxintrin.h
@@ -267,8 +267,8 @@ _tile_stored_internal(unsigned short m, unsigned short n, void *base,
}
static __inline__ _tile1024i __DEFAULT_FN_ATTRS_BF16
-_tile_tdpbf16ps_internal(unsigned short m, unsigned short n, unsigned short k,
- _tile1024i dst, _tile1024i src1, _tile1024i src2) {
+_tile_dpbf16ps_internal(unsigned short m, unsigned short n, unsigned short k,
+ _tile1024i dst, _tile1024i src1, _tile1024i src2) {
return __builtin_ia32_tdpbf16ps_internal(m, n, k, dst, src1, src2);
}
@@ -323,10 +323,10 @@ static void __tile_zero(__tile1024i *dst) {
}
__DEFAULT_FN_ATTRS_BF16
-static void __tile_tdpbf16ps(__tile1024i *dst, __tile1024i src1,
- __tile1024i src2) {
- dst->tile = _tile_tdpbf16ps_internal(src1.row, src2.col, src1.col, dst->tile,
- src1.tile, src2.tile);
+static void __tile_dpbf16ps(__tile1024i *dst, __tile1024i src1,
+ __tile1024i src2) {
+ dst->tile = _tile_dpbf16ps_internal(src1.row, src2.col, src1.col, dst->tile,
+ src1.tile, src2.tile);
}
#undef __DEFAULT_FN_ATTRS_TILE
diff --git a/clang/test/CodeGen/X86/amx_api.c b/clang/test/CodeGen/X86/amx_api.c
index 824a3aec20ec..3bfe887c0445 100644
--- a/clang/test/CodeGen/X86/amx_api.c
+++ b/clang/test/CodeGen/X86/amx_api.c
@@ -81,9 +81,9 @@ void test_tile_zero(__tile1024i c) {
__tile_zero(&c);
}
-void test_tile_tdpbf16ps(__tile1024i a, __tile1024i b, __tile1024i c) {
- //CHECK-LABEL: @test_tile_tdpbf16ps
+void test_tile_dpbf16ps(__tile1024i a, __tile1024i b, __tile1024i c) {
+ //CHECK-LABEL: @test_tile_dpbf16ps
//CHECK: call x86_amx @llvm.x86.tdpbf16ps.internal
//CHECK-NEXT: {{%.*}} = bitcast x86_amx {{%.*}} to <256 x i32>
- __tile_tdpbf16ps(&a, b, c);
+ __tile_dpbf16ps(&a, b, c);
}
More information about the cfe-commits
mailing list