Home
last modified time | relevance | path

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

12

/external/llvm-project/mlir/lib/Transforms/
DBufferResultsToOutParams.cpp23 auto functionType = func.getType(); in updateFuncOp() local
28 for (auto resultType : llvm::enumerate(functionType.getResults())) { in updateFuncOp()
37 llvm::concat<const Type>(functionType.getInputs(), erasedResultTypes)); in updateFuncOp()
39 newArgTypes, functionType.getResults(), func.getContext()); in updateFuncOp()
44 func.setArgAttrs(functionType.getNumInputs() + i, in updateFuncOp()
DNormalizeMemRefs.cpp196 FunctionType functionType = funcOp.getType(); in updateFunctionSignature() local
199 resultTypes = llvm::to_vector<4>(functionType.getResults()); in updateFunctionSignature()
338 FunctionType functionType = funcOp.getType(); in normalizeFuncOpMemRefs() local
342 llvm::seq<unsigned>(0, functionType.getNumInputs())) { in normalizeFuncOpMemRefs()
343 Type argType = functionType.getInput(argIndex); in normalizeFuncOpMemRefs()
449 llvm::seq<unsigned>(0, functionType.getNumResults())) { in normalizeFuncOpMemRefs()
450 Type resType = functionType.getResult(resIndex); in normalizeFuncOpMemRefs()
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiVersionCheck.cpp420 const deUint32 functionType = testsArr[ndx].second; in mixupAddressProcCheck() local
421 if (functionType == FUNCTIONORIGIN_INSTANCE) in mixupAddressProcCheck()
426 else if (functionType == FUNCTIONORIGIN_DEVICE) in mixupAddressProcCheck()
437 const deUint32 functionType = testsArr[ndx].second; in specialCasesCheck() local
438 if (functionType == FUNCTIONORIGIN_PLATFORM) in specialCasesCheck()
440 else if (functionType == FUNCTIONORIGIN_INSTANCE) in specialCasesCheck()
442 else if (functionType == FUNCTIONORIGIN_DEVICE) in specialCasesCheck()
456 const deUint32 functionType = testsArr[ndx].second; in regularCheck() local
457 if (functionType == FUNCTIONORIGIN_PLATFORM) in regularCheck()
459 else if (functionType == FUNCTIONORIGIN_INSTANCE) in regularCheck()
[all …]
/external/llvm-project/mlir/lib/Dialect/StandardOps/Transforms/
DDecomposeCallGraphTypes.cpp66 auto functionType = op.getType(); in matchAndRewrite() local
69 TypeConverter::SignatureConversion conversion(functionType.getNumInputs()); in matchAndRewrite()
70 for (auto argType : llvm::enumerate(functionType.getInputs())) { in matchAndRewrite()
84 getTypeConverter()->convertTypes(functionType.getResults(), newResultTypes); in matchAndRewrite()
/external/llvm-project/clang/unittests/AST/
DSourceLocationTest.cpp860 EXPECT_TRUE(Verifier.match("void f() throw();\n", loc(functionType()))); in TEST()
864 loc(functionType()))); in TEST()
869 EXPECT_TRUE(Verifier.match("void f() throw(...);\n", loc(functionType()), in TEST()
874 Verifier.match("void f() noexcept;\n", loc(functionType()), Lang_CXX11)); in TEST()
877 EXPECT_TRUE(Verifier.match("void f() noexcept(false);\n", loc(functionType()), in TEST()
882 loc(functionType()), Lang_CXX11)); in TEST()
888 parenType(innerType(functionType())))))))); in TEST()
893 parenType(innerType(functionType())))))), in TEST()
DASTTypeTraitsTest.cpp141 EXPECT_TRUE(Verifier.match("void f() {}", typeLoc(loc(functionType())))); in TEST()
/external/deqp-deps/glslang/SPIRV/
DspvIR.h328 Function(Id id, Id resultType, Id functionType, Id firstParam, Module& parent);
463 __inline Function::Function(Id id, Id resultType, Id functionType, Id firstParamId, Module& parent) in Function() argument
469 functionInstruction.addIdOperand(functionType); in Function()
474 Instruction* typeInst = parent.getInstruction(functionType); in Function()
/external/llvm-project/mlir/lib/Conversion/GPUCommon/
DConvertLaunchFuncToRuntimeCalls.cpp58 functionType(LLVM::LLVMType::getFunctionTy(returnType, argumentTypes, in FunctionCallBuilder()
65 LLVM::LLVMType functionType; member in __anon0a83c7900111::FunctionCallBuilder
292 .create<LLVM::LLVMFuncOp>(loc, functionName, functionType); in create()
295 loc, const_cast<LLVM::LLVMType &>(functionType).getFunctionResultType(), in create()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DMisplacedConstCheck.cpp21 pointee(anyOf(isConstQualified(), ignoringParens(functionType())))))); in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DQualifiedAutoCheck.cpp131 pointerType(pointee(unless(functionType())))))), in registerMatchers()
139 unless(functionType())))))), in registerMatchers()
/external/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp1162 EXPECT_TRUE(matches("int (*f)(int);", functionType())); in TEST()
1163 EXPECT_TRUE(matches("void f(int i) {}", functionType())); in TEST()
1168 notMatches("void (*fp)(void);", pointerType(pointee(functionType())))); in TEST()
1170 pointerType(pointee(ignoringParens(functionType()))))); in TEST()
1189 varDecl(hasType(pointsTo(parenType(innerType(functionType()))))))); in TEST()
1192 varDecl(hasType(pointsTo(parenType(innerType(functionType()))))))); in TEST()
/external/llvm-project/mlir/lib/Dialect/SPIRV/Serialization/
DDeserializer.cpp881 auto functionType = fnType.cast<FunctionType>(); in processFunction() local
883 if ((isVoidType(resultType) && functionType.getNumResults() != 0) || in processFunction()
884 (functionType.getNumResults() == 1 && in processFunction()
885 functionType.getResult(0) != resultType)) { in processFunction()
887 << functionType << " and return type " << resultType << " specified"; in processFunction()
892 unknownLoc, fnName, functionType, fnControl.getValue()); in processFunction()
901 if (functionType.getNumInputs()) { in processFunction()
902 for (size_t i = 0, e = functionType.getNumInputs(); i != e; ++i) { in processFunction()
903 auto argType = functionType.getInput(i); in processFunction()
926 << functionType << " and argument type definition " in processFunction()
/external/llvm-project/mlir/lib/Dialect/SCF/
DSCF.cpp1231 FunctionType functionType; in parseWhileOp() local
1233 if (failed(parser.parseColonType(functionType))) in parseWhileOp()
1236 result.addTypes(functionType.getResults()); in parseWhileOp()
1238 if (functionType.getNumInputs() != operands.size()) { in parseWhileOp()
1242 << functionType.getNumInputs() << ")"; in parseWhileOp()
1246 if (failed(parser.resolveOperands(operands, functionType.getInputs(), in parseWhileOp()
1252 parser.parseRegion(*before, regionArgs, functionType.getInputs()) || in parseWhileOp()
/external/llvm-project/mlir/lib/Target/LLVMIR/
DConvertFromLLVMIR.cpp780 LLVMType functionType = processType(f->getFunctionType()); in processFunction() local
781 if (!functionType) in processFunction()
786 b.create<LLVMFuncOp>(UnknownLoc::get(context), f->getName(), functionType, in processFunction()
809 functionType.getFunctionParamType(kv.index())); in processFunction()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp1602 EXPECT_TRUE(matches("int (*f)(int);", functionType())); in TEST_P()
1603 EXPECT_TRUE(matches("void f(int i) {}", functionType())); in TEST_P()
1608 notMatches("void (*fp)(void);", pointerType(pointee(functionType())))); in TEST_P()
1610 pointerType(pointee(ignoringParens(functionType()))))); in TEST_P()
1640 varDecl(hasType(pointsTo(parenType(innerType(functionType()))))))); in TEST_P()
1643 varDecl(hasType(pointsTo(parenType(innerType(functionType()))))))); in TEST_P()
/external/clang/unittests/AST/
DASTTypeTraitsTest.cpp142 EXPECT_TRUE(Verifier.match("void f() {}", typeLoc(loc(functionType())))); in TEST()
/external/llvm-project/mlir/lib/Dialect/SPIRV/
DSPIRVOps.cpp1858 auto functionType = funcOp.getType(); in verify() local
1866 if (functionType.getNumInputs() != functionCallOp.getNumOperands()) { in verify()
1869 << functionType.getNumInputs() << ", but provided " in verify()
1873 for (uint32_t i = 0, e = functionType.getNumInputs(); i != e; ++i) { in verify()
1874 if (functionCallOp.getOperand(i).getType() != functionType.getInput(i)) { in verify()
1877 << functionType.getInput(i) << ", but provided " in verify()
1883 if (functionType.getNumResults() != functionCallOp.getNumResults()) { in verify()
1886 << functionType.getNumResults() << ", but provided " in verify()
1891 (functionCallOp.getResult(0).getType() != functionType.getResult(0))) { in verify()
1893 << functionType.getResult(0) << ", but provided " in verify()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DRedundantVoidArgCheck.cpp52 auto ParenFunctionType = parenType(innerType(functionType())); in registerMatchers()
DUseAutoCheck.cpp227 pointsTo(parenType(innerType(functionType())))))))))) in makeDeclWithNewMatcher()
/external/llvm-project/clang/test/AST/
Dpragma-attribute-objc-subject-match-rules.m9 …lass -fsyntax-only -ast-dump -ast-dump-filter test "-DSUBJECT=hasType(functionType)" %s | FileChec…
/external/llvm-project/mlir/lib/Dialect/GPU/IR/
DGPUDialect.cpp126 auto functionType = kernelGPUFunction.getType(); in verifyOperationAttribute() local
128 if (launchOp.getKernelOperand(i).getType() != functionType.getInput(i)) { in verifyOperationAttribute()
/external/llvm-project/clang/test/Parser/
Dpragma-attribute.cpp63 #pragma clang attribute push(__attribute__((annotate("test"))), apply_to = hasType(functionType)) /…
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp194 REGISTER_MATCHER(functionType); in RegistryMaps()
/external/deqp/external/vulkancts/scripts/
Dgen_framework.py1638 def writeExtensionFunctions (functionType): argument
1641 if functionType == Function.TYPE_INSTANCE:
1644 elif functionType == Function.TYPE_DEVICE:
1651 if func.getType() == functionType:
/external/llvm-project/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp243 REGISTER_MATCHER(functionType); in RegistryMaps()

12