LLVM  3.7.0
BPFTargetInfo.cpp
Go to the documentation of this file.
1 //===-- BPFTargetInfo.cpp - BPF Target Implementation ---------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include "BPF.h"
12 using namespace llvm;
13 
14 namespace llvm {
18 }
19 
20 extern "C" void LLVMInitializeBPFTargetInfo() {
22  "BPF (host endian)",
23  [](Triple::ArchType) { return false; }, true);
24  RegisterTarget<Triple::bpfel, /*HasJIT=*/true> X(
25  TheBPFleTarget, "bpfel", "BPF (little endian)");
26  RegisterTarget<Triple::bpfeb, /*HasJIT=*/true> Y(
27  TheBPFbeTarget, "bpfeb", "BPF (big endian)");
28 }
RegisterTarget - Helper template for registering a target, for use in the target's initialization fun...
void LLVMInitializeBPFTargetInfo()
Target TheBPFTarget
static void RegisterTarget(Target &T, const char *Name, const char *ShortDesc, Target::ArchMatchFnTy ArchMatchFn, bool HasJIT=false)
RegisterTarget - Register the given target.
static GCMetadataPrinterRegistry::Add< ErlangGCPrinter > X("erlang","erlang-compatible garbage collector")
Target - Wrapper for Target specific information.
Target TheBPFleTarget
Target TheBPFbeTarget
static GCMetadataPrinterRegistry::Add< OcamlGCMetadataPrinter > Y("ocaml","ocaml 3.10-compatible collector")