llvm-project/llvm/lib/Target/BPF/MCTargetDesc
Alexei Starovoitov 9a67245d88 [bpf] allow direct and indirect calls
kernel verifier is becoming smarter and soon will support
direct and indirect function calls.
Remove obsolete error from BPF backend.
Make call to use PCRel_4 fixup.
'bpf to bpf' calls are distinguished from 'bpf to kernel' calls
by insn->src_reg == BPF_PSEUDO_CALL == 1 which is used as relocation
indicator similar to ld_imm64->src_reg == BPF_PSEUDO_MAP_FD == 1
The actual 'call' instruction remains the same for both
'bpf to kernel' and 'bpf to bpf' calls.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
llvm-svn: 318614
2017-11-19 01:35:00 +00:00
..
BPFAsmBackend.cpp [bpf] allow direct and indirect calls 2017-11-19 01:35:00 +00:00
BPFELFObjectWriter.cpp [bpf] allow direct and indirect calls 2017-11-19 01:35:00 +00:00
BPFMCAsmInfo.h Distinguish between code pointer size and DataLayout::getPointerSize() in DWARF info generation 2017-04-17 17:41:25 +00:00
BPFMCCodeEmitter.cpp [bpf] allow direct and indirect calls 2017-11-19 01:35:00 +00:00
BPFMCTargetDesc.cpp bpf: print backward branch target properly 2017-11-16 19:15:36 +00:00
BPFMCTargetDesc.h [MC] Thread unique_ptr<MCObjectWriter> through the create.*ObjectWriter 2017-10-10 16:28:07 +00:00
CMakeLists.txt
LLVMBuild.txt