[llvm] [NVPTX] Add syncscope support for cmpxchg (PR #140812)
Alex MacLean via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 10:07:54 PDT 2025
================
@@ -523,6 +523,40 @@ static unsigned int getCodeAddrSpace(const MemSDNode *N) {
.value_or(NVPTX::AddressSpace::Generic);
}
+unsigned int NVPTXDAGToDAGISel::getAddrSpace(const MemSDNode *N) const {
+ return convertAS(N->getMemOperand()->getAddrSpace())
+ .value_or(NVPTX::AddressSpace::Generic);
+}
----------------
AlexMaclean wrote:
This looks like an exact copy of the above `getCodeAddrSpace`. Can one of these be removed?
https://github.com/llvm/llvm-project/pull/140812
More information about the llvm-commits
mailing list