[llvm] Add out-of-line-atomics support to GlobalISel (PR #74588)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 6 07:38:45 PST 2023


================
@@ -758,16 +758,32 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
           all(typeInSet(0, {s8, s16, s32, s64, s128}), typeIs(2, p0)));
 
   getActionDefinitionsBuilder(G_ATOMIC_CMPXCHG)
+      .libcallIf([&ST](const LegalityQuery &Query) {
----------------
arsenm wrote:

Same for both, I would fix pre-existing deviations from legal first, then custom in a pre-commit 

https://github.com/llvm/llvm-project/pull/74588


More information about the llvm-commits mailing list