Add BPF target
This change adds the bpfel-unknown-none and bpfeb-unknown-none targets which can be used to generate little endian and big endian BPF
This commit is contained in:
parent
92418ce65a
commit
12e70929d6
18 changed files with 250 additions and 3 deletions
|
@ -86,6 +86,7 @@ fn main() {
|
|||
"nvptx",
|
||||
"hexagon",
|
||||
"riscv",
|
||||
"bpf",
|
||||
];
|
||||
|
||||
let required_components = &[
|
||||
|
|
|
@ -167,4 +167,12 @@ pub fn initialize_available_targets() {
|
|||
LLVMInitializeWebAssemblyAsmPrinter,
|
||||
LLVMInitializeWebAssemblyAsmParser
|
||||
);
|
||||
init_target!(
|
||||
llvm_component = "bpf",
|
||||
LLVMInitializeBPFTargetInfo,
|
||||
LLVMInitializeBPFTarget,
|
||||
LLVMInitializeBPFTargetMC,
|
||||
LLVMInitializeBPFAsmPrinter,
|
||||
LLVMInitializeBPFAsmParser
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue