[RISCV][doc] Improve documentation comments on atomics intrinsics
authorAlex Bradbury <asb@igalia.com>
Fri, 29 Jul 2022 14:05:27 +0000 (15:05 +0100)
committerAlex Bradbury <asb@igalia.com>
Fri, 29 Jul 2022 14:09:12 +0000 (15:09 +0100)
commit85c6fab8d31786ca0eed644b84352d86d0a35e95
treee7920147cd08a6930a4fc794c19fa78af1b56657
parent5eaeeed8cbf5896ab147eaf0e7e29211fbcde2ff
[RISCV][doc] Improve documentation comments on atomics intrinsics

Previously, it was necessary to check the atomics lowering or expansion
code to determine which argument was which.

This patch additionally tweaks the documentation comment in
TargetLowering to clarify the return value of the intrinsic and that the
intrinsic isn't required to mask and shift the result (this is handled
by the target-independent code in AtomicExpandPass).
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/include/llvm/IR/IntrinsicsRISCV.td