/external/clang/lib/CodeGen/ |
D | CGOpenMPRuntime.cpp | 754 auto *FnTy = CGM.getTypes().GetFunctionType(FnInfo); in emitCombinerOrInitializer() local 756 FnTy, llvm::GlobalValue::InternalLinkage, in emitCombinerOrInitializer() 1064 llvm::FunctionType *FnTy = in createRuntimeFunction() local 1066 RTLFn = CGM.CreateRuntimeFunction(FnTy, "__kmpc_fork_call"); in createRuntimeFunction() 1072 llvm::FunctionType *FnTy = in createRuntimeFunction() local 1074 RTLFn = CGM.CreateRuntimeFunction(FnTy, "__kmpc_global_thread_num"); in createRuntimeFunction() 1083 llvm::FunctionType *FnTy = in createRuntimeFunction() local 1085 RTLFn = CGM.CreateRuntimeFunction(FnTy, "__kmpc_threadprivate_cached"); in createRuntimeFunction() 1094 llvm::FunctionType *FnTy = in createRuntimeFunction() local 1096 RTLFn = CGM.CreateRuntimeFunction(FnTy, "__kmpc_critical"); in createRuntimeFunction() [all …]
|
D | ObjectFilePCHContainerOperations.cpp | 111 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitFunctionDecl() local 113 if (CanRepresent(FnTy.getTypePtr())) in VisitFunctionDecl() 114 DI.EmitFunctionDecl(D, D->getLocation(), FnTy); in VisitFunctionDecl() 130 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitObjCMethodDecl() local 132 if (CanRepresent(FnTy.getTypePtr())) in VisitObjCMethodDecl() 133 DI.EmitFunctionDecl(D, D->getLocation(), FnTy); in VisitObjCMethodDecl()
|
D | CGOpenMPRuntimeNVPTX.cpp | 276 llvm::FunctionType *FnTy = in createNVPTXRuntimeFunction() local 278 RTLFn = CGM.CreateRuntimeFunction(FnTy, "__kmpc_kernel_init"); in createNVPTXRuntimeFunction()
|
D | CGException.cpp | 1661 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FnInfo); in startOutlinedSEHHelper() local 1663 FnTy, llvm::GlobalValue::InternalLinkage, Name.str(), &CGM.getModule()); in startOutlinedSEHHelper()
|
D | ItaniumCXXABI.cpp | 2203 llvm::FunctionType *FnTy = CGM.getTypes().GetFunctionType(FI); in getOrCreateThreadLocalWrapper() local 2205 llvm::Function::Create(FnTy, getThreadLocalWrapperLinkage(VD, CGM), in getOrCreateThreadLocalWrapper() 2289 llvm::FunctionType *FnTy = llvm::FunctionType::get(CGM.VoidTy, false); in EmitThreadLocalInitFuncs() local 2291 FnTy, llvm::GlobalVariable::ExternalWeakLinkage, InitFnName.str(), in EmitThreadLocalInitFuncs()
|
D | CGDebugInfo.cpp | 3380 auto *FnTy = block.getBlockExpr()->getFunctionType(); in EmitDeclareOfBlockLiteralArgVariable() local 3381 auto FnPtrType = CGM.getContext().getPointerType(FnTy->desugar()); in EmitDeclareOfBlockLiteralArgVariable()
|
/external/clang/test/SemaCXX/ |
D | unaddressable-functions.cpp | 105 using FnTy = void (*)(); typedef 114 FnTy Fn; in test() 125 FnTy Fn; in testUnavailable() 140 FnTy Fn; in testAccess()
|
/external/llvm/lib/Transforms/Utils/ |
D | ModuleUtils.cpp | 26 FunctionType *FnTy = FunctionType::get(IRB.getVoidTy(), false); in appendToGlobalArray() local 37 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), in appendToGlobalArray() 57 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), in appendToGlobalArray()
|
/external/llvm/unittests/IR/ |
D | InstructionsTest.cpp | 496 Type *FnTy = FunctionType::get(Int32Ty, ArgTys, /*isVarArg=*/false); in TEST() local 497 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST() 528 Type *FnTy = FunctionType::get(Int32Ty, Int32Ty, /*isVarArg=*/false); in TEST() local 529 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST() 555 Type *FnTy = FunctionType::get(Int32Ty, Int32Ty, /*isVarArg=*/false); in TEST() local 556 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST()
|
/external/clang/include/clang/ASTMatchers/ |
D | ASTMatchers.h | 3348 if (const FunctionProtoType *FnTy = internal::getFunctionProtoType(Node)) in AST_POLYMORPHIC_MATCHER() local 3349 return FnTy->hasDynamicExceptionSpec(); in AST_POLYMORPHIC_MATCHER() 3368 const FunctionProtoType *FnTy = internal::getFunctionProtoType(Node); in AST_POLYMORPHIC_MATCHER() local 3373 if (!FnTy) in AST_POLYMORPHIC_MATCHER() 3377 if (isUnresolvedExceptionSpec(FnTy->getExceptionSpecType())) in AST_POLYMORPHIC_MATCHER() 3380 return FnTy->isNothrow(Finder->getASTContext()); in AST_POLYMORPHIC_MATCHER()
|
/external/clang/lib/Sema/ |
D | SemaDeclAttr.cpp | 77 if (const FunctionType *FnTy = D->getFunctionType()) in hasFunctionProto() local 78 return isa<FunctionProtoType>(FnTy); in hasFunctionProto() 86 if (const FunctionType *FnTy = D->getFunctionType()) in getFunctionOrMethodNumParams() local 87 return cast<FunctionProtoType>(FnTy)->getNumParams(); in getFunctionOrMethodNumParams() 94 if (const FunctionType *FnTy = D->getFunctionType()) in getFunctionOrMethodParamType() local 95 return cast<FunctionProtoType>(FnTy)->getParamType(Idx); in getFunctionOrMethodParamType() 113 if (const FunctionType *FnTy = D->getFunctionType()) in getFunctionOrMethodResultType() local 114 return cast<FunctionType>(FnTy)->getReturnType(); in getFunctionOrMethodResultType() 127 if (const FunctionType *FnTy = D->getFunctionType()) { in isFunctionOrMethodVariadic() local 128 const FunctionProtoType *proto = cast<FunctionProtoType>(FnTy); in isFunctionOrMethodVariadic()
|
D | SemaType.cpp | 1883 static std::string getFunctionQualifiersAsString(const FunctionProtoType *FnTy){ in getFunctionQualifiersAsString() argument 1885 Qualifiers::fromCVRMask(FnTy->getTypeQuals()).getAsString(); in getFunctionQualifiersAsString() 1887 switch (FnTy->getRefQualifier()) { in getFunctionQualifiersAsString() 4395 const FunctionProtoType *FnTy = T->getAs<FunctionProtoType>(); in GetFullTypeForDeclarator() local 4396 assert(FnTy && "Why oh why is there not a FunctionProtoType here?"); in GetFullTypeForDeclarator() 4462 << getFunctionQualifiersAsString(FnTy) in GetFullTypeForDeclarator() 4466 FunctionProtoType::ExtProtoInfo EPI = FnTy->getExtProtoInfo(); in GetFullTypeForDeclarator() 4470 T = Context.getFunctionType(FnTy->getReturnType(), FnTy->getParamTypes(), in GetFullTypeForDeclarator()
|
D | SemaOverload.cpp | 9333 const FunctionProtoType *FnTy = Fn->getType()->getAs<FunctionProtoType>(); in DiagnoseArityMismatch() local 9339 if (MinParams != FnTy->getNumParams() || FnTy->isVariadic() || in DiagnoseArityMismatch() 9340 FnTy->isTemplateVariadic()) in DiagnoseArityMismatch() 9346 if (MinParams != FnTy->getNumParams()) in DiagnoseArityMismatch() 9350 modeCount = FnTy->getNumParams(); in DiagnoseArityMismatch()
|
D | SemaOpenMP.cpp | 9471 QualType FnTy = Context.getFunctionType(Context.VoidTy, Params, EPI); in ActOnOpenMPReductionClause() local 9473 ELoc, Context.getPointerType(FnTy), VK_RValue, OK_Ordinary, in ActOnOpenMPReductionClause()
|
/external/swiftshader/third_party/LLVM/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 1488 Type *FnTy = getTypeByID(Record[0]); in ParseConstants() local 1489 if (FnTy == 0) return Error("Invalid CE_BLOCKADDRESS record"); in ParseConstants() 1491 dyn_cast_or_null<Function>(ValueList.getConstantFwdRef(Record[1],FnTy)); in ParseConstants()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 3284 Type *FnTy = getTypeByID(Record[0]); in parseConstants() local 3285 if (!FnTy) in parseConstants() 3288 dyn_cast_or_null<Function>(ValueList.getConstantFwdRef(Record[1],FnTy)); in parseConstants()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.cpp | 2058 FunctionType *FnTy = Fn->getFunctionType(); in visitSPDescriptorParent() local 2059 assert(FnTy->getNumParams() == 1 && "Invalid function signature"); in visitSPDescriptorParent() 2064 Entry.Ty = FnTy->getParamType(0); in visitSPDescriptorParent() 2072 .setCallee(Fn->getCallingConv(), FnTy->getReturnType(), in visitSPDescriptorParent()
|