Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:GD

392 StringRef CodeGenModule::getMangledName(GlobalDecl GD) {
393 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
395 StringRef &Str = MangledDeclNames[GD.getCanonicalDecl()];
410 getCXXABI().getMangleContext().mangleCXXCtor(D, GD.getCtorType(), Out);
412 getCXXABI().getMangleContext().mangleCXXDtor(D, GD.getDtorType(), Out);
430 void CodeGenModule::getBlockMangledName(GlobalDecl GD, MangleBuffer &Buffer,
433 const Decl *D = GD.getDecl();
439 MangleCtx.mangleCtorBlock(CD, GD.getCtorType(), BD, Out);
441 MangleCtx.mangleDtorBlock(DD, GD.getDtorType(), BD, Out);
673 void CodeGenModule::SetFunctionAttributes(GlobalDecl GD,
684 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
687 SetLLVMFunctionAttributes(FD, getTypes().arrangeGlobalDeclaration(GD), F);
1049 void CodeGenModule::EmitGlobal(GlobalDecl GD) {
1050 const ValueDecl *Global = cast<ValueDecl>(GD.getDecl());
1059 return EmitAliasDefinition(GD);
1088 StringRef MangledName = getMangledName(GD);
1105 EmitGlobalDefinition(GD);
1119 StringRef MangledName = getMangledName(GD);
1121 DeferredDeclsToEmit.push_back(GD);
1126 DeferredDecls[MangledName] = GD;
1200 void CodeGenModule::EmitGlobalDefinition(GlobalDecl GD) {
1201 const ValueDecl *D = cast<ValueDecl>(GD.getDecl());
1217 EmitCXXConstructor(CD, GD.getCtorType());
1219 EmitCXXDestructor(DD, GD.getDtorType());
1221 EmitGlobalFunctionDefinition(GD);
1224 getVTables().EmitThunks(GD);
1229 return EmitGlobalFunctionDefinition(GD);
1346 llvm::Constant *CodeGenModule::GetAddrOfFunction(GlobalDecl GD,
1351 Ty = getTypes().ConvertType(cast<ValueDecl>(GD.getDecl())->getType());
1353 StringRef MangledName = getMangledName(GD);
1354 return GetOrCreateLLVMFunction(MangledName, Ty, GD, ForVTable);
1999 void CodeGenModule::EmitGlobalFunctionDefinition(GlobalDecl GD) {
2000 const FunctionDecl *D = cast<FunctionDecl>(GD.getDecl());
2003 const CGFunctionInfo &FI = getTypes().arrangeGlobalDeclaration(GD);
2007 llvm::Constant *Entry = GetAddrOfFunction(GD, Ty);
2032 llvm::Function *NewFn = cast<llvm::Function>(GetAddrOfFunction(GD, Ty));
2082 void CodeGenModule::EmitAliasDefinition(GlobalDecl GD) {
2083 const ValueDecl *D = cast<ValueDecl>(GD.getDecl());
2087 StringRef MangledName = getMangledName(GD);
2101 Aliasee = GetOrCreateLLVMFunction(AA->getAliasee(), DeclTy, GD,
2929 GlobalDecl GD = GlobalDecl(cast<VarDecl>(D));
2930 EmitGlobalDeclMetadata(CGM, GlobalMetadata, GD, GV);