Home
last modified time | relevance | path

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

1234

/llvm-project/mlir/lib/Interfaces/
H A DFunctionInterfaces.cpp157 assert(index < op.getNumArguments() && "invalid argument number"); in setArgAttrs()
159 op, op.getNumArguments(), index, in setArgAttrs()
167 op, op.getNumArguments(), index, in setArgAttrs()
326 unsigned oldNumArgs = op.getNumArguments(); in setFunctionType()
329 unsigned newNumArgs = op.getNumArguments(); in setFunctionType()
H A DControlFlowInterfaces.cpp66 if (operandCount != destBB->getNumArguments()) in verifyBranchSuccessorOperands()
70 << destBB->getNumArguments(); in verifyBranchSuccessorOperands()
/llvm-project/mlir/lib/Transforms/Utils/
H A DCFGToSCF.cpp244 {entryBlock, multiplexerBlock->getNumArguments()});
282 multiplexerBlock->getNumArguments() - extraArgs.size();
287 SmallVector<Value> newSuccOperands(multiplexerBlock->getNumArguments());
291 index < result->second + edge.getSuccessor()->getNumArguments()) {
341 offset, succ->getNumArguments()));
605 latchBlock->getArguments().take_front(loopHeader->getNumArguments()), in createSingleExitingLatch()
665 assert(exitBlock->getNumArguments() == 0 && in transformToReduceLoop()
1152 subRegionEntryBlock->getNumArguments()); in transformToStructuredCFBranches()
H A DInliningUtils.cpp194 callable.getCallableRegion()->getNumArguments(), in handleResultImpl()
365 if (inlinedOperands.size() != entryBlock->getNumArguments()) in inlineRegion()
471 if (callOperands.size() != entryBlock->getNumArguments() || in inlineCall()
/llvm-project/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.cpp48 if (terminator->getNumOperands() != regionEntry.getNumArguments()) in runOnOperation()
H A DTestPrintNesting.cpp64 << "Block with " << block.getNumArguments() << " arguments, " in printBlock()
/llvm-project/mlir/include/mlir/Interfaces/
H A DFunctionInterfaces.td97 if (entryBlock.getNumArguments() != numArguments)
242 unsigned getNumArguments() { return $_op.getArgumentTypes().size(); }
271 unsigned originalNumArgs = $_op.getNumArguments();
301 ::llvm::BitVector argsToErase($_op.getNumArguments());
386 result.append($_op.getNumArguments(),
422 assert(attributes.size() == $_op.getNumArguments());
426 assert(attributes.size() == $_op.getNumArguments());
430 assert(attributes.size() == $_op.getNumArguments());
547 assert(index < $_op.getNumArguments() && "invalid argument number");
H A DFunctionInterfaces.h163 unsigned numArgs = op.getNumArguments(); in verifyTrait()
/llvm-project/mlir/lib/Dialect/Func/TransformOps/
H A DFuncTransformOps.cpp133 if (targetFunction.getNumArguments() != inputs.size()) { in apply()
136 << targetFunction.getNumArguments() << " and number of inputs " in apply()
/llvm-project/mlir/test/lib/Dialect/GPU/
H A DTestGpuMemoryPromotion.cpp46 for (unsigned i = 0, e = op.getNumArguments(); i < e; ++i) { in runOnOperation()
/llvm-project/mlir/lib/Dialect/Transform/Transforms/
H A DInferEffects.cpp46 for (unsigned i = 0, e = func.getNumArguments(); i < e; ++i) { in inferSideEffectAnnotations()
/llvm-project/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/mlir/lib/Dialect/Tosa/Transforms/
H A DTosaInferShapes.cpp142 if (frontBlock.getNumArguments() + 1 != ifOp.getNumOperands()) in propagateShapesToTosaIf()
156 for (int i = 0, e = frontBlock.getNumArguments(); i < e; i++) { in propagateShapesToTosaWhile()
/llvm-project/mlir/test/lib/Dialect/Affine/
H A DTestAffineLoopParametricTiling.cpp46 if (funcOp.getNumArguments() < band.size()) in checkIfTilingParametersExist()
/llvm-project/mlir/lib/Dialect/LLVMIR/Transforms/
H A DLegalizeForExport.cpp43 if (successor->getNumArguments() == 0) in ensureDistinctSuccessors()
/llvm-project/mlir/lib/Transforms/
H A DMem2Reg.cpp628 assert(succOperands.size() == mergePoint->getNumArguments() || in promoteSlot()
629 succOperands.size() + 1 == mergePoint->getNumArguments()); in promoteSlot()
630 if (succOperands.size() + 1 == mergePoint->getNumArguments())
/llvm-project/mlir/lib/Conversion/ControlFlowToSPIRV/
H A DControlFlowToSPIRV.cpp35 for (unsigned i = 0; i < block.getNumArguments(); ++i) { in legalizeBlockArguments()
/llvm-project/mlir/lib/Dialect/OpenMP/IR/
H A DOpenMPDialect.cpp1169 auto getNumArguments = [&] { in parseMapEntries()
1170 return std::visit([](auto &f) { return f.getNumArguments(); }, *funcOp); in parseMapEntries()
1182 if (getNumArguments() != 2) in printMapEntries()
2453 if (initializerEntryBlock.getNumArguments() == 1) { in verify()
2457 } else if (initializerEntryBlock.getNumArguments() == 2) { in verify()
2481 if (reductionEntryBlock.getNumArguments() != 2 || in build()
2496 if (atomicReductionEntryBlock.getNumArguments() != 2 || in verify()
2512 if (cleanupEntryBlock.getNumArguments() != 1 || in verify()
3104 if (region.getNumArguments() != expectedNumArgs)
3108 << " region arguments, got: " << region.getNumArguments();
765 auto getNumArguments = [&] { verifyCopyPrivateVarList() local
[all...]
/llvm-project/mlir/lib/Conversion/SCFToOpenMP/
H A DSCFToOpenMP.cpp47 if (block.getNumArguments() != 2) in matchSimpleReduction()
421 assert(redRegion.getNumArguments() == 2 && in matchAndRewrite()
508 numLoops, loopOpEntryBlock.getNumArguments() - numLoops); in matchAndRewrite()
/llvm-project/mlir/examples/transform/Ch4/lib/
H A DMyExtension.cpp174 if (bodyBlock.getNumArguments() != 1 || in verify()
/llvm-project/mlir/lib/Dialect/SCF/IR/
H A DSCF.cpp162 if (getRegion().front().getNumArguments() > 0) in verify()
577 getBody()->getNumArguments())); in replaceWithAdditionalYields()
924 assert(oldBlock.getNumArguments() == newBlockTransferArgs.size() &&
1141 if (body->getNumArguments() != numLoops + getOutputs().size()) in verify()
2906 if (body->getNumArguments() != stepValues.size()) in verify()
2908 << body->getNumArguments() in verify()
3160 (outerBody.getNumArguments() + innerBody.getNumArguments())); in matchAndRewrite()
3163 iterVals.take_front(outerBody.getNumArguments())); in matchAndRewrite()
3165 iterVals.take_back(innerBody.getNumArguments())); in matchAndRewrite()
[all...]
/llvm-project/mlir/lib/Conversion/SCFToSPIRV/
H A DSCFToSPIRV.cpp161 body->getNumArguments()); in matchAndRewrite()
163 for (unsigned i = 1, e = body->getNumArguments(); i < e; i++) in matchAndRewrite()
/llvm-project/mlir/lib/Query/
H A DQuery.cpp92 while (currentIndex < funcOp.getNumArguments()) { in extractFunction()

1234