diff options
author | Yonghong Song <yhs@fb.com> | 2017-08-23 04:26:17 +0000 |
---|---|---|
committer | Yonghong Song <yhs@fb.com> | 2017-08-23 04:26:17 +0000 |
commit | c4ea1010c1be3bb9cfb4772fbd69d02703ad7da6 (patch) | |
tree | c9519f6c84ca497cf2fa4348aea926e86b5a1640 /compiler-rt | |
parent | dc1dbf6ef320175acbdc1206da4b0a176b304449 (diff) | |
download | bcm5719-llvm-c4ea1010c1be3bb9cfb4772fbd69d02703ad7da6.tar.gz bcm5719-llvm-c4ea1010c1be3bb9cfb4772fbd69d02703ad7da6.zip |
bpf: add -mcpu=# support for bpf
-mcpu=# will support:
. generic: the default insn set
. v1: insn set version 1, the same as generic
. v2: insn set version 2, version 1 + additional jmp insns
. probe: the compiler will probe the underlying kernel to
decide proper version of insn set.
Examples:
$ clang -target bpf -mcpu=v1 -c t.c
$ clang -target bpf -mcpu=v2 -c t.c
$ clang -target bpf -mcpu=generic -c t.c
$ clang -target bpf -mcpu=probe -c t.c
$ clang -target bpf -mcpu=v3 -c t.c
error: unknown target CPU 'v3'
Signed-off-by: Yonghong Song <yhs@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
llvm-svn: 311523
Diffstat (limited to 'compiler-rt')
0 files changed, 0 insertions, 0 deletions