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::LLVMContext &VMContext, 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 ()
 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 getMayAliasAccessInfo ()
 getMayAliasAccessInfo - Get TBAA information that represents may-alias accesses. More...
 

Detailed Description

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

Definition at line 66 of file CodeGenTBAA.h.

Constructor & Destructor Documentation

◆ CodeGenTBAA()

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

Definition at line 32 of file CodeGenTBAA.cpp.

◆ ~CodeGenTBAA()

CodeGenTBAA::~CodeGenTBAA ( )

Definition at line 39 of file CodeGenTBAA.cpp.

Member Function Documentation

◆ getAccessTagInfo()

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

getAccessTagInfo - Get TBAA tag for a given memory access.

Definition at line 290 of file CodeGenTBAA.cpp.

References clang::CodeGen::TBAAAccessInfo::AccessType, clang::CodeGen::TBAAAccessInfo::BaseType, and clang::CodeGen::TBAAAccessInfo::Offset.

Referenced by getVTablePtrAccessInfo().

◆ getBaseTypeInfo()

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

◆ getMayAliasAccessInfo()

TBAAAccessInfo CodeGenTBAA::getMayAliasAccessInfo ( )

getMayAliasAccessInfo - Get TBAA information that represents may-alias accesses.

Definition at line 309 of file CodeGenTBAA.cpp.

◆ getTBAAStructInfo()

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

getTBAAStructInfo - Get the TBAAStruct MDNode to be used for a memcpy of the given type.

Definition at line 221 of file CodeGenTBAA.cpp.

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

◆ getTypeInfo()

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

◆ getVTablePtrAccessInfo()

TBAAAccessInfo CodeGenTBAA::getVTablePtrAccessInfo ( )

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