Lines Matching defs:padOp
97 auto padOp = t.getDefiningOp<tensor::PadOp>();
98 if (padOp && stt.has_value() && stt->hasEncoding() &&
99 padOp.getSourceType().getEncoding() == stt->getEncoding() &&
101 // Try fusing padOp with zeros.
103 if (matchPattern(padOp.getBody()->getTerminator(),
106 return padOp.getSource();
210 auto padOp = tensor.getDefiningOp<tensor::PadOp>();
211 assert(padOp);
212 if (padOp.getPaddedDims().test(l)) {
213 Value low = unFoldOpIntResult(builder, loc, padOp.getMixedLowPad()[l]);
214 Value high = unFoldOpIntResult(builder, loc, padOp.getMixedHighPad()[l]);