https://github.com/yonghong-song closed
https://github.com/llvm/llvm-project/pull/71856
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/yonghong-song edited
https://github.com/llvm/llvm-project/pull/71856
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/yonghong-song edited
https://github.com/llvm/llvm-project/pull/71856
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/yonghong-song updated
https://github.com/llvm/llvm-project/pull/71856
>From 8683384a49171ce9ef1b3dc59e79c150bc3e53e2 Mon Sep 17 00:00:00 2001
From: Yonghong Song
Date: Thu, 9 Nov 2023 15:16:03 -0800
Subject: [PATCH] [Clang][BPF] Add __BPF_CPU_VERSION__ macro
Sometimes bpf de
https://github.com/yonghong-song updated
https://github.com/llvm/llvm-project/pull/71856
>From fd2b39e869cf3b8395113bac409486cc052ca749 Mon Sep 17 00:00:00 2001
From: Yonghong Song
Date: Thu, 9 Nov 2023 15:16:03 -0800
Subject: [PATCH] [Clang][BPF] Add __bpf_cpu_version__ macro
Sometimes bpf de
@@ -29,6 +29,14 @@ void BPFTargetInfo::getTargetDefines(const LangOptions &Opts,
MacroBuilder &Builder) const {
Builder.defineMacro("__bpf__");
Builder.defineMacro("__BPF__");
+
+ std::string CPU = getTargetOpts().CPU;
+ if (CPU == "pr
https://github.com/yonghong-song deleted
https://github.com/llvm/llvm-project/pull/71856
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -29,6 +29,14 @@ void BPFTargetInfo::getTargetDefines(const LangOptions &Opts,
MacroBuilder &Builder) const {
Builder.defineMacro("__bpf__");
Builder.defineMacro("__BPF__");
+
+ std::string CPU = getTargetOpts().CPU;
+ if (CPU == "pr
https://github.com/yonghong-song edited
https://github.com/llvm/llvm-project/pull/71856
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -29,6 +29,14 @@ void BPFTargetInfo::getTargetDefines(const LangOptions &Opts,
MacroBuilder &Builder) const {
Builder.defineMacro("__bpf__");
Builder.defineMacro("__BPF__");
+
+ std::string CPU = getTargetOpts().CPU;
+ if (CPU == "pr
@@ -29,6 +29,14 @@ void BPFTargetInfo::getTargetDefines(const LangOptions &Opts,
MacroBuilder &Builder) const {
Builder.defineMacro("__bpf__");
Builder.defineMacro("__BPF__");
+
+ std::string CPU = getTargetOpts().CPU;
+ if (CPU == "pr
https://github.com/eddyz87 approved this pull request.
Hi Yonghong,
Thank you for working on this.
https://github.com/llvm/llvm-project/pull/71856
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/
https://github.com/yonghong-song edited
https://github.com/llvm/llvm-project/pull/71856
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
yonghong-song wrote:
cc @4ast @anakryiko
https://github.com/llvm/llvm-project/pull/71856
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: None (yonghong-song)
Changes
Sometimes bpf developer might want to develop different codes based on
particular cpu versioins. For example, cpu v1/v2/v3 branch target is 16bit
while cpu v4 branch target is 32bit, thus cpu v4 allows more ag
https://github.com/yonghong-song created
https://github.com/llvm/llvm-project/pull/71856
Sometimes bpf developer might want to develop different codes based on
particular cpu versioins. For example, cpu v1/v2/v3 branch target is 16bit
while cpu v4 branch target is 32bit, thus cpu v4 allows mor
16 matches
Mail list logo