Home
last modified time | relevance | path

Searched refs:funcType (Results 1 – 25 of 32) sorted by relevance

12

/external/llvm-project/mlir/lib/Conversion/GPUCommon/
DOpToFuncCallLowering.h60 LLVMType funcType = getFunctionType(resultType, castedOperands); in matchAndRewrite() local
61 StringRef funcName = getFunctionName(funcType.getFunctionResultType()); in matchAndRewrite()
65 LLVMFuncOp funcOp = appendOrGetFuncOp(funcName, funcType, op); in matchAndRewrite()
112 LLVM::LLVMType funcType, in appendOrGetFuncOp()
121 return b.create<LLVMFuncOp>(op->getLoc(), funcName, funcType); in appendOrGetFuncOp()
DGPUOpsLowering.h57 auto funcType = typeConverter->convertType(gpuFuncOp.getType()) in matchAndRewrite() local
78 gpuFuncOp.getLoc(), gpuFuncOp.getName(), funcType, in matchAndRewrite()
/external/llvm-project/mlir/lib/Dialect/LLVMIR/IR/
DLLVMDialect.cpp158 auto funcType = type.dyn_cast<FunctionType>(); in parseAllocaOp() local
159 if (!funcType || funcType.getNumInputs() != 1 || in parseAllocaOp()
160 funcType.getNumResults() != 1) in parseAllocaOp()
165 if (parser.resolveOperand(arraySize, funcType.getInput(0), result.operands)) in parseAllocaOp()
168 result.addTypes({funcType.getResult(0)}); in parseAllocaOp()
365 FunctionType funcType; in parseInvokeOp() local
390 parser.getCurrentLocation(&trailingTypeLoc) || parser.parseType(funcType)) in parseInvokeOp()
395 if (parser.resolveOperands(operands, funcType.getInputs(), in parseInvokeOp()
398 result.addTypes(funcType.getResults()); in parseInvokeOp()
402 if (funcType.getNumResults() > 1) in parseInvokeOp()
[all …]
DLLVMTypeSyntax.cpp107 static void printFunctionType(llvm::raw_ostream &os, LLVMFunctionType funcType, in printFunctionType() argument
110 printTypeImpl(os, funcType.getReturnType(), stack); in printFunctionType()
113 funcType.getParams(), os, in printFunctionType()
115 if (funcType.isVarArg()) { in printFunctionType()
116 if (funcType.getNumParams() != 0) in printFunctionType()
170 if (auto funcType = type.dyn_cast<LLVMFunctionType>()) in printTypeImpl() local
171 return printFunctionType(os, funcType, stack); in printTypeImpl()
/external/llvm-project/flang/lib/Lower/
DIntrinsicCall.cpp511 llvm::StringRef name, mlir::FunctionType funcType, in searchFunctionInLibrary() argument
518 if (funcType == implType) { in searchFunctionInLibrary()
521 FunctionDistance distance(funcType, implType); in searchFunctionInLibrary()
538 mlir::FunctionType funcType) { in getRuntimeFunction() argument
550 match = searchFunctionInLibrary(loc, builder, pgmathF, name, funcType, in getRuntimeFunction()
553 match = searchFunctionInLibrary(loc, builder, pgmathR, name, funcType, in getRuntimeFunction()
556 match = searchFunctionInLibrary(loc, builder, pgmathP, name, funcType, in getRuntimeFunction()
569 searchFunctionInLibrary(loc, builder, llvmIntr, name, funcType, in getRuntimeFunction()
762 mlir::FunctionType funcType, in getWrapper() argument
764 assert(funcType.getNumResults() == 1 && in getWrapper()
[all …]
/external/OpenCL-CTS/test_conformance/spirv_new/
Dtest_op_function.cpp23 const char *funcType, in test_function() argument
37 std::string spvStr = std::string("op_function") + "_" + std::string(funcType); in test_function()
/external/llvm-project/mlir/examples/toy/Ch3/mlir/
DDialect.cpp55 if (FunctionType funcType = type.dyn_cast<FunctionType>()) { in parseBinaryOp() local
56 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
59 result.addTypes(funcType.getResults()); in parseBinaryOp()
/external/llvm-project/mlir/examples/toy/Ch2/mlir/
DDialect.cpp55 if (FunctionType funcType = type.dyn_cast<FunctionType>()) { in parseBinaryOp() local
56 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
59 result.addTypes(funcType.getResults()); in parseBinaryOp()
/external/llvm-project/mlir/lib/Conversion/GPUToVulkan/
DConvertGPULaunchFuncToVulkanLaunchFunc.cpp125 auto funcType = FunctionType::get(vulkanLaunchTypes, {}, loc->getContext()); in declareVulkanLaunchFunc() local
126 builder.create<FuncOp>(loc, kVulkanLaunch, funcType).setPrivate(); in declareVulkanLaunchFunc()
/external/llvm-project/mlir/examples/toy/Ch6/mlir/
DDialect.cpp111 if (FunctionType funcType = type.dyn_cast<FunctionType>()) { in parseBinaryOp() local
112 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
115 result.addTypes(funcType.getResults()); in parseBinaryOp()
/external/llvm-project/mlir/examples/toy/Ch5/mlir/
DDialect.cpp111 if (FunctionType funcType = type.dyn_cast<FunctionType>()) { in parseBinaryOp() local
112 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
115 result.addTypes(funcType.getResults()); in parseBinaryOp()
/external/llvm-project/mlir/examples/toy/Ch4/mlir/
DDialect.cpp111 if (FunctionType funcType = type.dyn_cast<FunctionType>()) { in parseBinaryOp() local
112 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
115 result.addTypes(funcType.getResults()); in parseBinaryOp()
/external/llvm-project/mlir/test/CAPI/
Dir.c711 MlirType funcType = mlirFunctionTypeGet(ctx, 2, funcInputs, 3, funcResults); in printBuiltinTypes() local
712 if (mlirFunctionTypeGetNumInputs(funcType) != 2) in printBuiltinTypes()
714 if (mlirFunctionTypeGetNumResults(funcType) != 3) in printBuiltinTypes()
716 if (!mlirTypeEqual(funcInputs[0], mlirFunctionTypeGetInput(funcType, 0)) || in printBuiltinTypes()
717 !mlirTypeEqual(funcInputs[1], mlirFunctionTypeGetInput(funcType, 1))) in printBuiltinTypes()
719 if (!mlirTypeEqual(funcResults[0], mlirFunctionTypeGetResult(funcType, 0)) || in printBuiltinTypes()
720 !mlirTypeEqual(funcResults[1], mlirFunctionTypeGetResult(funcType, 1)) || in printBuiltinTypes()
721 !mlirTypeEqual(funcResults[2], mlirFunctionTypeGetResult(funcType, 2))) in printBuiltinTypes()
723 mlirTypeDump(funcType); in printBuiltinTypes()
/external/llvm-project/mlir/examples/toy/Ch7/mlir/
DDialect.cpp124 if (FunctionType funcType = type.dyn_cast<FunctionType>()) { in parseBinaryOp() local
125 if (parser.resolveOperands(operands, funcType.getInputs(), operandsLoc, in parseBinaryOp()
128 result.addTypes(funcType.getResults()); in parseBinaryOp()
/external/llvm-project/flang/lib/Parser/
Dbasic-parsers.h614 using funcType = FUNCTION<RESULT, PARSER...>; variable
619 constexpr ApplyFunction(funcType f, PARSER... p) in ApplyFunction()
633 const funcType function_;
672 using funcType = ApplicableMemberFunctionPointer<OBJPARSER, PARSER...>; variable
677 constexpr ApplyMemberFunction(funcType f, OBJPARSER o, PARSER... p) in ApplyMemberFunction()
692 const funcType function_;
/external/llvm-project/flang/lib/Optimizer/Dialect/
DFIROps.cpp196 auto funcType = type.dyn_cast<mlir::FunctionType>(); in parseCallOp() local
197 if (!funcType) in parseCallOp()
200 if (parser.resolveOperands(operands, funcType.getInputs(), in parseCallOp()
209 if (parser.resolveOperand(operands[0], funcType, result.operands) || in parseCallOp()
210 parser.resolveOperands(funcArgs, funcType.getInputs(), in parseCallOp()
214 result.addTypes(funcType.getResults()); in parseCallOp()
DFIRType.cpp835 if (auto funcType = t.dyn_cast<mlir::FunctionType>()) in isa_fir_or_std_type() local
836 return llvm::all_of(funcType.getInputs(), isa_fir_or_std_type) && in isa_fir_or_std_type()
837 llvm::all_of(funcType.getResults(), isa_fir_or_std_type); in isa_fir_or_std_type()
/external/llvm/lib/Transforms/Utils/
DCodeExtractor.cpp331 FunctionType *funcType = in constructFunction() local
335 Function *newFunction = Function::Create(funcType, in constructFunction()
/external/llvm-project/clang/lib/AST/
DType.cpp1308 QualType VisitFunctionType(const FunctionType *funcType) { in VisitFunctionType()
1313 QualType returnType = funcType->getReturnType().substObjCTypeArgs( in VisitFunctionType()
1320 if (isa<FunctionNoProtoType>(funcType)) { in VisitFunctionType()
1323 funcType->getReturnType().getAsOpaquePtr()) in VisitFunctionType()
1324 return BaseType::VisitFunctionType(funcType); in VisitFunctionType()
1327 return Ctx.getFunctionNoProtoType(returnType, funcType->getExtInfo()); in VisitFunctionType()
1330 const auto *funcProtoType = cast<FunctionProtoType>(funcType); in VisitFunctionType()
1373 return BaseType::VisitFunctionType(funcType); in VisitFunctionType()
/external/llvm-project/mlir/lib/Conversion/AsyncToLLVM/
DAsyncToLLVM.cpp487 auto funcType = moduleBuilder.getFunctionType(inputTypes, outputTypes); in outlineExecuteOp() local
492 FuncOp func = FuncOp::create(loc, kAsyncFnPrefix, funcType, funcAttrs); in outlineExecuteOp()
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp313 void RewriteBlocksInFunctionProtoType(QualType funcType, NamedDecl *D);
545 void RewriteObjC::RewriteBlocksInFunctionProtoType(QualType funcType, in RewriteBlocksInFunctionProtoType() argument
548 = dyn_cast<FunctionProtoType>(funcType.IgnoreParens())) { in RewriteBlocksInFunctionProtoType()
558 void RewriteObjC::CheckFunctionPointerDecl(QualType funcType, NamedDecl *ND) { in CheckFunctionPointerDecl() argument
559 const PointerType *PT = funcType->getAs<PointerType>(); in CheckFunctionPointerDecl()
560 if (PT && PointerTypeTakesAnyBlockArguments(funcType)) in CheckFunctionPointerDecl()
2117 const FunctionType *funcType = FD->getType()->getAs<FunctionType>(); in RewriteObjCQualifiedInterfaceTypes() local
2118 assert(funcType && "missing function type"); in RewriteObjCQualifiedInterfaceTypes()
2119 proto = dyn_cast<FunctionProtoType>(funcType); in RewriteObjCQualifiedInterfaceTypes()
2288 const FunctionType *funcType = FD->getType()->getAs<FunctionType>(); in RewriteBlockLiteralFunctionDecl() local
[all …]
/external/llvm-project/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp313 void RewriteBlocksInFunctionProtoType(QualType funcType, NamedDecl *D);
545 void RewriteObjC::RewriteBlocksInFunctionProtoType(QualType funcType, in RewriteBlocksInFunctionProtoType() argument
548 = dyn_cast<FunctionProtoType>(funcType.IgnoreParens())) { in RewriteBlocksInFunctionProtoType()
558 void RewriteObjC::CheckFunctionPointerDecl(QualType funcType, NamedDecl *ND) { in CheckFunctionPointerDecl() argument
559 const PointerType *PT = funcType->getAs<PointerType>(); in CheckFunctionPointerDecl()
560 if (PT && PointerTypeTakesAnyBlockArguments(funcType)) in CheckFunctionPointerDecl()
2126 const FunctionType *funcType = FD->getType()->getAs<FunctionType>(); in RewriteObjCQualifiedInterfaceTypes() local
2127 assert(funcType && "missing function type"); in RewriteObjCQualifiedInterfaceTypes()
2128 proto = dyn_cast<FunctionProtoType>(funcType); in RewriteObjCQualifiedInterfaceTypes()
2297 const FunctionType *funcType = FD->getType()->getAs<FunctionType>(); in RewriteBlockLiteralFunctionDecl() local
[all …]
DRewriteModernObjC.cpp385 void RewriteBlocksInFunctionProtoType(QualType funcType, NamedDecl *D);
609 void RewriteModernObjC::RewriteBlocksInFunctionProtoType(QualType funcType, in RewriteBlocksInFunctionProtoType() argument
612 = dyn_cast<FunctionProtoType>(funcType.IgnoreParens())) { in RewriteBlocksInFunctionProtoType()
622 void RewriteModernObjC::CheckFunctionPointerDecl(QualType funcType, NamedDecl *ND) { in CheckFunctionPointerDecl() argument
623 const PointerType *PT = funcType->getAs<PointerType>(); in CheckFunctionPointerDecl()
624 if (PT && PointerTypeTakesAnyBlockArguments(funcType)) in CheckFunctionPointerDecl()
2208 const FunctionType *funcType = FD->getType()->getAs<FunctionType>(); in RewriteObjCQualifiedInterfaceTypes() local
2209 assert(funcType && "missing function type"); in RewriteObjCQualifiedInterfaceTypes()
2210 proto = dyn_cast<FunctionProtoType>(funcType); in RewriteObjCQualifiedInterfaceTypes()
2383 const FunctionType *funcType = FD->getType()->getAs<FunctionType>(); in RewriteBlockLiteralFunctionDecl() local
[all …]
/external/clang/lib/AST/
DType.cpp1120 if (const auto *funcType = dyn_cast<FunctionType>(splitType.Ty)) { in substObjCTypeArgs() local
1122 QualType returnType = funcType->getReturnType().substObjCTypeArgs( in substObjCTypeArgs()
1131 if (isa<FunctionNoProtoType>(funcType)) { in substObjCTypeArgs()
1134 == funcType->getReturnType().getAsOpaquePtr()) in substObjCTypeArgs()
1138 return ctx.getFunctionNoProtoType(returnType, funcType->getExtInfo()); in substObjCTypeArgs()
1141 const auto *funcProtoType = cast<FunctionProtoType>(funcType); in substObjCTypeArgs()
/external/llvm-project/lld/COFF/
DDebugTypes.cpp657 TypeIndex funcType = in mergeTypeRecord() local
660 funcIdToType.push_back({funcId, funcType}); in mergeTypeRecord()

12