LLVM  10.0.0svn
Namespaces | Macros | Functions
BPFAbstractMemberAccess.cpp File Reference
#include "BPF.h"
#include "BPFCORE.h"
#include "BPFTargetMachine.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/User.h"
#include "llvm/IR/Value.h"
#include "llvm/Pass.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include <stack>
Include dependency graph for BPFAbstractMemberAccess.cpp:

Go to the source code of this file.

Namespaces

 llvm
 This class represents lattice values for constants.
 

Macros

#define DEBUG_TYPE   "bpf-abstract-member-access"
 

Functions

 INITIALIZE_PASS (BPFAbstractMemberAccess, DEBUG_TYPE, "abstracting struct/union member accessees", false, false) ModulePass *llvm
 
static bool SkipDIDerivedTag (unsigned Tag)
 
static DITypestripQualifiers (DIType *Ty)
 
static const DITypestripQualifiers (const DIType *Ty)
 
static uint32_t calcArraySize (const DICompositeType *CTy, uint32_t StartDim)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "bpf-abstract-member-access"

Definition at line 70 of file BPFAbstractMemberAccess.cpp.

Function Documentation

◆ calcArraySize()

static uint32_t calcArraySize ( const DICompositeType CTy,
uint32_t  StartDim 
)
static

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( BPFAbstractMemberAccess  ,
DEBUG_TYPE  ,
"abstracting struct/union member accessees"  ,
false  ,
false   
)

◆ SkipDIDerivedTag()

static bool SkipDIDerivedTag ( unsigned  Tag)
static

Definition at line 151 of file BPFAbstractMemberAccess.cpp.

Referenced by stripQualifiers().

◆ stripQualifiers() [1/2]

static DIType* stripQualifiers ( DIType Ty)
static

Definition at line 160 of file BPFAbstractMemberAccess.cpp.

References SkipDIDerivedTag().

Referenced by calcArraySize().

◆ stripQualifiers() [2/2]

static const DIType* stripQualifiers ( const DIType Ty)
static

Definition at line 169 of file BPFAbstractMemberAccess.cpp.

References SkipDIDerivedTag().