LLVM  4.0.0
Functions | Variables
TypeBasedAliasAnalysis.cpp File Reference
#include "llvm/Analysis/TypeBasedAliasAnalysis.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/CommandLine.h"
Include dependency graph for TypeBasedAliasAnalysis.cpp:

Go to the source code of this file.

Functions

static bool isStructPathTBAA (const MDNode *MD)
 Check the first operand of the tbaa tag node, if it is a MDNode, we treat it as struct-path aware TBAA format, otherwise, we treat it as scalar TBAA format. More...
 
 INITIALIZE_PASS (TypeBasedAAWrapperPass,"tbaa","Type-Based Alias Analysis", false, true) ImmutablePass *llvm
 

Variables

static cl::opt< boolEnableTBAA ("enable-tbaa", cl::init(true))
 

Function Documentation

INITIALIZE_PASS ( TypeBasedAAWrapperPass  ,
"tbaa"  ,
"Type-Based Alias Analysis ,
false  ,
true   
)

Definition at line 564 of file TypeBasedAliasAnalysis.cpp.

static bool isStructPathTBAA ( const MDNode MD)
static

Check the first operand of the tbaa tag node, if it is a MDNode, we treat it as struct-path aware TBAA format, otherwise, we treat it as scalar TBAA format.

Definition at line 291 of file TypeBasedAliasAnalysis.cpp.

References llvm::MDNode::getNumOperands(), and llvm::MDNode::getOperand().

Referenced by llvm::TypeBasedAAResult::getModRefBehavior(), llvm::MDNode::getMostGenericTBAA(), llvm::MDNode::isTBAAVtableAccess(), and llvm::TypeBasedAAResult::pointsToConstantMemory().

Variable Documentation

cl::opt<bool> EnableTBAA("enable-tbaa", cl::init(true))
static