We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5167331 commit 5331f3fCopy full SHA for 5331f3f
llvm/lib/SYCLNativeCPUUtils/FAtomicsNativeCPU.cpp
@@ -38,6 +38,8 @@ PreservedAnalyses FAtomicsNativeCPU::run(Module &M,
38
39
BasicBlock *BB = BasicBlock::Create(Ctx, "entry", &F);
40
IRBuilder<> Builder(BB);
41
+ // Currently we drop arguments 1 and 2 (scope and memory ordering),
42
+ // defaulting to Monotonic ordering and System scope.
43
auto A =
44
Builder.CreateAtomicRMW(OpCode, F.getArg(0), F.getArg(3), MaybeAlign(),
45
AtomicOrdering::Monotonic, SyncScope::System);
0 commit comments