LLVM 17.0.0git
Functions | Variables
BPFTargetMachine.cpp File Reference
#include "BPFTargetMachine.h"
#include "BPF.h"
#include "BPFTargetTransformInfo.h"
#include "MCTargetDesc/BPFMCAsmInfo.h"
#include "TargetInfo/BPFTargetInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
#include "llvm/CodeGen/TargetPassConfig.h"
#include "llvm/IR/PassManager.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Passes/PassBuilder.h"
#include "llvm/Support/FormattedStream.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Scalar/SimplifyCFG.h"
#include "llvm/Transforms/Utils/SimplifyCFGOptions.h"
#include <optional>

Go to the source code of this file.

Functions

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeBPFTarget ()
 
static std::string computeDataLayout (const Triple &TT)
 
static Reloc::Model getEffectiveRelocModel (std::optional< Reloc::Model > RM)
 

Variables

static cl::opt< boolDisableMIPeephole ("disable-bpf-peephole", cl::Hidden, cl::desc("Disable machine peepholes for BPF"))
 

Function Documentation

◆ computeDataLayout()

static std::string computeDataLayout ( const Triple TT)
static

Definition at line 54 of file BPFTargetMachine.cpp.

References llvm::Triple::bpfeb.

◆ getEffectiveRelocModel()

static Reloc::Model getEffectiveRelocModel ( std::optional< Reloc::Model RM)
static

Definition at line 61 of file BPFTargetMachine.cpp.

References llvm::Reloc::PIC_.

◆ LLVMInitializeBPFTarget()

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeBPFTarget ( )

Variable Documentation

◆ DisableMIPeephole

cl::opt< bool > DisableMIPeephole("disable-bpf-peephole", cl::Hidden, cl::desc("Disable machine peepholes for BPF")) ( "disable-bpf-peephole"  ,
cl::Hidden  ,
cl::desc("Disable machine peepholes for BPF")   
)
static