Home
last modified time | relevance | path

Searched refs:getNumArguments (Results 1 – 25 of 72) sorted by relevance

123

/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DFunctionInterfaces.h117 assert(index < op.getNumArguments() && "invalid argument number"); in setArgAttrs()
119 op, getArgDictAttrName(), op.getNumArguments(), index, in setArgAttrs()
125 op, getArgDictAttrName(), op.getNumArguments(), index, in setArgAttrs()
218 unsigned numArgs = op.getNumArguments(); in verifyTrait()
H A DFunctionInterfaces.td95 if (entryBlock.getNumArguments() != numArguments)
276 unsigned getNumArguments() { return $_op.getArgumentTypes().size(); }
305 unsigned originalNumArgs = $_op.getNumArguments();
335 BitVector argsToErase($_op.getNumArguments());
422 result.append($_op.getNumArguments(),
458 assert(attributes.size() == $_op.getNumArguments());
462 assert(attributes.size() == $_op.getNumArguments());
466 assert(attributes.size() == $_op.getNumArguments());
585 assert(index < $_op.getNumArguments() && "invalid argument number");
/llvm-project-15.0.7/mlir/test/lib/IR/
H A DTestFunc.cpp99 BitVector indicesToErase(func.getNumArguments()); in runOnOperation()
100 for (auto argIndex : llvm::seq<int>(0, func.getNumArguments())) in runOnOperation()
H A DTestClone.cpp41 if (terminator->getNumOperands() != regionEntry.getNumArguments()) in runOnOperation()
H A DTestPrintNesting.cpp64 << "Block with " << block.getNumArguments() << " arguments, " in printBlock()
H A DTestMatchers.cpp45 assert(f.getNumArguments() == 3 && "matcher test funcs must have 3 args"); in test1()
/llvm-project-15.0.7/mlir/test/lib/Dialect/GPU/
H A DTestGpuMemoryPromotion.cpp45 for (unsigned i = 0, e = op.getNumArguments(); i < e; ++i) { in runOnOperation()
/llvm-project-15.0.7/llvm/tools/llvm-diff/lib/
H A DDiffLog.cpp26 unsigned LogBuilder::getNumArguments() const { return Arguments.size(); } in getNumArguments() function in LogBuilder
H A DDiffLog.h55 unsigned getNumArguments() const;
/llvm-project-15.0.7/mlir/test/lib/Dialect/Affine/
H A DTestAffineLoopParametricTiling.cpp45 assert(funcOp.getNumArguments() >= band.size() && "Too few tile sizes"); in checkIfTilingParametersExist()
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/Transforms/
H A DLegalizeForExport.cpp34 if (successor->getNumArguments() == 0) in ensureDistinctSuccessors()
/llvm-project-15.0.7/mlir/lib/Analysis/DataFlow/
H A DSparseAnalysis.cpp138 if (block->getNumArguments() == 0) in visitBlock()
147 argLattices.reserve(block->getNumArguments()); in visitBlock()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/
H A DTosaInferShapes.cpp44 if (frontBlock.getNumArguments() + 1 != ifOp.getNumOperands()) in propagateShapesToTosaIf()
58 for (int i = 0, e = frontBlock.getNumArguments(); i < e; i++) { in propagateShapesToTosaIf()
/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DControlFlowInterfaces.cpp66 if (operandCount != destBB->getNumArguments()) in verifyBranchSuccessorOperands()
70 << destBB->getNumArguments(); in verifyBranchSuccessorOperands()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/IR/
H A DSCF.cpp135 if (getRegion().front().getNumArguments() > 0) in verify()
682 assert(oldBlock.getNumArguments() == newBlockTransferArgs.size() && in matchAndRewrite()
1060 if (body->getNumArguments() != getRank()) in verify()
2170 if (body->getNumArguments() != stepValues.size()) in verify()
2172 << body->getNumArguments() in verify()
2429 (outerBody.getNumArguments() + innerBody.getNumArguments())); in matchAndRewrite()
2432 iterVals.take_front(outerBody.getNumArguments())); in matchAndRewrite()
2434 iterVals.take_back(innerBody.getNumArguments())); in matchAndRewrite()
2492 if (block.getNumArguments() != 2 || in verifyRegions()
3027 SmallVector<Value> newAfterBlockArgs(afterBlock.getNumArguments()); in matchAndRewrite()
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/FuncToLLVM/
H A DFuncToLLVM.cpp139 prependResAttrsToArgAttrs(rewriter, attributes, funcOp.getNumArguments()); in wrapForExternalCallers()
206 prependResAttrsToArgAttrs(builder, attributes, funcOp.getNumArguments()); in wrapExternalFunction()
292 TypeConverter::SignatureConversion result(funcOp.getNumArguments()); in convertFuncOpToLLVMFuncOp()
317 for (unsigned i = 0, e = funcOp.getNumArguments(); i < e; ++i) { in convertFuncOpToLLVMFuncOp()
/llvm-project-15.0.7/mlir/lib/Dialect/OpenMP/IR/
H A DOpenMPDialect.cpp607 if (initializerEntryBlock.getNumArguments() != 1 || in verifyRegions()
623 if (reductionEntryBlock.getNumArguments() != 2 || in verifyRegions()
640 if (atomicReductionEntryBlock.getNumArguments() != 2 || in verifyRegions()
858 if (region().getNumArguments() != 1) in verifyRegions()
/llvm-project-15.0.7/mlir/lib/IR/
H A DFunctionInterfaces.cpp282 unsigned oldNumArgs = funcOp.getNumArguments(); in setFunctionType()
285 unsigned newNumArgs = funcOp.getNumArguments(); in setFunctionType()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUToSPIRV/
H A DGPUToSPIRV.cpp248 for (auto argIndex : llvm::seq<unsigned>(0, funcOp.getNumArguments())) { in getDefaultABIAttrs()
271 for (auto argIndex : llvm::seq<unsigned>(0, funcOp.getNumArguments())) { in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/TosaToSCF/
H A DTosaToSCF.cpp39 llvm::to_vector<4>(llvm::seq<unsigned>(0, headBlock->getNumArguments()))); in inlineIfCase()
/llvm-project-15.0.7/mlir/lib/Dialect/GPU/IR/
H A DGPUDialect.cpp254 unsigned expectedNumArguments = kernelGPUFunction.getNumArguments(); in verifyOperationAttribute()
316 if (body().getNumArguments() != 2) in verifyRegions()
461 if (body().getNumArguments() != in verifyRegions()
1000 unsigned numFuncArguments = getNumArguments(); in verifyBody()
1002 unsigned numBlockArguments = front().getNumArguments(); in verifyBody()
/llvm-project-15.0.7/mlir/lib/Transforms/Utils/
H A DInliningUtils.cpp242 if (inlinedOperands.size() != entryBlock->getNumArguments()) in inlineRegionImpl()
346 if (callOperands.size() != entryBlock->getNumArguments() || in inlineCall()
/llvm-project-15.0.7/mlir/lib/Conversion/SCFToSPIRV/
H A DSCFToSPIRV.cpp191 body->getNumArguments()); in matchAndRewrite()
193 for (unsigned i = 1, e = body->getNumArguments(); i < e; i++) in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/
H A DGPUOpsLowering.cpp50 gpuFuncOp.front().getNumArguments()); in matchAndRewrite()
84 unsigned numProperArguments = gpuFuncOp.getNumArguments(); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/PDLInterp/IR/
H A DPDLInterp.cpp194 if (getRegion().getNumArguments() != 1) in verify()

123