[PATCH, BPF 0/5] Minor improvements to the bpf backend


Richard Henderson <rth@...>
 

Hi,

Using EM_NONE for the bpf backend e_machine value is less than optimal.
With a unique value we can interact with other tools, e.g. objdump for
disassembly.

As a bonus, I noticed a few missing patterns that are useful to implement.


r~


Richard Henderson (5):
BPF: Use a provisional ELF e_machine value
BPF: Rearrange instruction classes
BPF: Add NEG operation
BPF: Add 32-bit move patterns
BPF: Add 32-bit and pattern

include/llvm/Object/ELFObjectFile.h | 5 +
include/llvm/Support/ELF.h | 7 +
include/llvm/Support/ELFRelocs/BPF.def | 9 +
lib/Object/ELF.cpp | 7 +
lib/ObjectYAML/ELFYAML.cpp | 4 +
lib/Target/BPF/BPFInstrFormats.td | 45 +-
lib/Target/BPF/BPFInstrInfo.td | 598 +++++++++------------
lib/Target/BPF/MCTargetDesc/BPFELFObjectWriter.cpp | 7 +-
tools/llvm-objdump/llvm-objdump.cpp | 1 +
tools/llvm-readobj/ELFDumper.cpp | 1 +
10 files changed, 345 insertions(+), 339 deletions(-)
create mode 100644 include/llvm/Support/ELFRelocs/BPF.def

--
2.5.5


Alexei Starovoitov
 

On Wed, Jun 15, 2016 at 2:37 PM, Richard Henderson via iovisor-dev
<iovisor-dev@...> wrote:
Hi,

Using EM_NONE for the bpf backend e_machine value is less than optimal.
With a unique value we can interact with other tools, e.g. objdump for
disassembly.

As a bonus, I noticed a few missing patterns that are useful to implement.
Hi Richard,

sounds like em number is now set to 247 and paper work filed?
When should I expect v2 of these patches?
3.9 release branch will be forked mid july.
would be great to get these changes in soon.

Thanks


Richard Henderson <rth@...>
 

On 06/22/2016 10:27 AM, Alexei Starovoitov wrote:
On Wed, Jun 15, 2016 at 2:37 PM, Richard Henderson via iovisor-dev
<iovisor-dev@...> wrote:
Hi,

Using EM_NONE for the bpf backend e_machine value is less than optimal.
With a unique value we can interact with other tools, e.g. objdump for
disassembly.

As a bonus, I noticed a few missing patterns that are useful to implement.
Hi Richard,

sounds like em number is now set to 247 and paper work filed?
Yes.

When should I expect v2 of these patches?
3.9 release branch will be forked mid july.
would be great to get these changes in soon.
I'm working on that today.


r~