Home
last modified time | relevance | path

Searched refs:fnType (Results 1 – 16 of 16) sorted by relevance

/llvm-project-15.0.7/mlir/unittests/Dialect/SPIRV/
H A DDeserializationTest.cpp106 uint32_t addFunction(uint32_t retType, uint32_t fnType) { in addFunction() argument
111 fnType}); in addFunction()
246 auto fnType = addFunctionType(voidType, {}); in TEST_F() local
247 addFunction(voidType, fnType); in TEST_F()
258 auto fnType = addFunctionType(voidType, {i32Type}); in TEST_F() local
259 addFunction(voidType, fnType); in TEST_F()
269 auto fnType = addFunctionType(voidType, {}); in TEST_F() local
270 addFunction(voidType, fnType); in TEST_F()
282 auto fnType = addFunctionType(voidType, {}); in TEST_F() local
283 addFunction(voidType, fnType); in TEST_F()
/llvm-project-15.0.7/mlir/lib/Dialect/Func/IR/
H A DFuncOps.cpp137 auto fnType = fn.getFunctionType(); in verifySymbolUses() local
138 if (fnType.getNumInputs() != getNumOperands()) in verifySymbolUses()
141 for (unsigned i = 0, e = fnType.getNumInputs(); i != e; ++i) in verifySymbolUses()
142 if (getOperand(i).getType() != fnType.getInput(i)) in verifySymbolUses()
144 << fnType.getInput(i) << ", but provided " in verifySymbolUses()
147 if (fnType.getNumResults() != getNumResults()) in verifySymbolUses()
150 for (unsigned i = 0, e = fnType.getNumResults(); i != e; ++i) in verifySymbolUses()
151 if (getResult(i).getType() != fnType.getResult(i)) { in verifySymbolUses()
154 diag.attachNote() << "function result types: " << fnType.getResults(); in verifySymbolUses()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUToSPIRV/
H A DGPUToSPIRV.cpp187 auto fnType = funcOp.getFunctionType(); in lowerAsEntryFunction() local
188 if (fnType.getNumResults()) { in lowerAsEntryFunction()
193 if (!argABIInfo.empty() && fnType.getNumInputs() != argABIInfo.size()) { in lowerAsEntryFunction()
202 TypeConverter::SignatureConversion signatureConverter(fnType.getNumInputs()); in lowerAsEntryFunction()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/
H A DSPIRVConversion.cpp547 auto fnType = funcOp.getFunctionType(); in matchAndRewrite() local
548 if (fnType.getNumResults() > 1) in matchAndRewrite()
551 TypeConverter::SignatureConversion signatureConverter(fnType.getNumInputs()); in matchAndRewrite()
552 for (const auto &argType : enumerate(fnType.getInputs())) { in matchAndRewrite()
560 if (fnType.getNumResults() == 1) { in matchAndRewrite()
561 resultType = getTypeConverter()->convertType(fnType.getResult(0)); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/CodeGen/
H A DCPPGen.cpp118 auto checkRegisterNativeFn = [&](StringRef fnName, StringRef fnType) { in generate() argument
122 os << " register" << fnType << "Function(\"" << fnName << "\", " in generate()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUToVulkan/
H A DConvertLaunchFuncToVulkanCalls.cpp334 auto fnType = LLVM::LLVMFunctionType::get( in declareVulkanFunctions() local
339 builder.create<LLVM::LLVMFuncOp>(loc, fnName, fnType); in declareVulkanFunctions()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVOps.cpp80 auto fnType = type.dyn_cast<FunctionType>(); in parseOneResultSameOperandTypeOp() local
81 if (!fnType) { in parseOneResultSameOperandTypeOp()
87 result.addTypes(fnType.getResults()); in parseOneResultSameOperandTypeOp()
2220 TypeAttr::get(fnType)); in parse()
2246 auto fnType = getFunctionType(); in print() local
2248 printer, *this, fnType.getInputs(), in print()
2253 printer, *this, fnType.getNumInputs(), fnType.getNumResults(), in print()
2276 FunctionType fnType = getFunctionType(); in verifyBody() local
2280 if (fnType.getNumResults() != 0) in verifyBody()
2283 if (fnType.getNumResults() != 1) in verifyBody()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMDialect.cpp1166 Type fnType; in verify() local
1181 fnType = ptrType.getElementType(); in verify()
1194 fnType = fn.getFunctionType(); in verify()
1197 LLVMFunctionType funcType = fnType.dyn_cast<LLVMFunctionType>(); in verify()
1199 return emitOpError("callee does not have a functional type: ") << fnType; in verify()
2310 LLVMFunctionType fnType = getFunctionType(); in print() local
2313 argTypes.reserve(fnType.getNumParams()); in print()
2314 for (unsigned i = 0, e = fnType.getNumParams(); i < e; ++i) in print()
2315 argTypes.push_back(fnType.getParamType(i)); in print()
2317 Type returnType = fnType.getReturnType(); in print()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DTargetInfo.h237 const FunctionNoProtoType *fnType) const;
H A DCGCall.cpp579 const FunctionType *fnType, in arrangeFreeFunctionLikeCall() argument
591 if (const FunctionProtoType *proto = dyn_cast<FunctionProtoType>(fnType)) { in arrangeFreeFunctionLikeCall()
605 cast<FunctionNoProtoType>(fnType))) { in arrangeFreeFunctionLikeCall()
613 return CGT.arrangeLLVMFunctionInfo(GetReturnType(fnType->getReturnType()), in arrangeFreeFunctionLikeCall()
615 argTypes, fnType->getExtInfo(), paramInfos, in arrangeFreeFunctionLikeCall()
625 const FunctionType *fnType, in arrangeFreeFunctionCall() argument
627 return arrangeFreeFunctionLikeCall(*this, CGM, args, fnType, in arrangeFreeFunctionCall()
635 const FunctionType *fnType) { in arrangeBlockFunctionCall() argument
636 return arrangeFreeFunctionLikeCall(*this, CGM, args, fnType, 1, in arrangeBlockFunctionCall()
H A DCGObjC.cpp2224 llvm::FunctionType *fnType = in emitObjCValueOperation() local
2226 fn = CGF.CGM.CreateRuntimeFunction(fnType, fnName); in emitObjCValueOperation()
2670 llvm::FunctionType *fnType = in EmitObjCAutoreleasePoolPop() local
2672 fn = CGM.CreateRuntimeFunction(fnType, "objc_autoreleasePoolPop"); in EmitObjCAutoreleasePoolPop()
2802 llvm::FunctionType *fnType = in EmitObjCRelease() local
2804 fn = CGM.CreateRuntimeFunction(fnType, "objc_release"); in EmitObjCRelease()
H A DCGBlocks.cpp1495 const FunctionProtoType *fnType = blockInfo.getBlockExpr()->getFunctionType(); in GenerateBlockFunction() local
1497 CGM.getTypes().arrangeBlockFunctionDeclaration(fnType, args); in GenerateBlockFunction()
1517 StartFunction(blockDecl, fnType->getReturnType(), fn, fnInfo, args, in GenerateBlockFunction()
H A DTargetInfo.cpp464 const FunctionNoProtoType *fnType) const { in isNoProtoCallVariadic()
2514 const FunctionNoProtoType *fnType) const override { in isNoProtoCallVariadic()
2521 if (fnType->getCallConv() == CC_C) { in isNoProtoCallVariadic()
2535 return TargetCodeGenInfo::isNoProtoCallVariadic(args, fnType); in isNoProtoCallVariadic()
11373 const FunctionNoProtoType *fnType) const override { in isNoProtoCallVariadic()
/llvm-project-15.0.7/mlir/lib/Target/SPIRV/Deserialization/
H A DDeserializer.cpp364 Type fnType = getType(operands[3]); in processFunction() local
365 if (!fnType || !fnType.isa<FunctionType>()) { in processFunction()
369 auto functionType = fnType.cast<FunctionType>(); in processFunction()
387 logger.startLine() << "[fn] type: " << fnType << "\n"; in processFunction()
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DParser.cpp1300 auto fnType = type.dyn_cast<FunctionType>(); in parseGenericOperationAfterOpName() local
1301 if (!fnType) in parseGenericOperationAfterOpName()
1304 parsedFnType = fnType; in parseGenericOperationAfterOpName()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaOverload.cpp14401 QualType fnType = in BuildCallToMemberFunction() local
14404 const FunctionProtoType *proto = fnType->castAs<FunctionProtoType>(); in BuildCallToMemberFunction()
14423 << fnType.getUnqualifiedType() in BuildCallToMemberFunction()