Searched refs:foldResults (Results 1 – 3 of 3) sorted by relevance
170 SmallVector<OpFoldResult, 8> foldResults; in tryToFold() local186 if (failed(op->fold(operandConstants, foldResults))) in tryToFold()190 if (foldResults.empty()) in tryToFold()192 assert(foldResults.size() == op->getNumResults()); in tryToFold()208 assert(!foldResults[i].isNull() && "expected valid OpFoldResult"); in tryToFold()211 if (auto repl = foldResults[i].dyn_cast<Value>()) { in tryToFold()218 Attribute attrRepl = foldResults[i].get<Attribute>(); in tryToFold()
524 SmallVector<OpFoldResult, 8> foldResults; in visitOperation() local525 foldResults.reserve(op->getNumResults()); in visitOperation()526 if (failed(op->fold(operandConstants, foldResults))) in visitOperation()532 if (foldResults.empty()) { in visitOperation()539 assert(foldResults.size() == op->getNumResults() && "invalid result size"); in visitOperation()541 for (unsigned i = 0, e = foldResults.size(); i != e; ++i) { in visitOperation()545 OpFoldResult foldResult = foldResults[i]; in visitOperation()
419 SmallVector<OpFoldResult, 4> foldResults; in tryFold() local420 if (failed(op->fold(constOperands, foldResults)) || foldResults.empty()) in tryFold()429 for (auto &it : llvm::enumerate(foldResults)) { in tryFold()