1 //===-- BPFTargetInfo.cpp - BPF Target Implementation ---------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 #include "llvm/Support/TargetRegistry.h"
15 Target TheBPFleTarget;
16 Target TheBPFbeTarget;
20 extern "C" void LLVMInitializeBPFTargetInfo() {
21 TargetRegistry::RegisterTarget(TheBPFTarget, "bpf",
23 [](Triple::ArchType) { return false; }, true);
24 RegisterTarget<Triple::bpf_le, /*HasJIT=*/true> X(
25 TheBPFleTarget, "bpf_le", "BPF (little endian)");
26 RegisterTarget<Triple::bpf_be, /*HasJIT=*/true> Y(
27 TheBPFbeTarget, "bpf_be", "BPF (big endian)");