[PATCH] D48131: [RISCV] Implement codegen for cmpxchg on RV32I

Tim Northover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 14 06:08:16 PDT 2018


t.p.northover added a comment.

I obviously haven't been following RISC-V enough to give final reviews, but this mostly looked sensible to me. Just one question:



================
Comment at: lib/Target/RISCV/RISCVISelLowering.cpp:1744
+  Value *Addr = CI->getPointerOperand();
+  Value *AddrInt = Builder.CreatePtrToInt(Addr, Builder.getInt32Ty());
+  Value *AlignedAddr = Builder.CreateIntToPtr(
----------------
Is this an intentional choice not to support 64-bit pointers? Even if so, an assert might be good.


https://reviews.llvm.org/D48131





More information about the llvm-commits mailing list