clang API Documentation
#include <CodeGenTBAA.h>
Public Member Functions | |
| CodeGenTBAA (ASTContext &Ctx, llvm::LLVMContext &VMContext, const CodeGenOptions &CGO, const LangOptions &Features, MangleContext &MContext) | |
| ~CodeGenTBAA () | |
| llvm::MDNode * | getTBAAInfo (QualType QTy) |
| llvm::MDNode * | getTBAAInfoForVTablePtr () |
CodeGenTBAA - This class organizes the cross-module state that is used while lowering AST types to LLVM types.
Definition at line 40 of file CodeGenTBAA.h.
| CodeGenTBAA::CodeGenTBAA | ( | ASTContext & | Ctx, |
| llvm::LLVMContext & | VMContext, | ||
| const CodeGenOptions & | CGO, | ||
| const LangOptions & | Features, | ||
| MangleContext & | MContext | ||
| ) |
Definition at line 29 of file CodeGenTBAA.cpp.
| CodeGenTBAA::~CodeGenTBAA | ( | ) |
Definition at line 37 of file CodeGenTBAA.cpp.
| llvm::MDNode * CodeGenTBAA::getTBAAInfo | ( | QualType | QTy | ) |
getTBAAInfo - Get the TBAA MDNode to be used for a dereference of the given type.
Definition at line 79 of file CodeGenTBAA.cpp.
References clang::ExternalLinkage, clang::ASTContext::getCanonicalType(), clang::CanQual< T >::getTypePtr(), clang::ASTContext::Int128Ty, clang::ASTContext::IntTy, clang::ASTContext::LongLongTy, clang::ASTContext::LongTy, clang::MangleContext::mangleCXXRTTIName(), NULL, clang::CodeGenOptions::OptimizationLevel, clang::CodeGenOptions::RelaxedAliasing, clang::ASTContext::ShortTy, and TypeHasMayAlias().
Referenced by clang::CodeGen::CodeGenModule::getTBAAInfo().
| llvm::MDNode * CodeGenTBAA::getTBAAInfoForVTablePtr | ( | ) |
getTBAAInfoForVTablePtr - Get the TBAA MDNode to be used for a dereference of a vtable pointer.
Definition at line 168 of file CodeGenTBAA.cpp.
Referenced by clang::CodeGen::CodeGenModule::getTBAAInfoForVTablePtr().