Home
last modified time | relevance | path

Searched refs:foldResults (Results 1 – 3 of 3) sorted by relevance

/external/llvm-project/mlir/lib/Transforms/Utils/
DFoldUtils.cpp170 SmallVector<OpFoldResult, 8> foldResults; in tryToFold() local
186 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()
/external/llvm-project/mlir/lib/Transforms/
DSCCP.cpp524 SmallVector<OpFoldResult, 8> foldResults; in visitOperation() local
525 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()
/external/llvm-project/mlir/lib/IR/
DBuilders.cpp419 SmallVector<OpFoldResult, 4> foldResults; in tryFold() local
420 if (failed(op->fold(constOperands, foldResults)) || foldResults.empty()) in tryFold()
429 for (auto &it : llvm::enumerate(foldResults)) { in tryFold()