mirror of
https://github.com/opnsense/src.git
synced 2026-03-16 23:55:19 -04:00
BPF (eBPF) is an independent instruction set architecture which is introduced in Linux a few years ago. Originally, eBPF execute environment was only inside Linux kernel. However, recent years there are some user space implementation (https://github.com/iovisor/ubpf, https://doc.dpdk.org/guides/prog_guide/bpf_lib.html) and kernel space implementation for FreeBSD is going on (https://github.com/YutaroHayakawa/generic-ebpf). The BPF target support can be enabled using WITH_LLVM_TARGET_BPF, as it is not built by default. Submitted by: Yutaro Hayakawa <yhayakawa3720@gmail.com> Reviewed by: dim, bdrewery Differential Revision: https://reviews.freebsd.org/D16033
29 lines
582 B
Modula-2
29 lines
582 B
Modula-2
/* $FreeBSD$ */
|
|
|
|
#ifndef LLVM_DISASSEMBLER
|
|
# error Please define the macro LLVM_DISASSEMBLER(TargetName)
|
|
#endif
|
|
|
|
#ifdef LLVM_TARGET_ENABLE_AARCH64
|
|
LLVM_DISASSEMBLER(AArch64)
|
|
#endif
|
|
#ifdef LLVM_TARGET_ENABLE_ARM
|
|
LLVM_DISASSEMBLER(ARM)
|
|
#endif
|
|
#ifdef LLVM_TARGET_ENABLE_BPF
|
|
LLVM_DISASSEMBLER(BPF)
|
|
#endif
|
|
#ifdef LLVM_TARGET_ENABLE_MIPS
|
|
LLVM_DISASSEMBLER(Mips)
|
|
#endif
|
|
#ifdef LLVM_TARGET_ENABLE_POWERPC
|
|
LLVM_DISASSEMBLER(PowerPC)
|
|
#endif
|
|
#ifdef LLVM_TARGET_ENABLE_SPARC
|
|
LLVM_DISASSEMBLER(Sparc)
|
|
#endif
|
|
#ifdef LLVM_TARGET_ENABLE_X86
|
|
LLVM_DISASSEMBLER(X86)
|
|
#endif
|
|
|
|
#undef LLVM_DISASSEMBLER
|