Lines Matching refs:indVar
54 checkInvarianceOfNestedIfOps(Operation *op, Value indVar, ValueRange iterArgs,
57 static bool isOpLoopInvariant(Operation &op, Value indVar, ValueRange iterArgs,
62 areAllOpsInTheBlockListInvariant(Region &blockList, Value indVar,
68 bool isOpLoopInvariant(Operation &op, Value indVar, ValueRange iterArgs, in isOpLoopInvariant() argument
74 if (!checkInvarianceOfNestedIfOps(&op, indVar, iterArgs, opsWithUsers, in isOpLoopInvariant()
79 if (!areAllOpsInTheBlockListInvariant(forOp.getLoopBody(), indVar, iterArgs, in isOpLoopInvariant()
109 if (llvm::is_contained(userIVs, getForInductionVarOwner(indVar))) { in isOpLoopInvariant()
131 if (indVar == op.getOperand(i)) { in isOpLoopInvariant()
161 Region &blockList, Value indVar, ValueRange iterArgs, in areAllOpsInTheBlockListInvariant() argument
167 if (!isOpLoopInvariant(op, indVar, iterArgs, opsWithUsers, opsToHoist)) { in areAllOpsInTheBlockListInvariant()
177 bool checkInvarianceOfNestedIfOps(Operation *op, Value indVar, in checkInvarianceOfNestedIfOps() argument
184 if (!areAllOpsInTheBlockListInvariant(ifOp.getThenRegion(), indVar, iterArgs, in checkInvarianceOfNestedIfOps()
189 if (!areAllOpsInTheBlockListInvariant(ifOp.getElseRegion(), indVar, iterArgs, in checkInvarianceOfNestedIfOps()
199 auto indVar = forOp.getInductionVar(); in runOnAffineForOp() local
216 if (isOpLoopInvariant(op, indVar, iterArgs, opsWithUsers, opsToHoist)) { in runOnAffineForOp()