git: c77448c1969f - stable/13 - Apply llvm fix for crash building julia on PowerPC64

From: Dimitry Andric <>
Date: Sun, 25 Dec 2022 11:42:05 UTC
The branch stable/13 has been updated by dim:


commit c77448c1969f11e1ed77c30e870239912c683e8a
Author:     Dimitry Andric <>
AuthorDate: 2022-12-16 13:28:10 +0000
Commit:     Dimitry Andric <>
CommitDate: 2022-12-25 11:41:33 +0000

    Apply llvm fix for crash building julia on PowerPC64
    Merge commit 6710b21d4698 from llvm git (by Kai Luo):
      [PowerPC] Allow llvm.ppc.cfence to accept pointer types
      In the context of atomic load, integer, pointer and float point types are allowed, thus we should allow llvm.ppc.cfence to accept any type mentioned.
      Reviewed By: shchenz, vchuravy
      Differential Revision:
    Requested by:   jhibbits
    MFC after:      3 days
    (cherry picked from commit 4589169768490461995f07713c8e9d7bab6bf277)
 contrib/llvm-project/llvm/include/llvm/IR/ | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/contrib/llvm-project/llvm/include/llvm/IR/ b/contrib/llvm-project/llvm/include/llvm/IR/
index b01fa10763b8..6e5b9cbd9a44 100644
--- a/contrib/llvm-project/llvm/include/llvm/IR/
+++ b/contrib/llvm-project/llvm/include/llvm/IR/
@@ -1459,7 +1459,11 @@ def int_ppc_tsuspend : GCCBuiltin<"__builtin_tsuspend">,
 def int_ppc_ttest : GCCBuiltin<"__builtin_ttest">,
       Intrinsic<[llvm_i64_ty], [], []>;
-def int_ppc_cfence : Intrinsic<[], [llvm_anyint_ty], []>;
+// We currently use llvm.ppc.cfence in the context of atomic load which
+// in LLVM IR requires its type to be one of integer, pointer and
+// float point type. So llvm_any_ty here refers to type mentioned above.
+// Backend is supposed to lower these types to appropriate MVTs.
+def int_ppc_cfence : Intrinsic<[], [llvm_any_ty], []>;
 // PowerPC set FPSCR Intrinsic Definitions.
 def int_ppc_setrnd : GCCBuiltin<"__builtin_setrnd">,