[PATCH] D57450: [RISCV] Set MaxAtomicInlineWidth and MaxAtomicPromoteWidth for RV32/RV64 targets with atomics
Alex Bradbury via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 30 07:22:04 PST 2019
asb created this revision.
asb added reviewers: jfb, jyknight, wmi.
Herald added subscribers: jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, apazos, simoncook, johnrusso, rbar.
This ensures that libcalls aren't generated when the target supports atomics. Atomics aren't in the base RV32I/RV64I instruction sets, so MaxAtomicInlineWidth and MaxAtomicPromoteWidth are set only when the atomics extension is being targeted. This must be done in setMaxAtomicWidth, as this should be done after handleTargetFeatures has been called.
Repository:
rC Clang
https://reviews.llvm.org/D57450
Files:
lib/Basic/Targets/RISCV.h
test/CodeGen/riscv-atomics.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57450.184293.patch
Type: text/x-patch
Size: 3864 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190130/7ea705e4/attachment.bin>
More information about the cfe-commits
mailing list