[PATCH] D134266: Introduce predicate for a atomic operations in GMIR

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 22 06:14:40 PDT 2022


arsenm accepted this revision.
arsenm added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/include/llvm/CodeGen/TargetInstrInfo.h:118-121
+  static bool isGenericAtomicCmpXchgOpcode(unsigned Opc){
+    return Opc == TargetOpcode::G_ATOMIC_CMPXCHG ||
+            Opc == TargetOpcode::G_ATOMIC_CMPXCHG_WITH_SUCCESS;
+  }
----------------
I think the benefit of this one is dubious. They don't have the same operand structure


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134266/new/

https://reviews.llvm.org/D134266



More information about the llvm-commits mailing list