clang  6.0.0svn
Public Member Functions | List of all members
clang::CodeGen::CodeGenTBAA Class Reference

CodeGenTBAA - This class organizes the cross-module state that is used while lowering AST types to LLVM types. More...

#include "/opt/doxygen-docs/src/llvm/tools/clang/lib/CodeGen/CodeGenTBAA.h"

Public Member Functions

 CodeGenTBAA (ASTContext &Ctx, llvm::Module &M, const CodeGenOptions &CGO, const LangOptions &Features, MangleContext &MContext)
 
 ~CodeGenTBAA ()
 
llvm::MDNode * getTypeInfo (QualType QTy)
 getTypeInfo - Get metadata used to describe accesses to objects of the given type. More...
 
TBAAAccessInfo getVTablePtrAccessInfo (llvm::Type *VTablePtrType)
 getVTablePtrAccessInfo - Get the TBAA information that describes an access to a virtual table pointer. More...
 
llvm::MDNode * getTBAAStructInfo (QualType QTy)
 getTBAAStructInfo - Get the TBAAStruct MDNode to be used for a memcpy of the given type. More...
 
llvm::MDNode * getBaseTypeInfo (QualType QTy)
 getBaseTypeInfo - Get metadata that describes the given base access type. More...
 
llvm::MDNode * getAccessTagInfo (TBAAAccessInfo Info)
 getAccessTagInfo - Get TBAA tag for a given memory access. More...
 
TBAAAccessInfo mergeTBAAInfoForCast (TBAAAccessInfo SourceInfo, TBAAAccessInfo TargetInfo)
 mergeTBAAInfoForCast - Get merged TBAA information for the purpose of type casts. More...
 
TBAAAccessInfo mergeTBAAInfoForConditionalOperator (TBAAAccessInfo InfoA, TBAAAccessInfo InfoB)
 mergeTBAAInfoForConditionalOperator - Get merged TBAA information for the purpose of conditional operator. More...
 

Detailed Description

CodeGenTBAA - This class organizes the cross-module state that is used while lowering AST types to LLVM types.

Definition at line 118 of file CodeGenTBAA.h.

Constructor & Destructor Documentation

◆ CodeGenTBAA()

CodeGenTBAA::CodeGenTBAA ( ASTContext Ctx,
llvm::Module &  M,
const CodeGenOptions CGO,
const LangOptions Features,
MangleContext MContext 
)

Definition at line 33 of file CodeGenTBAA.cpp.

◆ ~CodeGenTBAA()

CodeGenTBAA::~CodeGenTBAA ( )

Definition at line 41 of file CodeGenTBAA.cpp.

Member Function Documentation

◆ getAccessTagInfo()

llvm::MDNode * CodeGenTBAA::getAccessTagInfo ( TBAAAccessInfo  Info)

◆ getBaseTypeInfo()

llvm::MDNode * CodeGenTBAA::getBaseTypeInfo ( QualType  QTy)

getBaseTypeInfo - Get metadata that describes the given base access type.

Return null if the type is not suitable for use in TBAA access tags.

Definition at line 316 of file CodeGenTBAA.cpp.

References clang::ASTContext::getCanonicalType(), clang::CanQual< T >::getTypePtr(), and isValidBaseType().

Referenced by getTBAAStructInfo(), and getTypeInfo().

◆ getTBAAStructInfo()

llvm::MDNode * CodeGenTBAA::getTBAAStructInfo ( QualType  QTy)

◆ getTypeInfo()

llvm::MDNode * CodeGenTBAA::getTypeInfo ( QualType  QTy)

getTypeInfo - Get metadata used to describe accesses to objects of the given type.

Definition at line 181 of file CodeGenTBAA.cpp.

References getBaseTypeInfo(), clang::ASTContext::getCanonicalType(), clang::CanQual< T >::getTypePtr(), isValidBaseType(), and TypeHasMayAlias().

Referenced by getTBAAStructInfo(), getVTablePtrAccessInfo(), and isValidBaseType().

◆ getVTablePtrAccessInfo()

TBAAAccessInfo CodeGenTBAA::getVTablePtrAccessInfo ( llvm::Type VTablePtrType)

◆ mergeTBAAInfoForCast()

TBAAAccessInfo CodeGenTBAA::mergeTBAAInfoForCast ( TBAAAccessInfo  SourceInfo,
TBAAAccessInfo  TargetInfo 
)

mergeTBAAInfoForCast - Get merged TBAA information for the purpose of type casts.

Definition at line 355 of file CodeGenTBAA.cpp.

References clang::CodeGen::TBAAAccessInfo::getMayAliasInfo(), and clang::CodeGen::TBAAAccessInfo::isMayAlias().

◆ mergeTBAAInfoForConditionalOperator()

TBAAAccessInfo CodeGenTBAA::mergeTBAAInfoForConditionalOperator ( TBAAAccessInfo  InfoA,
TBAAAccessInfo  InfoB 
)

mergeTBAAInfoForConditionalOperator - Get merged TBAA information for the purpose of conditional operator.

Definition at line 363 of file CodeGenTBAA.cpp.

References clang::CodeGen::TBAAAccessInfo::getMayAliasInfo(), and clang::CodeGen::TBAAAccessInfo::isMayAlias().


The documentation for this class was generated from the following files: