Skip to content

Commit 5331f3f

Browse files
committed
Add comment
1 parent 5167331 commit 5331f3f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/SYCLNativeCPUUtils/FAtomicsNativeCPU.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ PreservedAnalyses FAtomicsNativeCPU::run(Module &M,
3838

3939
BasicBlock *BB = BasicBlock::Create(Ctx, "entry", &F);
4040
IRBuilder<> Builder(BB);
41+
// Currently we drop arguments 1 and 2 (scope and memory ordering),
42+
// defaulting to Monotonic ordering and System scope.
4143
auto A =
4244
Builder.CreateAtomicRMW(OpCode, F.getArg(0), F.getArg(3), MaybeAlign(),
4345
AtomicOrdering::Monotonic, SyncScope::System);

0 commit comments

Comments
 (0)