| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFixFunctionBitcasts.cpp | 78 if (CB->getFunctionType() == F.getValueType()) in findUses() 121 FunctionType::param_iterator PI = F->getFunctionType()->param_begin(); in createWrapper() 122 FunctionType::param_iterator PE = F->getFunctionType()->param_end(); in createWrapper() 126 Type *ExpectedRtnType = F->getFunctionType()->getReturnType(); in createWrapper() 129 if ((F->getFunctionType()->getNumParams() != Ty->getNumParams()) || in createWrapper() 130 (F->getFunctionType()->isVarArg() != Ty->isVarArg()) || in createWrapper() 170 Type *ExpectedRtnType = F->getFunctionType()->getReturnType(); in createWrapper() 254 if (shouldFixMainFunction(F.getFunctionType(), MainTy)) { in runOnModule() 256 << *F.getFunctionType() << "\n"); in runOnModule() 272 FunctionType *Ty = CB->getFunctionType(); in runOnModule()
|
| H A D | WebAssemblyAddMissingPrototypes.cpp | 81 unsigned NumParams = F.getFunctionType()->getNumParams(); in runOnModule() 109 FunctionType *DestType = CB->getFunctionType(); in runOnModule() 132 NewType = FunctionType::get(F.getFunctionType()->getReturnType(), false); in runOnModule()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Builder/Runtime/ |
| H A D | Transformational.cpp | 27 auto fTy = cshiftFunc.getFunctionType(); in genCshift() 43 auto fTy = cshiftFunc.getFunctionType(); in genCshiftVector() 60 auto fTy = eoshiftFunc.getFunctionType(); in genEoshift() 77 auto fTy = eoshiftFunc.getFunctionType(); in genEoshiftVector() 94 auto fTy = func.getFunctionType(); in genMatmul() 109 auto fTy = packFunc.getFunctionType(); in genPack() 125 auto fTy = func.getFunctionType(); in genReshape() 140 auto fTy = func.getFunctionType(); in genSpread() 154 auto fTy = func.getFunctionType(); in genTranspose() 168 auto fTy = unpackFunc.getFunctionType(); in genUnpack()
|
| H A D | Inquiry.cpp | 22 auto fTy = lboundFunc.getFunctionType(); in genLboundDim() 39 auto fTy = uboundFunc.getFunctionType(); in genUbound() 55 auto fTy = sizeFunc.getFunctionType(); in genSizeDim() 70 auto fTy = sizeFunc.getFunctionType(); in genSize()
|
| H A D | Command.cpp | 43 builder, loc, argumentValueFunc.getFunctionType(), number, value, errmsg); in genArgumentValue() 53 builder, loc, argumentLengthFunc.getFunctionType(), number); in genArgumentLength() 63 mlir::FunctionType valueFuncTy = valueFunc.getFunctionType(); in genEnvVariableValue() 79 mlir::FunctionType lengthFuncTy = lengthFunc.getFunctionType(); in genEnvVariableLength()
|
| H A D | Character.cpp | 29 auto fTy = func.getFunctionType(); in genCharacterSearch() 69 auto fTy = adjustFunc.getFunctionType(); in genAdjust() 114 auto fTy = beginFunc.getFunctionType(); in genCharCompare() 164 auto fTy = indexFunc.getFunctionType(); in genIndex() 185 auto fTy = repeatFunc.getFunctionType(); in genRepeat() 198 auto fTy = trimFunc.getFunctionType(); in genTrim() 237 auto fTy = func.getFunctionType(); in genScan() 274 auto fTy = func.getFunctionType(); in genVerify()
|
| H A D | Derived.cpp | 20 auto fTy = func.getFunctionType(); in genDerivedTypeInitialize() 32 auto fTy = func.getFunctionType(); in genDerivedTypeDestroy()
|
| H A D | Numeric.cpp | 241 auto funcTy = func.getFunctionType(); in genExponent() 266 auto funcTy = func.getFunctionType(); in genFraction() 293 auto funcTy = func.getFunctionType(); in genNearest() 330 auto funcTy = func.getFunctionType(); in genRRSpacing() 357 auto funcTy = func.getFunctionType(); in genScale() 369 auto fTy = func.getFunctionType(); in genSelectedIntKind() 392 auto fTy = func.getFunctionType(); in genSelectedRealKind() 436 auto funcTy = func.getFunctionType(); in genSetExponent() 461 auto funcTy = func.getFunctionType(); in genSpacing()
|
| H A D | Stop.cpp | 21 builder, loc, exitFunc.getFunctionType(), status); in genExit() 30 mlir::FunctionType funcTy = crashFunc.getFunctionType(); in genReportFatalUserError()
|
| H A D | Ragged.cpp | 26 auto fTy = func.getFunctionType(); in genRaggedArrayAllocate() 64 auto fTy = func.getFunctionType(); in genRaggedArrayDeallocate()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/ |
| H A D | Coroutines.cpp | 370 Prototype->getFunctionType()->dump(); in buildFrom() 379 Prototype->getFunctionType()->dump(); in buildFrom() 398 Prototype->getFunctionType()->dump(); in buildFrom() 406 Prototype->getFunctionType()->dump(); in buildFrom() 457 Alloc->getFunctionType()->getParamType(0), in emitAlloc() 480 Dealloc->getFunctionType()->getParamType(0)); in emitDealloc() 512 auto FT = F->getFunctionType(); in checkWFRetconPrototype() 530 I->getFunction()->getFunctionType()->getReturnType()) in checkWFRetconPrototype() 548 auto FT = F->getFunctionType(); in checkWFAlloc() 563 auto FT = F->getFunctionType(); in checkWFDealloc() [all …]
|
| H A D | CoroInternal.h | 188 return RetconLowering.ResumePrototype->getFunctionType(); in getResumeFunctionType() 200 auto FTy = CoroBegin->getFunction()->getFunctionType(); in getRetconResultTypes() 215 auto FTy = RetconLowering.ResumePrototype->getFunctionType(); in getRetconResumeTypes()
|
| /llvm-project-15.0.7/flang/lib/Lower/ |
| H A D | Runtime.cpp | 62 calleeType = callee.getFunctionType(); in genStopStatement() 72 calleeType = callee.getFunctionType(); in genStopStatement() 83 calleeType = callee.getFunctionType(); in genStopStatement() 187 builder, loc, func.getFunctionType(), pointer, target); in genAssociated() 206 mlir::FunctionType funcTy = callee.getFunctionType(); in genDateAndTime() 247 builder, loc, func.getFunctionType(), repeatable, imageDistinct); in genRandomInit() 255 mlir::FunctionType funcTy = func.getFunctionType(); in genRandomNumber() 288 mlir::FunctionType funcTy = func.getFunctionType(); in genRandomSeed() 304 mlir::FunctionType fTy = func.getFunctionType(); in genTransfer() 320 mlir::FunctionType fTy = func.getFunctionType(); in genTransferSize() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/Mips/ |
| H A D | Mips16HardFloat.cpp | 111 TypeID ArgTypeID = F.getFunctionType()->getParamType(0)->getTypeID(); in whichFPParamVariantNeeded() 122 TypeID ArgTypeID0 = F.getFunctionType()->getParamType(0)->getTypeID(); in whichFPParamVariantNeeded() 123 TypeID ArgTypeID1 = F.getFunctionType()->getParamType(1)->getTypeID(); in whichFPParamVariantNeeded() 158 Type *ArgType = F.getFunctionType()->getParamType(0); in needsFPStubFromParams() 271 FStub = Function::Create(F.getFunctionType(), in assureFPCallStub() 417 FunctionType *FT = CI->getFunctionType(); in fixupFPReturnAndCall() 453 (F->getFunctionType(), in createFPFnStub()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | CallPromotionUtils.cpp | 400 unsigned NumParams = Callee->getFunctionType()->getNumParams(); in isLegalToPromote() 418 Type *FormalTy = Callee->getFunctionType()->getFunctionParamType(I); in isLegalToPromote() 472 if (CB.getFunctionType() == Callee->getFunctionType()) in promoteCall() 480 CB.mutateFunctionType(Callee->getFunctionType()); in promoteCall() 485 auto CalleeType = Callee->getFunctionType(); in promoteCall()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | DeadArgumentElimination.cpp | 123 assert(F.getFunctionType()->isVarArg() && "Function isn't varargs!"); in deleteDeadVarargs() 159 FunctionType *FTy = F.getFunctionType(); in deleteDeadVarargs() 276 !F.getFunctionType()->isVarArg()) in removeDeadArgumentsFromCallers() 311 CB->getFunctionType() != F.getFunctionType()) in removeDeadArgumentsFromCallers() 445 if (ArgNo >= F->getFunctionType()->getNumParams()) in surveyUse() 552 CB->getFunctionType() != F.getFunctionType()) { in surveyFunction() 617 if (F.getFunctionType()->isVarArg() || HasMustTailCallers || in surveyFunction() 729 FunctionType *FTy = F->getFunctionType(); in removeDeadStuffFromFunction() 1094 if (F.getFunctionType()->isVarArg()) in run()
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVPrepareFunctions.cpp | 84 FunctionType::get(RetType, ArgTypes, F->getFunctionType()->isVarArg()); in processFunctionSignature() 115 CI->mutateFunctionType(NewF->getFunctionType()); in processFunctionSignature() 135 if (F && F->getFunctionType() == FT) in getOrCreateFunction() 149 FunctionType *FSHFuncTy = FSHIntrinsic->getFunctionType(); in lowerFunnelShifts() 231 FunctionType *UMulFuncTy = UMulIntrinsic->getFunctionType(); in lowerUMulWithOverflow()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULibFunc.h | 349 virtual FunctionType *getFunctionType(Module &M) const = 0; 393 FunctionType *getFunctionType(Module &M) const { in getFunctionType() function 394 return Impl->getFunctionType(M); in getFunctionType() 418 FunctionType *getFunctionType(Module &M) const override; 448 FunctionType *getFunctionType(Module &M) const override { return FuncTy; } in getFunctionType() function
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Func/IR/ |
| H A D | FuncOps.cpp | 137 auto fnType = fn.getFunctionType(); in verifySymbolUses() 199 if (fn.getFunctionType() != type) in verify() 264 std::string &) { return builder.getFunctionType(argTypes, results); }; in parse() 307 FunctionType oldType = getFunctionType(); in clone() 350 const auto &results = function.getFunctionType().getResults(); in verify()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/MLProgram/IR/ |
| H A D | MLProgramOps.cpp | 152 std::string &) { return builder.getFunctionType(argTypes, results); }; in parse() 313 std::string &) { return builder.getFunctionType(argTypes, results); }; in parse() 331 const auto &results = function.getFunctionType().getResults(); in verify() 356 const auto &results = function.getFunctionType().getResults(); in verify()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | ReplaceWithVeclib.cpp | 50 TLIFunc = Function::Create(OldFunc->getFunctionType(), in replaceWithTLIFunction() 77 assert(OldFunc->getFunctionType() == TLIFunc->getFunctionType() && in replaceWithTLIFunction()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/ |
| H A D | LowerABIAttributesPass.cpp | 42 auto varType = funcOp.getFunctionType().getInput(argIndex); in createGlobalVarForEntryPointArgument() 182 funcOp.getFunctionType().getNumInputs()); in matchAndRewrite() 189 llvm::enumerate(funcOp.getFunctionType().getInputs())) { in matchAndRewrite() 230 funcOp.setType(rewriter.getFunctionType( in matchAndRewrite()
|
| /llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/ |
| H A D | ReduceOperandsToArgs.cpp | 118 llvm::append_range(NewArgTypes, OldF->getFunctionType()->params()); in substituteOperandWithArgument() 123 FunctionType::get(OldF->getFunctionType()->getReturnType(), NewArgTypes, in substituteOperandWithArgument() 124 OldF->getFunctionType()->isVarArg()); in substituteOperandWithArgument()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | MatrixBuilder.h | 78 CallInst *Call = B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name); 101 CallInst *Call = B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name); 121 return B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name); 141 return B.CreateCall(TheFn->getFunctionType(), TheFn, Ops, Name);
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/ |
| H A D | OpToFuncCallLowering.h | 56 Type funcType = getFunctionType(resultType, castedOperands); in matchAndRewrite() 88 Type getFunctionType(Type resultType, ValueRange operands) const { in getFunctionType() function
|