Home
last modified time | relevance | path

Searched refs:functionType (Results 1 – 25 of 28) sorted by relevance

12

/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/Transforms/
H A DBufferResultsToOutParams.cpp43 auto functionType = func.getFunctionType(); in updateFuncOp() local
47 BitVector erasedResultIndices(functionType.getNumResults()); in updateFuncOp()
48 for (const auto &resultType : llvm::enumerate(functionType.getResults())) { in updateFuncOp()
65 llvm::concat<const Type>(functionType.getInputs(), erasedResultTypes)); in updateFuncOp()
67 functionType.getResults()); in updateFuncOp()
73 func.setArgAttrs(functionType.getNumInputs() + i, in updateFuncOp()
/llvm-project-15.0.7/mlir/lib/Dialect/Func/Transforms/
H A DDecomposeCallGraphTypes.cpp67 auto functionType = op.getFunctionType(); in matchAndRewrite() local
70 TypeConverter::SignatureConversion conversion(functionType.getNumInputs()); in matchAndRewrite()
71 for (const auto &argType : llvm::enumerate(functionType.getInputs())) { in matchAndRewrite()
86 if (failed(typeConverter->convertTypes(functionType.getResults(), in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/MemRef/Transforms/
H A DNormalizeMemRefs.cpp199 FunctionType functionType = funcOp.getFunctionType(); in updateFunctionSignature() local
202 resultTypes = llvm::to_vector<4>(functionType.getResults()); in updateFunctionSignature()
339 FunctionType functionType = funcOp.getFunctionType(); in normalizeFuncOpMemRefs() local
345 llvm::seq<unsigned>(0, functionType.getNumInputs())) { in normalizeFuncOpMemRefs()
346 Type argType = functionType.getInput(argIndex); in normalizeFuncOpMemRefs()
453 llvm::seq<unsigned>(0, functionType.getNumResults())) { in normalizeFuncOpMemRefs()
454 Type resType = functionType.getResult(resIndex); in normalizeFuncOpMemRefs()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/ROCDL/
H A DROCDLToLLVMIRTranslation.cpp34 llvm::FunctionType *functionType = llvm::FunctionType::get( in createDeviceFunctionCall() local
39 module->getOrInsertFunction(fnName, functionType).getCallee()); in createDeviceFunctionCall()
/llvm-project-15.0.7/clang/unittests/AST/
H A DSourceLocationTest.cpp907 EXPECT_TRUE(Verifier.match("void f() throw();\n", loc(functionType()))); in TEST()
911 loc(functionType()))); in TEST()
916 EXPECT_TRUE(Verifier.match("void f() throw(...);\n", loc(functionType()), in TEST()
921 Verifier.match("void f() noexcept;\n", loc(functionType()), Lang_CXX11)); in TEST()
924 EXPECT_TRUE(Verifier.match("void f() noexcept(false);\n", loc(functionType()), in TEST()
929 loc(functionType()), Lang_CXX11)); in TEST()
935 parenType(innerType(functionType())))))))); in TEST()
940 parenType(innerType(functionType())))))), in TEST()
H A DASTTypeTraitsTest.cpp154 EXPECT_TRUE(Verifier.match("void f() {}", typeLoc(loc(functionType())))); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DMisplacedConstCheck.cpp21 pointee(anyOf(isConstQualified(), ignoringParens(functionType())))))); in registerMatchers()
H A DConstCorrectnessCheck.cpp83 hasType(hasCanonicalType(referenceType(pointee(functionType())))); in registerMatchers()
/llvm-project-15.0.7/mlir/lib/Target/SPIRV/Deserialization/
H A DDeserializer.cpp369 auto functionType = fnType.cast<FunctionType>(); in processFunction() local
371 if ((isVoidType(resultType) && functionType.getNumResults() != 0) || in processFunction()
372 (functionType.getNumResults() == 1 && in processFunction()
373 functionType.getResult(0) != resultType)) { in processFunction()
375 << functionType << " and return type " << resultType << " specified"; in processFunction()
380 unknownLoc, fnName, functionType, fnControl.value()); in processFunction()
394 if (functionType.getNumInputs()) { in processFunction()
395 for (size_t i = 0, e = functionType.getNumInputs(); i != e; ++i) { in processFunction()
396 auto argType = functionType.getInput(i); in processFunction()
419 << functionType << " and argument type definition " in processFunction()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNodeTest.cpp1623 EXPECT_TRUE(matches("int (*f)(int);", functionType())); in TEST_P()
1624 EXPECT_TRUE(matches("void f(int i) {}", functionType())); in TEST_P()
1629 notMatches("void (*fp)(void);", pointerType(pointee(functionType())))); in TEST_P()
1631 pointerType(pointee(ignoringParens(functionType()))))); in TEST_P()
1661 varDecl(hasType(pointsTo(parenType(innerType(functionType()))))))); in TEST_P()
1664 varDecl(hasType(pointsTo(parenType(innerType(functionType()))))))); in TEST_P()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/
H A DGPUToLLVMConversion.cpp69 functionType(LLVM::LLVMFunctionType::get(returnType, argumentTypes)) {} in FunctionCallBuilder()
74 LLVM::LLVMFunctionType functionType; member
394 .create<LLVM::LLVMFuncOp>(loc, functionName, functionType); in create()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/
H A DConvertFromLLVMIR.cpp1174 auto functionType = in processFunction() local
1176 if (!functionType) in processFunction()
1191 UnknownLoc::get(context), f->getName(), functionType, in processFunction()
1217 functionType.getParamType(kv.index()), fop.getLoc()); in processFunction()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DQualifiedAutoCheck.cpp128 auto UnlessFunctionType = unless(hasUnqualifiedDesugaredType(functionType())); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseAutoCheck.cpp227 pointsTo(parenType(innerType(functionType())))))))))) in makeDeclWithNewMatcher()
H A DRedundantVoidArgCheck.cpp50 auto ParenFunctionType = parenType(innerType(functionType())); in registerMatchers()
/llvm-project-15.0.7/clang/test/AST/
H A Dpragma-attribute-objc-subject-match-rules.m9 …lass -fsyntax-only -ast-dump -ast-dump-filter test "-DSUBJECT=hasType(functionType)" %s | FileChec…
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVOps.cpp2340 auto functionType = funcOp.getFunctionType(); in verify() local
2348 if (functionType.getNumInputs() != getNumOperands()) { in verify()
2350 << functionType.getNumInputs() << ", but provided " in verify()
2354 for (uint32_t i = 0, e = functionType.getNumInputs(); i != e; ++i) { in verify()
2355 if (getOperand(i).getType() != functionType.getInput(i)) { in verify()
2357 << functionType.getInput(i) << ", but provided " in verify()
2362 if (functionType.getNumResults() != getNumResults()) { in verify()
2365 << functionType.getNumResults() << ", but provided " in verify()
2370 (getResult(0).getType() != functionType.getResult(0))) { in verify()
2372 << functionType.getResult(0) << ", but provided " in verify()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/IR/
H A DSCF.cpp2619 FunctionType functionType; in parse() local
2621 if (failed(parser.parseColonType(functionType))) in parse()
2624 result.addTypes(functionType.getResults()); in parse()
2626 if (functionType.getNumInputs() != operands.size()) { in parse()
2630 << functionType.getNumInputs() << ")"; in parse()
2634 if (failed(parser.resolveOperands(operands, functionType.getInputs(), in parse()
2641 regionArgs[i].type = functionType.getInput(i); in parse()
/llvm-project-15.0.7/clang/test/Parser/
H A Dpragma-attribute.cpp63 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = hasType(functionType)) /…
/llvm-project-15.0.7/mlir/lib/Dialect/GPU/IR/
H A DGPUDialect.cpp260 auto functionType = kernelGPUFunction.getFunctionType(); in verifyOperationAttribute() local
262 if (launchOp.getKernelOperand(i).getType() != functionType.getInput(i)) { in verifyOperationAttribute()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp261 REGISTER_MATCHER(functionType); in RegistryMaps()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp1046 const AstTypeMatcher<FunctionType> functionType; variable
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExpr.cpp5125 QualType functionType; in EmitCallee() local
5128 functionType = ptrType->getPointeeType(); in EmitCallee()
5130 functionType = E->getType(); in EmitCallee()
5133 assert(functionType->isFunctionType()); in EmitCallee()
5140 CGCalleeInfo calleeInfo(functionType->getAs<FunctionProtoType>(), GD); in EmitCallee()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h6989 extern const AstTypeMatcher<FunctionType> functionType;
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DAttr.td459 AttrSubjectMatcherSubRule<"functionType", [FunctionLike]>
462 // functionType excludes them but functionProtoType includes them.

12