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

Thomas Preud'homme via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 6 07:34:22 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) {
----------------
RoboTux wrote:

Should I fix G_ATOMIC_CMPXCHG too then? It was doing customIf first.

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


More information about the llvm-commits mailing list