Lines Matching refs:dialect
50 static Operation *materializeConstant(Dialect *dialect, OpBuilder &builder, in materializeConstant() argument
57 if (auto *constOp = dialect->materializeConstant(builder, value, type, loc)) { in materializeConstant()
186 for (auto *dialect : it->second) in notifyRemoval() local
187 uniquedConstants.erase(std::make_tuple(dialect, constValue, type)); in notifyRemoval()
199 Value OperationFolder::getOrCreateConstant(OpBuilder &builder, Dialect *dialect, in getOrCreateConstant() argument
213 Operation *constOp = tryGetOrCreateConstant(uniquedConstants, dialect, in getOrCreateConstant()
282 auto *dialect = op->getDialect(); in processFoldResults() local
300 tryGetOrCreateConstant(uniquedConstants, dialect, builder, attrRepl, in processFoldResults()
335 ConstantMap &uniquedConstants, Dialect *dialect, OpBuilder &builder, in tryGetOrCreateConstant() argument
338 auto constKey = std::make_tuple(dialect, value, type); in tryGetOrCreateConstant()
344 if (!(constOp = materializeConstant(dialect, builder, value, type, loc))) in tryGetOrCreateConstant()
349 if (newDialect == dialect) { in tryGetOrCreateConstant()
350 referencedDialects[constOp].push_back(dialect); in tryGetOrCreateConstant()
362 referencedDialects[existingOp].push_back(dialect); in tryGetOrCreateConstant()
367 referencedDialects[constOp].assign({dialect, newDialect}); in tryGetOrCreateConstant()