diff options
author | Yonghong Song <yhs@fb.com> | 2017-09-28 02:46:11 +0000 |
---|---|---|
committer | Yonghong Song <yhs@fb.com> | 2017-09-28 02:46:11 +0000 |
commit | e9165f87203a0480fcc0308004467a9b4237170a (patch) | |
tree | 6b6f94bc6fec13bc9b6a882f63fc020c41308cb0 /llvm/tools/llvm-cov/SourceCoverageView.cpp | |
parent | def1729dc40d4d24ee979be9b2be8d4d70fae1c9 (diff) | |
download | llvm-e9165f87203a0480fcc0308004467a9b4237170a.zip llvm-e9165f87203a0480fcc0308004467a9b4237170a.tar.gz llvm-e9165f87203a0480fcc0308004467a9b4237170a.tar.bz2 |
bpf: add new insns for bswap_to_le and negation
This patch adds new insn, "reg = be16/be32/be64 reg",
for bswap to little endian for big-endian target (bpfeb).
It also adds new insn for negation "reg = -reg".
Currently, for source code, e.g.,
b = -a
LLVM still prefers to generate:
b = 0 - a
But "reg = -reg" format can be used in assembly code.
Signed-off-by: Yonghong Song <yhs@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
llvm-svn: 314376
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.cpp')
0 files changed, 0 insertions, 0 deletions