[PATCH] D151655: [LoongArch] Support finer-grained DBAR hints for LA664+

Lu Weining via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 30 01:51:48 PDT 2023


SixWeining added a reviewer: hev.
SixWeining added a subscriber: hev.
SixWeining added a comment.

Only a few hints (i.e. 0x0, 0x10, 0x12, 0x14) are emitted. Is it possible to emit more?

Add @hev who is more experienced on dbar usage and generating especially on JVM.



================
Comment at: llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp:264-278
+SDValue LoongArchTargetLowering::lowerATOMIC_FENCE(SDValue Op,
+                                                   SelectionDAG &DAG) const {
+  SDLoc DL(Op);
+  SyncScope::ID FenceSSID =
+      static_cast<SyncScope::ID>(Op.getConstantOperandVal(2));
+
+  // singlethread fences only synchronize with signal handlers on the same
----------------
Seems that tests are missing.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151655



More information about the llvm-commits mailing list