LLVM: lib/Target/BPF/BPFISelLowering.cpp File Reference (original) (raw)

Go to the source code of this file.

Macros
#define DEBUG_TYPE "bpf-lower"
#define SET_NEWCC(X, Y)
Functions
static void fail (const SDLoc &DL, SelectionDAG &DAG, const Twine &Msg, SDValue Val={})
static void resetRegMaskBit (const TargetRegisterInfo *TRI, uint32_t *RegMask, MCRegister Reg)
static uint32_t * regMaskFromTemplate (const TargetRegisterInfo *TRI, MachineFunction &MF, const uint32_t *BaseRegMask)
static void NegateCC (SDValue &LHS, SDValue &RHS, ISD::CondCode &CC)
static Function * createBPFUnreachable (Module *M)
static SDValue getTargetNode (ConstantPoolSDNode *N, const SDLoc &DL, EVT Ty, SelectionDAG &DAG, unsigned Flags)
static SDValue getTargetNode (JumpTableSDNode *N, const SDLoc &DL, EVT Ty, SelectionDAG &DAG, unsigned Flags)

DEBUG_TYPE

#define DEBUG_TYPE "bpf-lower"

SET_NEWCC

#define SET_NEWCC ( X,
Y )

createBPFUnreachable()

Definition at line 775 of file BPFISelLowering.cpp.

References BPF_TRAP, llvm::CallingConv::C, llvm::Function::Create(), llvm::DIBuilder::createFunction(), llvm::DIBuilder::createSubroutineType(), llvm::GlobalValue::ExternalWeakLinkage, llvm::FunctionType::get(), llvm::DIBuilder::getOrCreateTypeArray(), llvm::Type::getVoidTy(), llvm::Function::setCallingConv(), llvm::GlobalValue::setDSOLocal(), llvm::GlobalObject::setSection(), and llvm::Function::setSubprogram().

fail()

getTargetNode() [1/2]

getTargetNode() [2/2]

NegateCC()

regMaskFromTemplate()

resetRegMaskBit()

BPFExpandMemcpyInOrder

cl::opt< bool > BPFExpandMemcpyInOrder("bpf-expand-memcpy-in-order", cl::Hidden, cl::init(false), cl::desc("Expand memcpy into load/store pairs in order")) ( "bpf-expand-memcpy-in-order" , cl::Hidden , cl::init(false) , cl::desc("Expand memcpy into load/store pairs in order") ) static

BPFMinimumJumpTableEntries

cl::opt< unsigned > BPFMinimumJumpTableEntries("bpf-min-jump-table-entries", cl::init(13), cl::Hidden, cl::desc("Set minimum number of entries to use a jump table on BPF")) ( "bpf-min-jump-table-entries" , cl::init(13) , cl::Hidden , cl::desc("Set minimum number of entries to use a jump table on BPF") ) static