Home
last modified time | relevance | path

Searched refs:constValue (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Transforms/Utils/
H A DFoldUtils.cpp113 bool OperationFolder::insertKnownConstant(Operation *op, Attribute constValue) { in insertKnownConstant() argument
125 if (!constValue) { in insertKnownConstant()
126 matchPattern(op, m_Constant(&constValue)); in insertKnownConstant()
127 assert(constValue && "expected `op` to be a constant"); in insertKnownConstant()
134 expectedValue == constValue && in insertKnownConstant()
143 op->getDialect(), constValue, *op->result_type_begin())]; in insertKnownConstant()
176 Attribute constValue; in notifyRemoval() local
177 matchPattern(op, m_Constant(&constValue)); in notifyRemoval()
178 assert(constValue); in notifyRemoval()
187 uniquedConstants.erase(std::make_tuple(dialect, constValue, type)); in notifyRemoval()
H A DGreedyPatternRewriteDriver.cpp138 Attribute constValue; in simplify() local
139 if (matchPattern(op, m_Constant(&constValue))) in simplify()
140 if (!folder.insertKnownConstant(op, constValue)) in simplify()
/llvm-project-15.0.7/mlir/include/mlir/Transforms/
H A DFoldUtils.h56 bool insertKnownConstant(Operation *op, Attribute constValue = {});
/llvm-project-15.0.7/flang/lib/Semantics/
H A Druntime-type-info.cpp96 if (auto constValue{evaluate::ToInt64(expr)}) { in GetValue() local
97 return PackageIntValue(explicitEnum_, *constValue); in GetValue()