Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[xsrc-draft/trunk]: xsrc/external/mit/MesaLib/dist/src/amd/common Support LLV...
details: https://anonhg.NetBSD.org/xsrc-all/rev/a4e4cc28ac3d
branches: trunk
changeset: 10731:a4e4cc28ac3d
user: Joerg Sonnenberger <joerg%bec.de@localhost>
date: Tue May 25 00:39:15 2021 +0200
description:
Support LLVM 13.
diffstat:
external/mit/MesaLib/dist/src/amd/common/ac_llvm_helper.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (23 lines):
diff -r 61d2f091ed91 -r a4e4cc28ac3d external/mit/MesaLib/dist/src/amd/common/ac_llvm_helper.cpp
--- a/external/mit/MesaLib/dist/src/amd/common/ac_llvm_helper.cpp Thu May 27 20:20:43 2021 +0000
+++ b/external/mit/MesaLib/dist/src/amd/common/ac_llvm_helper.cpp Tue May 25 00:39:15 2021 +0200
@@ -214,6 +214,9 @@
unsigned SSID = llvm::unwrap(ctx->context)->getOrInsertSyncScopeID(sync_scope);
return llvm::wrap(llvm::unwrap(ctx->builder)->CreateAtomicRMW(
binop, llvm::unwrap(ptr), llvm::unwrap(val),
+#if LLVM_VERSION_MAJOR >= 13
+ llvm::MaybeAlign(0),
+#endif
llvm::AtomicOrdering::SequentiallyConsistent, SSID));
}
@@ -223,6 +226,9 @@
unsigned SSID = llvm::unwrap(ctx->context)->getOrInsertSyncScopeID(sync_scope);
return llvm::wrap(llvm::unwrap(ctx->builder)->CreateAtomicCmpXchg(
llvm::unwrap(ptr), llvm::unwrap(cmp), llvm::unwrap(val),
+#if LLVM_VERSION_MAJOR >= 13
+ llvm::MaybeAlign(0),
+#endif
llvm::AtomicOrdering::SequentiallyConsistent,
llvm::AtomicOrdering::SequentiallyConsistent, SSID));
}
Home |
Main Index |
Thread Index |
Old Index