llvm-project/llvm/test/Transforms/AtomicExpand/AMDGPU
Alex Richardson 5bc438efcf [AtomicExpand] Avoid creating an unnamed libcall
I recently modified this pass to better support CHERI-RISC-V and while
doing so I noticed that this pass was calling M->getOrInsertFunction()
with the result of TLI->getLibcallName(RTLibType). However, AMDGPU fills
the libcalls array with nullptr, so this creates an anonymous function
instead. This patch changes expandAtomicOpToLibcall to return false in
case the libcall does not exist and changes the assert() in the callees to
a report_fatal_error() instead.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D88800
2020-11-02 17:52:37 +00:00
..
expand-atomic-i8.ll
expand-atomic-i16.ll
expand-atomic-rmw-fadd.ll
expand-atomic-rmw-fsub.ll
expand-atomic-rmw-nand.ll
lit.local.cfg
unaligned-atomic.ll [AtomicExpand] Avoid creating an unnamed libcall 2020-11-02 17:52:37 +00:00