clang 20.0.0git
|
GlobalDecl - represents a global declaration. More...
#include "clang/AST/GlobalDecl.h"
Static Public Member Functions | |
static GlobalDecl | getFromOpaquePtr (void *P) |
static KernelReferenceKind | getDefaultKernelReference (const FunctionDecl *D) |
Friends | |
bool | operator== (const GlobalDecl &LHS, const GlobalDecl &RHS) |
GlobalDecl - represents a global declaration.
This can either be a CXXConstructorDecl and the constructor type (Base, Complete). a CXXDestructorDecl and the destructor type (Base, Complete), a FunctionDecl and the kernel reference type (Kernel, Stub), or a VarDecl, a FunctionDecl or a BlockDecl.
When a new type of GlobalDecl is added, the following places should be updated to convert a Decl* to a GlobalDecl: PredefinedExpr::ComputeName() in lib/AST/Expr.cpp. getParentOfLocalEntity() in lib/AST/ItaniumMangle.cpp ASTNameGenerator::Implementation::writeFuncOrVarName in lib/AST/Mangle.cpp
Definition at line 56 of file GlobalDecl.h.
|
default |
|
inline |
Definition at line 70 of file GlobalDecl.h.
References D, and clang::Init.
|
inline |
Definition at line 71 of file GlobalDecl.h.
References D, getDefaultKernelReference(), and clang::Init.
|
inline |
Definition at line 79 of file GlobalDecl.h.
References D.
|
inline |
Definition at line 83 of file GlobalDecl.h.
References D, and clang::Init.
|
inline |
Definition at line 84 of file GlobalDecl.h.
References D, and clang::Init.
|
inline |
Definition at line 85 of file GlobalDecl.h.
References D, and clang::Init.
|
inline |
Definition at line 86 of file GlobalDecl.h.
References D, and clang::Init.
|
inline |
Definition at line 87 of file GlobalDecl.h.
References D, and clang::Init.
|
inline |
Definition at line 88 of file GlobalDecl.h.
References D, and clang::Init.
|
inline |
Definition at line 89 of file GlobalDecl.h.
|
inline |
Definition at line 90 of file GlobalDecl.h.
|
inline |
Definition at line 91 of file GlobalDecl.h.
|
inline |
Definition at line 152 of file GlobalDecl.h.
Referenced by llvm::DenseMapInfo< clang::GlobalDecl >::getHashValue(), and operator bool().
|
inline |
Definition at line 94 of file GlobalDecl.h.
Referenced by BuildAppleKextVirtualCall(), clang::CodeGen::CGDebugInfo::EmitGlobalAlias(), clang::CodeGen::CodeGenModule::getMangledName(), clang::MicrosoftVTableContext::getMethodVFTableLocation(), clang::ItaniumVTableContext::getMethodVTableIndex(), and clang::CodeGen::CodeGenModule::GetOrCreateLLVMGlobal().
|
inline |
Definition at line 105 of file GlobalDecl.h.
References getDecl().
Referenced by clang::CodeGen::CodeGenTypes::arrangeCXXStructorDeclaration(), clang::CodeGen::CodeGenPGO::assignRegionCounters(), EmitMemberInitializer(), clang::CodeGen::CodeGenModule::getBlockMangledName(), and clang::CodeGen::CodeGenModule::getMangledName().
|
inline |
Definition at line 103 of file GlobalDecl.h.
Referenced by clang::CodeGen::CodeGenTypes::arrangeCXXStructorDeclaration(), clang::CodeGen::CodeGenTypes::arrangeGlobalDeclaration(), clang::CodeGen::CodeGenPGO::assignRegionCounters(), asTemplateName(), clang::CodeGen::CGCXXABI::buildThisParam(), clang::CodeGen::CodeGenModule::codegenCXXStructor(), commonEmitCXXMemberOrOperatorCall(), clang::CodeGen::CodeGenModule::ConstructAttributeList(), EmitDirectCallee(), clang::CodeGen::CGDebugInfo::EmitFunctionDecl(), EmitFunctionDeclLValue(), clang::CodeGen::CGDebugInfo::emitFunctionStart(), clang::CodeGen::CodeGenModule::EmitGlobal(), clang::CodeGen::CGDebugInfo::EmitGlobalAlias(), clang::CodeGen::CGDebugInfo::EmitInlineFunctionStart(), clang::CodeGen::CGOpenMPRuntime::emitTargetFunctions(), clang::CodeGen::CGOpenMPRuntime::emitTargetGlobal(), clang::CodeGen::CGOpenMPRuntime::emitTargetGlobalVariable(), clang::CodeGen::CodeGenVTables::EmitThunks(), clang::ItaniumVTableContext::findOriginalMethod(), clang::CodeGen::EHPersonality::get(), clang::CodeGen::CodeGenModule::getAddrAndTypeOfCXXStructor(), clang::CodeGen::CodeGenModule::GetAddrOfFunction(), clang::CodeGen::CodeGenModule::GetAddrOfGlobal(), clang::CodeGen::CodeGenModule::getBlockMangledName(), getCtorType(), getDtorType(), getDynamicInitKind(), clang::ASTContext::getFunctionFeatureMap(), clang::CodeGen::CodeGenModule::getFunctionLinkage(), clang::CodeGen::CodeGenModule::getFunctionPointer(), clang::CodeGen::CodeGenTypes::GetFunctionTypeForVTable(), getKernelReferenceKind(), clang::CodeGen::CodeGenModule::getMangledName(), clang::MicrosoftVTableContext::getMethodVFTableLocation(), clang::ItaniumVTableContext::getMethodVTableIndex(), getMultiVersionIndex(), getMultiversionLinkage(), clang::CodeGen::CodeGenModule::GetOrCreateLLVMGlobal(), clang::CodeGen::CodeGenModule::getOrCreateStaticVarDecl(), clang::CodeGen::CodeGenModule::getRawFunctionPointer(), clang::CodeGen::CGCXXABI::getThisArgumentTypeForMethod(), clang::VTableContextBase::getThunkInfo(), clang::MicrosoftVTableContext::getThunkInfo(), getWithCtorType(), getWithDtorType(), getWithKernelReferenceKind(), getWithMultiVersionIndex(), clang::CodeGen::CGCXXABI::HasThisReturn(), clang::CodeGen::CodeGenFunction::InlinedInheritingConstructorScope::InlinedInheritingConstructorScope(), isDeletingDtor(), isTemplate(), isUniqueInternalLinkageDecl(), clang::MangleContext::mangleName(), clang::CodeGen::CGOpenMPRuntime::markAsGlobalTarget(), clang::CodeGen::CodeGenModule::SetCommonAttributes(), clang::CodeGen::CodeGenModule::setDLLImportDLLExport(), clang::CodeGen::CodeGenModule::setGVProperties(), clang::CodeGen::CodeGenModule::SetInternalFunctionAttributes(), clang::CodeGen::CodeGenModule::SetLLVMFunctionAttributes(), clang::CodeGen::CodeGenModule::TryEmitBaseDestructorAsAlias(), and clang::ASTContext::useAbbreviatedThunkName().
|
inlinestatic |
Definition at line 162 of file GlobalDecl.h.
References D, clang::Kernel, and clang::Stub.
Referenced by GlobalDecl().
|
inline |
Definition at line 110 of file GlobalDecl.h.
References getDecl().
Referenced by clang::CodeGen::CodeGenPGO::assignRegionCounters(), clang::CodeGen::CodeGenVTables::EmitThunks(), clang::ItaniumVTableContext::findOriginalMethod(), clang::CodeGen::CodeGenModule::getAddrAndTypeOfCXXStructor(), clang::CodeGen::CodeGenModule::GetAddrOfFunction(), clang::CodeGen::CodeGenModule::getBlockMangledName(), clang::CodeGen::CodeGenModule::getFunctionLinkage(), clang::MicrosoftVTableContext::getMethodVFTableLocation(), clang::MicrosoftVTableContext::getThunkInfo(), clang::CodeGen::CGCXXABI::HasThisReturn(), isDeletingDtor(), clang::CodeGen::CodeGenModule::setDLLImportDLLExport(), and clang::ASTContext::useAbbreviatedThunkName().
|
inline |
Definition at line 115 of file GlobalDecl.h.
References getDecl().
Referenced by clang::CodeGen::CGDebugInfo::emitFunctionStart().
|
inlinestatic |
Definition at line 156 of file GlobalDecl.h.
References P.
Referenced by llvm::DenseMapInfo< clang::GlobalDecl >::getTombstoneKey().
|
inline |
Definition at line 132 of file GlobalDecl.h.
References getDecl().
Referenced by getMangledNameImpl().
|
inline |
Definition at line 122 of file GlobalDecl.h.
References getDecl().
Referenced by clang::ASTContext::getFunctionFeatureMap(), and getMangledNameImpl().
|
inline |
Definition at line 173 of file GlobalDecl.h.
References getDecl(), and clang::Result.
|
inline |
Definition at line 167 of file GlobalDecl.h.
References D, and clang::Result.
Referenced by getMangledNameImpl(), and isTemplate().
|
inline |
Definition at line 180 of file GlobalDecl.h.
References getDecl(), and clang::Result.
Referenced by clang::CodeGen::CodeGenModule::getAddrAndTypeOfCXXStructor().
|
inline |
Definition at line 198 of file GlobalDecl.h.
References getDecl(), Kind, and clang::Result.
Referenced by clang::CodeGen::CodeGenModule::getMangledName().
|
inline |
Definition at line 187 of file GlobalDecl.h.
References getDecl(), and clang::Result.
|
inlineexplicit |
Definition at line 154 of file GlobalDecl.h.
References getAsOpaquePtr().
|
inline |
Definition at line 148 of file GlobalDecl.h.
References clang::Other.
|
friend |
Definition at line 143 of file GlobalDecl.h.