Home
last modified time | relevance | path

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

/external/llvm-project/mlir/lib/Transforms/Utils/
DFoldUtils.cpp251 auto *&constInst = uniquedConstants[constKey]; in tryGetOrCreateConstant() local
252 if (constInst) in tryGetOrCreateConstant()
253 return constInst; in tryGetOrCreateConstant()
256 if (!(constInst = materializeConstant(dialect, builder, value, type, loc))) in tryGetOrCreateConstant()
260 auto *newDialect = constInst->getDialect(); in tryGetOrCreateConstant()
262 referencedDialects[constInst].push_back(dialect); in tryGetOrCreateConstant()
263 return constInst; in tryGetOrCreateConstant()
273 constInst->erase(); in tryGetOrCreateConstant()
275 return constInst = existingOp; in tryGetOrCreateConstant()
279 referencedDialects[constInst].assign({dialect, newDialect}); in tryGetOrCreateConstant()
[all …]