Home
last modified time | relevance | path

Searched refs:operandConstants (Results 1 – 5 of 5) sorted by relevance

/external/llvm-project/mlir/lib/Transforms/Utils/
DFoldUtils.cpp169 SmallVector<Attribute, 8> operandConstants; in tryToFold() local
181 operandConstants.assign(op->getNumOperands(), Attribute()); in tryToFold()
183 matchPattern(op->getOperand(i), m_Constant(&operandConstants[i])); in tryToFold()
186 if (failed(op->fold(operandConstants, foldResults))) in tryToFold()
/external/llvm-project/mlir/lib/IR/
DAffineMap.cpp238 AffineMap::constantFold(ArrayRef<Attribute> operandConstants, in constantFold() argument
242 partialConstantFold(operandConstants, &integers); in constantFold()
257 AffineMap::partialConstantFold(ArrayRef<Attribute> operandConstants, in partialConstantFold() argument
259 assert(getNumInputs() == operandConstants.size()); in partialConstantFold()
262 AffineExprConstantFolder exprFolder(getNumDims(), operandConstants); in partialConstantFold()
/external/llvm-project/mlir/lib/Transforms/
DSCCP.cpp477 SmallVector<Attribute, 8> operandConstants; in visitOperation() local
478 operandConstants.reserve(op->getNumOperands()); in visitOperation()
484 operandConstants.push_back(operandLattice.getConstant()); in visitOperation()
489 visitTerminatorOperation(op, operandConstants); in visitOperation()
504 return visitRegionOperation(op, operandConstants); in visitOperation()
526 if (failed(op->fold(operandConstants, foldResults))) in visitOperation()
/external/llvm-project/mlir/include/mlir/IR/
DAffineMap.h148 LogicalResult constantFold(ArrayRef<Attribute> operandConstants,
158 partialConstantFold(ArrayRef<Attribute> operandConstants,
/external/llvm-project/mlir/lib/Dialect/Affine/IR/
DAffineOps.cpp1555 SmallVector<Attribute, 8> operandConstants; in foldLoopBounds() local
1561 operandConstants.push_back(operandCst); in foldLoopBounds()
1569 if (failed(boundMap.constantFold(operandConstants, foldedResults))) in foldLoopBounds()