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/75e13ffc5b99
branches: trunk
changeset: 10729:75e13ffc5b99
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 d38a49038351 -r 75e13ffc5b99 external/mit/MesaLib/dist/src/amd/common/ac_llvm_helper.cpp
--- a/external/mit/MesaLib/dist/src/amd/common/ac_llvm_helper.cpp Tue Feb 16 23:25:08 2021 +0100
+++ b/external/mit/MesaLib/dist/src/amd/common/ac_llvm_helper.cpp Tue May 25 00:39:15 2021 +0200
@@ -221,6 +221,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));
}
@@ -230,6 +233,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