[clang] [llvm] [BPF] Make -mcpu=v3 as the default (PR #107008)

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 2 20:04:40 PDT 2024


================
@@ -38,16 +38,22 @@ void BPFTargetInfo::getTargetDefines(const LangOptions &Opts,
 
   Builder.defineMacro("__BPF_FEATURE_ADDR_SPACE_CAST");
 
-  if (CPU.empty() || CPU == "generic" || CPU == "v1") {
+  if (CPU == "generic" || CPU == "v1") {
----------------
yonghong-song wrote:

Indeed. This is simpler and easy to reason. Will make the change.

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


More information about the cfe-commits mailing list