[clang] [llvm] [BPF] Add load-acquire and store-release instructions under -mcpu=v4 (PR #108636)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 24 20:03:24 PDT 2024


================
@@ -67,6 +67,8 @@ void BPFTargetInfo::getTargetDefines(const LangOptions &Opts,
     Builder.defineMacro("__BPF_FEATURE_SDIV_SMOD");
     Builder.defineMacro("__BPF_FEATURE_GOTOL");
     Builder.defineMacro("__BPF_FEATURE_ST");
+    Builder.defineMacro("__BPF_FEATURE_LOAD_ACQUIRE");
+    Builder.defineMacro("__BPF_FEATURE_STORE_RELEASE");
----------------
yonghong-song wrote:

I think load_acquire and store_release can be just ONE feature as load_acquire/store_release often pair with each other. But I don't have a good name for that. If no good name, your above two features are fine to me too.

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


More information about the llvm-commits mailing list