llvm-project/llvm/lib/Target/BPF
Alexei Starovoitov e4975487f5 [bpf] error when unknown bpf helper is called
Emit error when BPF backend sees a call to a global function or to an external symbol.
The kernel verifier only allows calls to predefined helpers from bpf.h
which are defined in 'enum bpf_func_id'. Such calls in assembler must
look like 'call [1-9]+' where number matches bpf_func_id.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
llvm-svn: 292204
2017-01-17 07:26:17 +00:00
..
Disassembler [BPF] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-06 23:06:25 +00:00
InstPrinter convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
MCTargetDesc [BPF] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-06 23:06:25 +00:00
TargetInfo Move the global variables representing each Target behind accessor function 2016-10-09 23:00:34 +00:00
BPF.h
BPF.td convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
BPFAsmPrinter.cpp Move the global variables representing each Target behind accessor function 2016-10-09 23:00:34 +00:00
BPFCallingConv.td
BPFFrameLowering.cpp
BPFFrameLowering.h Change eliminateCallFramePseudoInstr() to return an iterator 2016-03-31 18:33:38 +00:00
BPFISelDAGToDAG.cpp Use StringRef in Pass/PassManager APIs (NFC) 2016-10-01 02:56:57 +00:00
BPFISelLowering.cpp [bpf] error when unknown bpf helper is called 2017-01-17 07:26:17 +00:00
BPFISelLowering.h CodeGen: Use MachineInstr& in TargetLowering, NFC 2016-06-30 22:52:52 +00:00
BPFInstrFormats.td
BPFInstrInfo.cpp [BPF] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-01-06 23:06:25 +00:00
BPFInstrInfo.h Finish renaming remaining analyzeBranch functions 2016-09-14 20:43:16 +00:00
BPFInstrInfo.td [bpf] error when unknown bpf helper is called 2017-01-17 07:26:17 +00:00
BPFMCInstLower.cpp [bpf] error when unknown bpf helper is called 2017-01-17 07:26:17 +00:00
BPFMCInstLower.h [bpf] error when unknown bpf helper is called 2017-01-17 07:26:17 +00:00
BPFRegisterInfo.cpp [bpf] error when BPF stack size exceeds 512 bytes 2017-01-17 01:05:17 +00:00
BPFRegisterInfo.h
BPFRegisterInfo.td
BPFSubtarget.cpp
BPFSubtarget.h
BPFTargetMachine.cpp Move the global variables representing each Target behind accessor function 2016-10-09 23:00:34 +00:00
BPFTargetMachine.h Delete Reloc::Default. 2016-05-18 22:04:49 +00:00
CMakeLists.txt [bpf] add BPF disassembler 2016-11-20 02:25:00 +00:00
LLVMBuild.txt [bpf] add BPF disassembler 2016-11-20 02:25:00 +00:00