[PATCH] D149488: [RISCV] Use AMOSWAP for 32 and 64-bit atomic stores
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 6 10:06:42 PDT 2023
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:10098
+// returns true for seq_cst stores of 32/64bit
+bool canAmoSwapStoreInst(const StoreInst *SI, const RISCVSubtarget &Subtarget) {
+ unsigned Size = SI->getValueOperand()->getType()->getPrimitiveSizeInBits();
----------------
I think LLVM coding guidelines are to use `static` for functions rather than anonymous namespace. https://llvm.org/docs/CodingStandards.html#anonymous-namespaces
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149488/new/
https://reviews.llvm.org/D149488
More information about the llvm-commits
mailing list