Lines Matching defs:Cast
278 auto *OldF = cast<llvm::Function>(Entry);
284 auto *CE = cast<llvm::ConstantExpr>(Replacement);
343 const auto *D = cast<ValueDecl>(GD.getDecl());
352 auto *Alias = cast<llvm::GlobalIndirectSymbol>(Entry);
373 AliaseeGV = cast<llvm::GlobalValue>(CE->getOperand(0));
375 AliaseeGV = cast<llvm::GlobalValue>(Aliasee);
405 auto *Alias = cast<llvm::GlobalIndirectSymbol>(Entry);
1340 const auto *ND = cast<NamedDecl>(GD.getDecl());
1382 MangleCtx.mangleBlock(cast<DeclContext>(D), BD, Out);
1454 const auto *D = cast<FunctionDecl>(GD.getDecl());
1462 cast<CXXConstructorDecl>(D)->isInheritingConstructor() &&
1906 const auto *VD = cast<VarDecl>(D);
2052 if (isa<CXXMethodDecl>(FD) && !cast<CXXMethodDecl>(FD)->isStatic())
2076 const auto *FD = cast<FunctionDecl>(GD.getDecl());
2196 cast<llvm::Constant>(&*List[i]), CGM.Int8PtrTy);
2403 // In case of different address spaces, we may still get a cast, even with
2508 ID.Add(cast<clang::ConstantExpr>(E)->getAPValueResult());
2518 const auto *CE = cast<clang::ConstantExpr>(E);
2823 GlobalDecl(cast<FunctionDecl>(VD)),
2828 auto *F = cast<llvm::GlobalValue>(Aliasee);
2836 const auto *Global = cast<ValueDecl>(GD.getDecl());
2914 const auto *VD = cast<VarDecl>(Global);
2959 cast<VarDecl>(Global)->hasInit()) {
3112 const auto *F = cast<FunctionDecl>(GD.getDecl());
3128 if (HasNonDllImportDtor(cast<FieldDecl>(Member)->getType()))
3150 const auto *FD = cast<FunctionDecl>(GD.getDecl());
3162 const auto *D = cast<ValueDecl>(GD.getDecl());
3230 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
3255 Options.emplace_back(cast<llvm::Function>(Func),
3263 ResolverFunc = cast<llvm::Function>(
3267 ResolverFunc = cast<llvm::Function>(GetGlobalValue(getMangledName(GD)));
3296 const auto *FD = cast<FunctionDecl>(GD.getDecl());
3321 auto *ResolverFunc = cast<llvm::Function>(GetOrCreateLLVMFunction(
3363 Options.emplace_back(cast<llvm::Function>(Func), StringRef{}, Features);
3397 auto *IFunc = cast<llvm::GlobalIFunc>(GetOrCreateLLVMFunction(
3453 SetCommonAttributes(FD, cast<llvm::GlobalValue>(Resolver));
3548 FTy = cast<llvm::FunctionType>(Ty);
3596 getCXXABI().useThunkForDtorVariant(cast<CXXDestructorDecl>(D),
3624 for (const auto *FD = cast<FunctionDecl>(D)->getMostRecentDecl(); FD;
3654 assert(!cast<FunctionDecl>(GD.getDecl())->isConsteval() &&
3658 const auto *FD = cast<FunctionDecl>(GD.getDecl());
3678 cast<FunctionDecl>(GD.getDecl())->hasAttr<CUDAGlobalAttr>()) {
3680 cast<llvm::Function>(F->stripPointerCasts()), GD);
3950 auto *NewGV = cast<llvm::GlobalVariable>(
4000 &getTypes().arrangeCXXMethodDeclaration(cast<CXXMethodDecl>(D));
4013 return GetAddrOfGlobalVar(cast<VarDecl>(D), /*Ty=*/nullptr, IsForDefinition);
4089 setDSOLocal(cast<llvm::GlobalValue>(Ret->stripPointerCasts()));
4185 llvm::Constant *Cast = GV;
4189 Cast = CGM.getTargetCodeGenInfo().performAddrSpaceCast(
4194 return Cast;
4246 Linkage = CGM.getContext().GetGVALinkageForFunction(cast<FunctionDecl>(&D));
4378 GV = cast<llvm::GlobalVariable>(
4389 cast<llvm::GlobalValue>(Entry)->eraseFromParent();
4505 cast<llvm::GlobalVariable>(GV->stripPointerCasts()), D);
4644 !isVarDeclStrongDefinition(Context, *this, cast<VarDecl>(D),
4739 auto *oldInvoke = cast<llvm::InvokeInst>(callSite);
4798 const auto *D = cast<FunctionDecl>(GD.getDecl());
4806 GV = cast<llvm::GlobalValue>(GetAddrOfFunction(GD, Ty, /*ForVTable=*/false,
4818 auto *Fn = cast<llvm::Function>(GV);
4845 const auto *D = cast<ValueDecl>(GD.getDecl());
4928 const auto *D = cast<ValueDecl>(GD.getDecl());
5118 auto *STy = cast<llvm::StructType>(getTypes().ConvertType(CFTy));
5124 Fields.add(cast<llvm::ConstantExpr>(CFConstantStringClassRef));
5173 // Cast the UTF16 string to the correct type.
5273 auto *AType = cast<llvm::ArrayType>(getTypes().ConvertType(E->getType()));
5420 const auto *VD = cast<VarDecl>(E->getExtendingDecl());
5530 llvm::cast<llvm::GlobalVariable>(Entry)->eraseFromParent();
5668 EmitGlobal(cast<FunctionDecl>(D));
5681 EmitGlobal(cast<VarDecl>(D));
5695 EmitDeclContext(cast<NamespaceDecl>(D));
5698 const auto *Spec = cast<ClassTemplateSpecializationDecl>(D);
5706 CXXRecordDecl *CRD = cast<CXXRecordDecl>(D);
5709 DI->EmitAndRetainType(getContext().getRecordType(cast<RecordDecl>(D)));
5734 DI->EmitUsingDecl(cast<UsingDecl>(*D));
5738 DI->EmitNamespaceAlias(cast<NamespaceAliasDecl>(*D));
5742 DI->EmitUsingDirective(cast<UsingDirectiveDecl>(*D));
5745 getCXXABI().EmitCXXConstructors(cast<CXXConstructorDecl>(D));
5748 getCXXABI().EmitCXXDestructors(cast<CXXDestructorDecl>(D));
5763 auto *Proto = cast<ObjCProtocolDecl>(D);
5772 ObjCRuntime->GenerateCategory(cast<ObjCCategoryImplDecl>(D));
5776 auto *OMD = cast<ObjCImplementationDecl>(D);
5788 auto *OMD = cast<ObjCMethodDecl>(D);
5795 ObjCRuntime->RegisterAlias(cast<ObjCCompatibleAliasDecl>(D));
5799 const auto *PCD = cast<PragmaCommentDecl>(D);
5818 const auto *PDMD = cast<PragmaDetectMismatchDecl>(D);
5824 EmitLinkageSpec(cast<LinkageSpecDecl>(D));
5837 auto *AD = cast<FileScopeAsmDecl>(D);
5843 auto *Import = cast<ImportDecl>(D);
5886 EmitDeclContext(cast<ExportDecl>(D));
5890 EmitOMPThreadPrivateDecl(cast<OMPThreadPrivateDecl>(D));
5894 EmitOMPAllocateDecl(cast<OMPAllocateDecl>(D));
5898 EmitOMPDeclareReduction(cast<OMPDeclareReductionDecl>(D));
5902 EmitOMPDeclareMapper(cast<OMPDeclareMapperDecl>(D));
5906 EmitOMPRequiresDecl(cast<OMPRequiresDecl>(D));
5913 getContext().getTypedefType(cast<TypedefNameDecl>(D)));
5918 if (cast<RecordDecl>(D)->getDefinition())
5919 DI->EmitAndRetainType(getContext().getRecordType(cast<RecordDecl>(D)));
5924 if (cast<EnumDecl>(D)->getDefinition())
5925 DI->EmitAndRetainType(getContext().getEnumType(cast<EnumDecl>(D)));
5948 if (!cast<FunctionDecl>(D)->doesThisDeclarationHaveABody())
5993 GlobalDecl GD(cast<FunctionDecl>(D));
6000 GlobalDecl GD(cast<CXXConstructorDecl>(D), Ctor_Base);
6007 GlobalDecl GD(cast<CXXDestructorDecl>(D), Dtor_Base);
6117 GlobalDecl GD = GlobalDecl(cast<VarDecl>(D));
6187 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(RefExpr)->getDecl());