Home
last modified time | relevance | path

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

/external/llvm-project/mlir/unittests/Dialect/SPIRV/
DDeserializationTest.cpp107 uint32_t addFunction(uint32_t retType, uint32_t fnType) { in addFunction() argument
112 fnType}); in addFunction()
247 auto fnType = addFunctionType(voidType, {}); in TEST_F() local
248 addFunction(voidType, fnType); in TEST_F()
259 auto fnType = addFunctionType(voidType, {i32Type}); in TEST_F() local
260 addFunction(voidType, fnType); in TEST_F()
270 auto fnType = addFunctionType(voidType, {}); in TEST_F() local
271 addFunction(voidType, fnType); in TEST_F()
283 auto fnType = addFunctionType(voidType, {}); in TEST_F() local
284 addFunction(voidType, fnType); in TEST_F()
/external/llvm-project/mlir/lib/Dialect/LLVMIR/IR/
DLLVMDialect.cpp554 LLVMType fnType; in verify() local
565 fnType = op.getOperand(0).getType().dyn_cast<LLVMType>(); in verify()
566 if (!fnType) in verify()
569 auto ptrType = fnType.dyn_cast<LLVMPointerType>(); in verify()
572 << fnType; in verify()
573 fnType = ptrType.getElementType(); in verify()
585 fnType = fn.getType(); in verify()
587 if (!fnType.isFunctionTy()) in verify()
588 return op.emitOpError("callee does not have a functional type: ") << fnType; in verify()
592 if (!fnType.isFunctionVarArg() && in verify()
[all …]
/external/llvm-project/mlir/lib/Conversion/GPUToSPIRV/
DConvertGPUToSPIRV.cpp170 auto fnType = funcOp.getType(); in lowerAsEntryFunction() local
171 if (fnType.getNumResults()) { in lowerAsEntryFunction()
176 if (!argABIInfo.empty() && fnType.getNumInputs() != argABIInfo.size()) { in lowerAsEntryFunction()
185 TypeConverter::SignatureConversion signatureConverter(fnType.getNumInputs()); in lowerAsEntryFunction()
/external/llvm-project/mlir/lib/IR/
DBuiltinDialect.cpp124 FunctionType fnType = op.getType(); in print() local
125 impl::printFunctionLikeOp(p, op, fnType.getInputs(), /*isVariadic=*/false, in print()
126 fnType.getResults()); in print()
/external/clang/lib/CodeGen/
DCGObjC.cpp1786 llvm::FunctionType *fnType = in EmitARCIntrinsicUse() local
1788 fn = CGM.CreateRuntimeFunction(fnType, "clang.arc.use"); in EmitARCIntrinsicUse()
1829 llvm::FunctionType *fnType = in emitARCValueOperation() local
1831 fn = createARCRuntimeFunction(CGF.CGM, fnType, fnName); in emitARCValueOperation()
1854 llvm::FunctionType *fnType = in emitARCLoadOperation() local
1856 fn = createARCRuntimeFunction(CGF.CGM, fnType, fnName); in emitARCLoadOperation()
1886 llvm::FunctionType *fnType in emitARCStoreOperation() local
1888 fn = createARCRuntimeFunction(CGF.CGM, fnType, fnName); in emitARCStoreOperation()
1916 llvm::FunctionType *fnType in emitARCCopyOperation() local
1918 fn = createARCRuntimeFunction(CGF.CGM, fnType, fnName); in emitARCCopyOperation()
[all …]
DTargetInfo.h208 const FunctionNoProtoType *fnType) const;
DCGCall.cpp511 const FunctionType *fnType, in arrangeFreeFunctionLikeCall() argument
523 if (const FunctionProtoType *proto = dyn_cast<FunctionProtoType>(fnType)) { in arrangeFreeFunctionLikeCall()
537 cast<FunctionNoProtoType>(fnType))) { in arrangeFreeFunctionLikeCall()
545 return CGT.arrangeLLVMFunctionInfo(GetReturnType(fnType->getReturnType()), in arrangeFreeFunctionLikeCall()
547 argTypes, fnType->getExtInfo(), paramInfos, in arrangeFreeFunctionLikeCall()
557 const FunctionType *fnType, in arrangeFreeFunctionCall() argument
559 return arrangeFreeFunctionLikeCall(*this, CGM, args, fnType, in arrangeFreeFunctionCall()
567 const FunctionType *fnType) { in arrangeBlockFunctionCall() argument
568 return arrangeFreeFunctionLikeCall(*this, CGM, args, fnType, 1, in arrangeBlockFunctionCall()
DCGBlocks.cpp1179 const FunctionProtoType *fnType = blockInfo.getBlockExpr()->getFunctionType(); in GenerateBlockFunction() local
1181 CGM.getTypes().arrangeBlockFunctionDeclaration(fnType, args); in GenerateBlockFunction()
1193 StartFunction(blockDecl, fnType->getReturnType(), fn, fnInfo, args, in GenerateBlockFunction()
DTargetInfo.cpp385 const FunctionNoProtoType *fnType) const { in isNoProtoCallVariadic()
2067 const FunctionNoProtoType *fnType) const override { in isNoProtoCallVariadic()
2074 if (fnType->getCallConv() == CC_C) { in isNoProtoCallVariadic()
2088 return TargetCodeGenInfo::isNoProtoCallVariadic(args, fnType); in isNoProtoCallVariadic()
/external/llvm-project/mlir/lib/Conversion/GPUToVulkan/
DConvertLaunchFuncToVulkanCalls.cpp332 auto fnType = LLVM::LLVMType::getFunctionTy( in declareVulkanFunctions() local
337 builder.create<LLVM::LLVMFuncOp>(loc, fnName, fnType); in declareVulkanFunctions()
/external/llvm-project/mlir/lib/Dialect/SPIRV/
DSPIRVOps.cpp1738 auto fnType = builder.getFunctionType(argTypes, resultTypes); in parseFuncOp() local
1739 state.addAttribute(impl::getTypeAttrName(), TypeAttr::get(fnType)); in parseFuncOp()
1766 auto fnType = fnOp.getType(); in print() local
1767 impl::printFunctionSignature(printer, fnOp, fnType.getInputs(), in print()
1768 /*isVariadic=*/false, fnType.getResults()); in print()
1772 printer, fnOp, fnType.getNumInputs(), fnType.getNumResults(), in print()
1793 FunctionType fnType = getType(); in verifyBody() local
1795 auto walkResult = walk([fnType](Operation *op) -> WalkResult { in verifyBody()
1797 if (fnType.getNumResults() != 0) in verifyBody()
1800 if (fnType.getNumResults() != 1) in verifyBody()
[all …]
DSPIRVLowering.cpp476 auto fnType = funcOp.getType(); in matchAndRewrite() local
478 if (fnType.getNumResults()) in matchAndRewrite()
481 TypeConverter::SignatureConversion signatureConverter(fnType.getNumInputs()); in matchAndRewrite()
/external/llvm-project/clang/lib/CodeGen/
DTargetInfo.h220 const FunctionNoProtoType *fnType) const;
DCGCall.cpp567 const FunctionType *fnType, in arrangeFreeFunctionLikeCall() argument
579 if (const FunctionProtoType *proto = dyn_cast<FunctionProtoType>(fnType)) { in arrangeFreeFunctionLikeCall()
593 cast<FunctionNoProtoType>(fnType))) { in arrangeFreeFunctionLikeCall()
601 return CGT.arrangeLLVMFunctionInfo(GetReturnType(fnType->getReturnType()), in arrangeFreeFunctionLikeCall()
603 argTypes, fnType->getExtInfo(), paramInfos, in arrangeFreeFunctionLikeCall()
613 const FunctionType *fnType, in arrangeFreeFunctionCall() argument
615 return arrangeFreeFunctionLikeCall(*this, CGM, args, fnType, in arrangeFreeFunctionCall()
623 const FunctionType *fnType) { in arrangeBlockFunctionCall() argument
624 return arrangeFreeFunctionLikeCall(*this, CGM, args, fnType, 1, in arrangeBlockFunctionCall()
DCGObjC.cpp2207 llvm::FunctionType *fnType = in emitObjCValueOperation() local
2209 fn = CGF.CGM.CreateRuntimeFunction(fnType, fnName); in emitObjCValueOperation()
2633 llvm::FunctionType *fnType = in EmitObjCAutoreleasePoolPop() local
2635 fn = CGM.CreateRuntimeFunction(fnType, "objc_autoreleasePoolPop"); in EmitObjCAutoreleasePoolPop()
2767 llvm::FunctionType *fnType = in EmitObjCRelease() local
2769 fn = CGM.CreateRuntimeFunction(fnType, "objc_release"); in EmitObjCRelease()
DCGBlocks.cpp1489 const FunctionProtoType *fnType = blockInfo.getBlockExpr()->getFunctionType(); in GenerateBlockFunction() local
1491 CGM.getTypes().arrangeBlockFunctionDeclaration(fnType, args); in GenerateBlockFunction()
1511 StartFunction(blockDecl, fnType->getReturnType(), fn, fnInfo, args, in GenerateBlockFunction()
DTargetInfo.cpp420 const FunctionNoProtoType *fnType) const { in isNoProtoCallVariadic()
2437 const FunctionNoProtoType *fnType) const override { in isNoProtoCallVariadic()
2444 if (fnType->getCallConv() == CC_C) { in isNoProtoCallVariadic()
2458 return TargetCodeGenInfo::isNoProtoCallVariadic(args, fnType); in isNoProtoCallVariadic()
10812 const FunctionNoProtoType *fnType) const override { in isNoProtoCallVariadic()
/external/llvm-project/mlir/lib/Dialect/SPIRV/Serialization/
DDeserializer.cpp876 Type fnType = getType(operands[3]); in processFunction() local
877 if (!fnType || !fnType.isa<FunctionType>()) { in processFunction()
881 auto functionType = fnType.cast<FunctionType>(); in processFunction()
895 << fnType << ", id = " << operands[1] << ") --\n"); in processFunction()
956 << "-- completed function '" << fnName << "' (type = " << fnType in processFunction()
985 << fnType << ", id = " << operands[1] << ") --\n"); in processFunction()
/external/llvm-project/mlir/lib/Parser/
DParser.cpp827 auto fnType = type.dyn_cast<FunctionType>(); in parseGenericOperation() local
828 if (!fnType) in parseGenericOperation()
831 result.addTypes(fnType.getResults()); in parseGenericOperation()
834 auto operandTypes = fnType.getInputs(); in parseGenericOperation()
/external/llvm-project/mlir/lib/Dialect/StandardOps/IR/
DOps.cpp694 auto fnType = fn.getType(); in verifySymbolUses() local
695 if (fnType.getNumInputs() != getNumOperands()) in verifySymbolUses()
698 for (unsigned i = 0, e = fnType.getNumInputs(); i != e; ++i) in verifySymbolUses()
699 if (getOperand(i).getType() != fnType.getInput(i)) in verifySymbolUses()
701 << fnType.getInput(i) << ", but provided " in verifySymbolUses()
704 if (fnType.getNumResults() != getNumResults()) in verifySymbolUses()
707 for (unsigned i = 0, e = fnType.getNumResults(); i != e; ++i) in verifySymbolUses()
708 if (getResult(i).getType() != fnType.getResult(i)) in verifySymbolUses()
/external/clang/lib/Sema/
DSemaOverload.cpp12146 QualType fnType = in BuildCallToMemberFunction() local
12149 const FunctionProtoType *proto = fnType->castAs<FunctionProtoType>(); in BuildCallToMemberFunction()
12168 << fnType.getUnqualifiedType() in BuildCallToMemberFunction()
/external/llvm-project/clang/lib/Sema/
DSemaOverload.cpp14174 QualType fnType = in BuildCallToMemberFunction() local
14177 const FunctionProtoType *proto = fnType->castAs<FunctionProtoType>(); in BuildCallToMemberFunction()
14196 << fnType.getUnqualifiedType() in BuildCallToMemberFunction()