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

Peilin Ye via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 18 13:22:19 PDT 2024


================
@@ -69,29 +69,25 @@ void BPFSubtarget::initSubtargetFeatures(StringRef CPU, StringRef FS) {
     CPU = "v3";
   if (CPU == "probe")
     CPU = sys::detail::getHostCPUNameForBPF();
-  if (CPU == "generic" || CPU == "v1")
+  if (CPU.empty() || CPU == "generic" || CPU == "v1")
----------------
peilin-ye wrote:

Ah, right, because recently #107008 made it default to `"v3"`.  Thanks, I didn't notice it when rebasing.

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


More information about the cfe-commits mailing list