mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 14:17:59 +00:00
e58b8cc117
add BPF disassembler, so tools like llvm-objdump can be used: $ llvm-objdump -d -no-show-raw-insn ./sockex1_kern.o ./sockex1_kern.o: file format ELF64-BPF Disassembly of section socket1: bpf_prog1: 0: r6 = r1 8: r0 = *(u8 *)skb[23] 10: *(u32 *)(r10 - 4) = r0 18: r1 = *(u32 *)(r6 + 4) 20: if r1 != 4 goto 8 28: r2 = r10 30: r2 += -4 ld_imm64 (the only 16-byte insn) and special ld_abs/ld_ind instructions had to be treated in a special way. The decoders for the rest of the insns are automatically generated. Add tests to cover new functionality. Signed-off-by: Alexei Starovoitov <ast@kernel.org> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287477 91177308-0d34-0410-b5e6-96231b3b80d8
44 lines
987 B
Plaintext
44 lines
987 B
Plaintext
;===- ./lib/Target/BPF/LLVMBuild.txt ---------------------------*- Conf -*--===;
|
|
;
|
|
; The LLVM Compiler Infrastructure
|
|
;
|
|
; This file is distributed under the University of Illinois Open Source
|
|
; License. See LICENSE.TXT for details.
|
|
;
|
|
;===------------------------------------------------------------------------===;
|
|
;
|
|
; This is an LLVMBuild description file for the components in this subdirectory.
|
|
;
|
|
; For more information on the LLVMBuild system, please see:
|
|
;
|
|
; http://llvm.org/docs/LLVMBuild.html
|
|
;
|
|
;===------------------------------------------------------------------------===;
|
|
|
|
[common]
|
|
subdirectories = InstPrinter Disassembler MCTargetDesc TargetInfo
|
|
|
|
[component_0]
|
|
type = TargetGroup
|
|
name = BPF
|
|
parent = Target
|
|
has_asmprinter = 1
|
|
has_disassembler = 1
|
|
|
|
[component_1]
|
|
type = Library
|
|
name = BPFCodeGen
|
|
parent = BPF
|
|
required_libraries =
|
|
AsmPrinter
|
|
CodeGen
|
|
Core
|
|
MC
|
|
BPFAsmPrinter
|
|
BPFDesc
|
|
BPFInfo
|
|
SelectionDAG
|
|
Support
|
|
Target
|
|
add_to_library_groups = BPF
|