[llvm-branch-commits] [clang] 66a4ddd - Completed loads
Albion Fung via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jun 21 19:06:53 PDT 2021
Author: Albion Fung
Date: 2021-06-09T13:08:30-05:00
New Revision: 66a4ddde6548ff43f45f98ce15dd5bdac8bcf1ed
URL: https://github.com/llvm/llvm-project/commit/66a4ddde6548ff43f45f98ce15dd5bdac8bcf1ed
DIFF: https://github.com/llvm/llvm-project/commit/66a4ddde6548ff43f45f98ce15dd5bdac8bcf1ed.diff
LOG: Completed loads
Added:
Modified:
clang/include/clang/Basic/BuiltinsPPC.def
llvm/lib/Target/PowerPC/PPCInstrPrefix.td
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/BuiltinsPPC.def b/clang/include/clang/Basic/BuiltinsPPC.def
index 1b88c6797774b..a8ed189007dc1 100644
--- a/clang/include/clang/Basic/BuiltinsPPC.def
+++ b/clang/include/clang/Basic/BuiltinsPPC.def
@@ -45,12 +45,10 @@ BUILTIN(__builtin_ppc_dcbt, "vv*", "")
BUILTIN(__builtin_ppc_dcbtst, "vv*", "")
BUILTIN(__builtin_ppc_dcbz, "vv*", "")
BUILTIN(__builtin_ppc_icbt, "vv*", "")
-BUILTIN(__builtin_ppc_test_data_class, "bff", "")
-BUILTIN(__builtin_ppc_test_data_class, "bdd", "")
BUILTIN(__builtin_ppc_ldarx, "LiLiD*iC", "")
-BUILTIN(__builtin_ppc_lwarx, "iiD*iC", "")
-BUILTIN(__builtin_ppc_lharx, "ssD*", "")
-BUILTIN(__builtin_ppc_lbarx, "ccD*", "")
+BUILTIN(__builtin_ppc_lwarx, "iiD*", "")
+BUILTIN(__builtin_ppc_lharx, "isD*", "")
+BUILTIN(__builtin_ppc_lbarx, "icD*", "")
BUILTIN(__builtin_ppc_stdcx, "iLiD*", "")
BUILTIN(__builtin_ppc_stwcx, "iiD*", "")
BUILTIN(__builtin_ppc_sthcx, "isD*Li", "")
diff --git a/llvm/lib/Target/PowerPC/PPCInstrPrefix.td b/llvm/lib/Target/PowerPC/PPCInstrPrefix.td
index b183dbd4b3bbb..07c07baa0523d 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrPrefix.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrPrefix.td
@@ -2836,3 +2836,10 @@ let Predicates = [IsISA3_1, HasVSX, IsBigEndian, IsPPC64] in {
def : Pat<(v2i64 (PPCvecinsertelt v2i64:$vDi, i64:$rA, (i64 i))),
(VINSD $vDi, !mul(i, 8), $rA)>;
}
+
+def : Pat<(int_ppc_lwarx xoaddr:$dst),
+ (LWARX xoaddr:$dst)>;
+def : Pat<(int_ppc_lharx xoaddr:$dst),
+ (LHARX xoaddr:$dst)>;
+def : Pat<(int_ppc_lbarx xoaddr:$dst),
+ (LBARX xoaddr:$dst)>;
More information about the llvm-branch-commits
mailing list