reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/CodeGen/CodeGenModule.cpp
 3861   QualType ASTTy = D->getType();
 3868       OpenMPRuntime->emitTargetGlobalVariable(D))
 3874       D->needsDestruction(getContext()) == QualType::DK_cxx_destructor;
 3877   const Expr *InitExpr = D->getAnyInitializer(InitDecl);
 3885       getLangOpts().CUDAIsDevice && D->hasAttr<CUDASharedAttr>();
 3890       (D->hasAttr<CUDAConstantAttr>() || D->hasAttr<CUDADeviceAttr>() ||
 3890       (D->hasAttr<CUDAConstantAttr>() || D->hasAttr<CUDADeviceAttr>() ||
 3891        D->hasAttr<CUDASharedAttr>());
 3895       getLangOpts().CUDAIsDevice && D->hasAttr<HIPPinnedShadowAttr>();
 3910     Init = EmitNullConstant(D->getType());
 3912     initializedGlobalDecl = GlobalDecl(D);
 3918       if (D->getType()->isReferenceType())
 3919         T = D->getType();
 3925         ErrorUnsupported(D, "static initializer");
 3933         DelayedCXXInitPosition.erase(D);
 3939       GetAddrOfGlobalVar(D, InitType, ForDefinition_t(!IsTentative));
 3958           getContext().getTargetAddressSpace(GetGlobalVarAddressSpace(D))) {
 3965         GetAddrOfGlobalVar(D, InitType, ForDefinition_t(!IsTentative))
 3977   MaybeHandleStaticInExternC(D, GV);
 3979   if (D->hasAttr<AnnotateAttr>())
 3980     AddGlobalAnnotations(D, GV);
 3984       getLLVMLinkageVarDefinition(D, GV->isConstant());
 3996           (D->hasAttr<CUDADeviceAttr>() || D->hasAttr<CUDAConstantAttr>()))
 3996           (D->hasAttr<CUDADeviceAttr>() || D->hasAttr<CUDAConstantAttr>()))
 4003       if (D->hasAttr<CUDADeviceAttr>() || D->hasAttr<CUDAConstantAttr>() ||
 4003       if (D->hasAttr<CUDADeviceAttr>() || D->hasAttr<CUDAConstantAttr>() ||
 4004           D->hasAttr<HIPPinnedShadowAttr>()) {
 4010         if (!D->hasDefinition())
 4012         if (D->hasAttr<CUDAConstantAttr>())
 4016         if (!D->hasExternalStorage())
 4017           getCUDARuntime().registerDeviceVar(D, *GV, Flags);
 4018       } else if (D->hasAttr<CUDASharedAttr>())
 4034                   isTypeConstant(D->getType(), true));
 4037   if (const SectionAttr *SA = D->getAttr<SectionAttr>()) {
 4043   GV->setAlignment(getContext().getDeclAlign(D).getAsAlign());
 4052   if (!D->isStaticLocal() && D->getTLSKind() == VarDecl::TLS_Dynamic &&
 4052   if (!D->isStaticLocal() && D->getTLSKind() == VarDecl::TLS_Dynamic &&
 4059   if (D->hasAttr<DLLImportAttr>())
 4061   else if (D->hasAttr<DLLExportAttr>())
 4077   setNonAliasAttributes(D, GV);
 4079   if (D->getTLSKind() && !GV->isThreadLocal()) {
 4080     if (D->getTLSKind() == VarDecl::TLS_Dynamic)
 4081       CXXThreadLocals.push_back(D);
 4082     setTLSMode(GV, *D);
 4085   maybeSetTrivialComdat(*D, *GV);
 4089     EmitCXXGlobalVarDeclInitFunc(D, GV, NeedsGlobalCtor);
 4091   SanitizerMD->reportGlobalToASan(GV, *D, NeedsGlobalCtor);
 4096       DI->EmitGlobalVariable(GV, D);