Lines Matching refs:AffineForOp
144 isa<AffineForOp, AffineParallelOp>(parentOp)); in isValidDim()
166 return isa<AffineForOp, AffineParallelOp>(parentOp); in isValidDim()
1210 void AffineForOp::build(OpBuilder &builder, OperationState &result, in build()
1260 void AffineForOp::build(OpBuilder &builder, OperationState &result, int64_t lb, in build()
1269 static LogicalResult verify(AffineForOp op) { in verify()
1318 auto boundAttrName = isLower ? AffineForOp::getLowerBoundAttrName() in parseBound()
1319 : AffineForOp::getUpperBoundAttrName(); in parseBound()
1418 AffineForOp::getStepAttrName(), in parseAffineForOp()
1424 AffineForOp::getStepAttrName().data(), in parseAffineForOp()
1464 AffineForOp::ensureTerminator(*body, builder, result.location); in parseAffineForOp()
1511 unsigned AffineForOp::getNumIterOperands() { in getNumIterOperands()
1518 static void print(OpAsmPrinter &p, AffineForOp op) { in print()
1551 static LogicalResult foldLoopBounds(AffineForOp forOp) { in foldLoopBounds()
1597 static LogicalResult canonicalizeLoopBounds(AffineForOp forOp) { in canonicalizeLoopBounds()
1625 struct AffineForEmptyLoopFolder : public OpRewritePattern<AffineForOp> {
1626 using OpRewritePattern<AffineForOp>::OpRewritePattern;
1628 LogicalResult matchAndRewrite(AffineForOp forOp, in matchAndRewrite()
1639 void AffineForOp::getCanonicalizationPatterns(OwningRewritePatternList &results, in getCanonicalizationPatterns()
1644 LogicalResult AffineForOp::fold(ArrayRef<Attribute> operands, in fold()
1651 AffineBound AffineForOp::getLowerBound() { in getLowerBound()
1653 return AffineBound(AffineForOp(*this), 0, lbMap.getNumInputs(), lbMap); in getLowerBound()
1656 AffineBound AffineForOp::getUpperBound() { in getUpperBound()
1659 return AffineBound(AffineForOp(*this), lbMap.getNumInputs(), in getUpperBound()
1663 void AffineForOp::setLowerBound(ValueRange lbOperands, AffineMap map) { in setLowerBound()
1678 void AffineForOp::setUpperBound(ValueRange ubOperands, AffineMap map) { in setUpperBound()
1691 void AffineForOp::setLowerBoundMap(AffineMap map) { in setLowerBoundMap()
1700 void AffineForOp::setUpperBoundMap(AffineMap map) { in setUpperBoundMap()
1709 bool AffineForOp::hasConstantLowerBound() { in hasConstantLowerBound()
1713 bool AffineForOp::hasConstantUpperBound() { in hasConstantUpperBound()
1717 int64_t AffineForOp::getConstantLowerBound() { in getConstantLowerBound()
1721 int64_t AffineForOp::getConstantUpperBound() { in getConstantUpperBound()
1725 void AffineForOp::setConstantLowerBound(int64_t value) { in setConstantLowerBound()
1729 void AffineForOp::setConstantUpperBound(int64_t value) { in setConstantUpperBound()
1733 AffineForOp::operand_range AffineForOp::getLowerBoundOperands() { in getLowerBoundOperands()
1737 AffineForOp::operand_range AffineForOp::getUpperBoundOperands() { in getUpperBoundOperands()
1743 bool AffineForOp::matchingBoundOperandList() { in matchingBoundOperandList()
1759 Region &AffineForOp::getLoopBody() { return region(); } in getLoopBody()
1761 bool AffineForOp::isDefinedOutsideOfLoop(Value value) { in isDefinedOutsideOfLoop()
1765 LogicalResult AffineForOp::moveOutOfLoop(ArrayRef<Operation *> ops) { in moveOutOfLoop()
1774 return getForInductionVarOwner(val) != AffineForOp(); in isForInductionVar()
1779 AffineForOp mlir::getForInductionVarOwner(Value val) { in getForInductionVarOwner()
1782 return AffineForOp(); in getForInductionVarOwner()
1784 return dyn_cast<AffineForOp>(containingInst); in getForInductionVarOwner()
1789 void mlir::extractForInductionVars(ArrayRef<AffineForOp> forInsts, in extractForInductionVars()
1839 static AffineForOp
1842 AffineForOp::BodyBuilderFn bodyBuilderFn) { in buildAffineLoopFromConstants()
1843 return builder.create<AffineForOp>(loc, lb, ub, step, /*iterArgs=*/llvm::None, in buildAffineLoopFromConstants()
1848 static AffineForOp
1851 AffineForOp::BodyBuilderFn bodyBuilderFn) { in buildAffineLoopFromValues()
1858 return builder.create<AffineForOp>(loc, lb, builder.getDimIdentityMap(), ub, in buildAffineLoopFromValues()
2889 if (!isa<AffineParallelOp, AffineIfOp, AffineForOp>(parentOp)) in verify()