llvm-project
9bd234a4 - AArch64: Move outline atomic libcalls configuration (#144374)

Commit
143 days ago
AArch64: Move outline atomic libcalls configuration (#144374) This de-conditionalizes the setting of the libcall names on outlineAtomics() && !hasLSE(). The existence of the libcall is a module level property, which cannot depend on the subtarget so this is fine. It's better if the initial list of calls has more entries than will be used than to have missing ones. There aren't any alternative names set, so this is also fine. Currently RuntimeLibcallsInfo conflates the existence of the calls with the lowering usage decision, so this suboptimally will report the libcall name on subtargets that should not use the calls. This doesn't matter in this case though, as the atomic lowering actions are already separately controlled and aren't based on decisions on libcall availability. We could be paranoid and clear the names in TargetLowering. Also fixes not catching all aarch64 triples in the RuntimeLibcallsInfo construction; the previous check missed aarch64_be.
Author
Parents
Loading