Home
last modified time | relevance | path

Searched refs:FuncType (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DRealtimeSanitizer.cpp41 FunctionType *FuncType = FunctionType::get(Type::getVoidTy(Context), in insertCallBeforeInstruction() local
44 Fn.getParent()->getOrInsertFunction(FunctionName, FuncType); in insertCallBeforeInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DExtractGV.cpp138 auto *FuncType = dyn_cast<FunctionType>(IF.getValueType()); in run() local
141 Function::Create(FuncType, GlobalValue::ExternalLinkage, in run()
H A DExpandVariadics.cpp624 FunctionType *FuncType = CB->getFunctionType(); in expandCall() local
625 if (FuncType != VarargFunctionType) { in expandCall()
628 FuncType = VarargFunctionType; in expandCall()
647 for (unsigned I = FuncType->getNumParams(), E = CB->arg_size(); I < E; ++I) { in expandCall()
752 const unsigned NumArgs = FuncType->getNumParams(); in expandCall()
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/IR/
H A DCIRTypes.cpp610 FuncType FuncType::clone(TypeRange inputs, TypeRange results) const { in clone()
653 mlir::Type FuncType::getReturnType() const { in getReturnType()
662 llvm::ArrayRef<mlir::Type> FuncType::getReturnTypes() const { in getReturnTypes()
672 bool FuncType::hasVoidReturn() const { return !getOptionalReturnType(); } in hasVoidReturn()
675 FuncType::verify(llvm::function_ref<mlir::InFlightDiagnostic()> emitError, in verify()
H A DCIRDialect.cpp1351 StringRef name, FuncType type, in build()
1419 cir::FuncType fnType = cir::FuncType::get(argTypes, returnType, isVariadic); in parse()
1498 cir::FuncType fnType = getFunctionType(); in print()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenModule.h204 cir::FuncType fnType = nullptr, bool dontDefer = false,
211 std::pair<cir::FuncType, cir::FuncOp> getAddrAndTypeOfCXXStructor(
213 cir::FuncType fnType = nullptr, bool dontDefer = false,
319 cir::FuncType funcType,
H A DCIRGenCall.cpp45 cir::FuncType CIRGenTypes::getFunctionType(const CIRGenFunctionInfo &fi) { in getFunctionType()
53 return cir::FuncType::get(argTypes, in getFunctionType()
442 cir::FuncType indirectFuncTy, mlir::Value indirectFuncVal, in emitCallLikeOp()
487 cir::FuncType cirFuncTy = getTypes().getFunctionType(funcInfo); in emitCall()
580 cir::FuncType indirectFuncTy; in emitCall()
590 assert(funcPtrTy && mlir::isa<cir::FuncType>(funcPtrTy.getPointee()) && in emitCall()
H A DCIRGenCXX.cpp25 cir::FuncType funcType = getTypes().getFunctionType(fnInfo); in codegenCXXStructor()
H A DCIRGenModule.cpp247 cir::FuncType ty = getTypes().getFunctionType(fi); in getAddrOfGlobal()
254 cir::FuncType ty = getTypes().getFunctionType(fi); in getAddrOfGlobal()
403 cir::FuncType funcType = getTypes().getFunctionType(fi); in emitGlobalFunctionDefinition()
1301 std::pair<cir::FuncType, cir::FuncOp> CIRGenModule::getAddrAndTypeOfCXXStructor( in getAddrAndTypeOfCXXStructor()
1302 GlobalDecl gd, const CIRGenFunctionInfo *fnInfo, cir::FuncType fnType, in getAddrAndTypeOfCXXStructor()
1730 mangledName, mlir::cast<cir::FuncType>(funcType), funcDecl); in getOrCreateCIRFunction()
1791 cir::FuncType funcType, in createCIRFunction()
1897 cir::FuncType fnType = getTypes().getFunctionType(fnInfo); in emitAliasForGlobal()
H A DCIRGenTypes.h131 cir::FuncType getFunctionType(const CIRGenFunctionInfo &info);
H A DCIRGenFunction.cpp339 cir::FuncOp fn, cir::FuncType funcType, in startFunction()
437 cir::FuncType funcType) { in generateCode()
H A DCIRGenTypes.cpp74 return cir::FuncType::get(SmallVector<mlir::Type, 1>{}, cgm.VoidTy); in convertFunctionTypeInternal()
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/OpenACC/
H A DCIROpenACCTypeInterfaces.cpp58 if (mlir::isa<cir::FuncType>(eleTy) || mlir::isa<cir::VectorType>(eleTy)) in getPointeeTypeCategory()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGPointerAuth.cpp488 QualType FuncType = FD->getType(); in getFunctionPointer() local
493 if (const auto *Proto = FuncType->getAs<FunctionProtoType>()) in getFunctionPointer()
494 FuncType = Context.getFunctionNoProtoType(Proto->getReturnType(), in getFunctionPointer()
497 return getFunctionPointer(getRawFunctionPointer(GD, Ty), FuncType); in getFunctionPointer()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DMarshallers.h656 using FuncType = ReturnType (*)();
658 return outvalueToVariantMatcher(reinterpret_cast<FuncType>(Func)());
667 using FuncType = ReturnType (*)(ArgType1);
670 return outvalueToVariantMatcher(reinterpret_cast<FuncType>(Func)(
680 using FuncType = ReturnType (*)(ArgType1, ArgType2);
684 return outvalueToVariantMatcher(reinterpret_cast<FuncType>(Func)(
/freebsd/contrib/llvm-project/lldb/tools/lldb-rpc/lldb-rpc-gen/server/
H A DRPCServerSourceEmitter.cpp431 QualType FuncType = FuncPointerParam.Type->getPointeeType(); in EmitCallbackFunction() local
432 const auto *FuncProtoType = FuncType->getAs<FunctionProtoType>(); in EmitCallbackFunction()
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/IR/
H A DCIRTypes.td390 // FuncType
419 // Create a FuncType, converting the return type from C-style to
421 // and create the FuncType with no return type, which is how MLIR
458 FuncType clone(mlir::TypeRange inputs, mlir::TypeRange results) const;
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DGlobalMergeFunctions.cpp198 FunctionType *FuncType = FunctionType::get(OrigTy->getReturnType(), in createMergedFunction() local
203 Function::Create(FuncType, MergedFunc->getLinkage(), NewFunctionName); in createMergedFunction()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DNullabilityChecker.cpp875 const FunctionType *FuncType = Decl->getFunctionType(); in checkPostCall() local
876 if (!FuncType) in checkPostCall()
878 QualType ReturnType = FuncType->getReturnType(); in checkPostCall()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaFunctionEffects.cpp232 SpecialFuncType FuncType = SpecialFuncType::None; member
238 : CDecl(&CD), FuncType(FT) { in CallableInfo()
745 if (Callee.FuncType == SpecialFuncType::None) in followCall()
H A DSemaStmt.cpp730 struct FuncType { in checkMustTailAttr() struct
743 auto GetMethodType = [this, St, MTA](const CXXMethodDecl *CMD, FuncType &Type, in checkMustTailAttr()
755 Type.MemberType = FuncType::ft_static_member; in checkMustTailAttr()
758 Type.MemberType = FuncType::ft_non_static_member; in checkMustTailAttr()
806 CalleeType.MemberType = FuncType::ft_pointer_to_member; in checkMustTailAttr()
876 auto CheckTypesMatch = [this](FuncType CallerType, FuncType CalleeType, in checkMustTailAttr()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DWasmEmitter.cpp432 for (uint32_t FuncType : Section.FunctionTypes) in writeSectionContent() local
433 encodeULEB128(FuncType, OS); in writeSectionContent()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp169 using FuncType = std::function<Value *(Instruction *, LLVMContext &)>; typedef
170 Rule(StringRef N, FuncType F) : Name(N), Fn(F) {} in Rule()
172 FuncType Fn;
175 void addRule(StringRef N, const Rule::FuncType &F) { in addRule()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFISelLowering.cpp754 DISubroutineType *FuncType = DBuilder.createSubroutineType(ParamTypes); in createBPFUnreachable() local
757 DBuilder.createFunction(CU, BPF_TRAP, BPF_TRAP, nullptr, 0, FuncType, 0, in createBPFUnreachable()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPreLegalizer.cpp761 SPIRVType *FuncType = GR->getOrCreateOpTypeFunctionWithArgs( in insertInlineAsmProcess() local
770 .addUse(GR->getSPIRVTypeID(FuncType)) in insertInlineAsmProcess()

12