MCPcopy Create free account
hub / github.com/argotorg/solidity / visit

Method visit

libyul/optimiser/StackToMemoryMover.cpp:306–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306void StackToMemoryMover::visit(Expression& _expression)
307{
308 ASTModifier::visit(_expression);
309 if (Identifier* identifier = std::get_if<Identifier>(&_expression))
310 if (auto offset = m_memoryOffsetTracker(identifier->name))
311 _expression = generateMemoryLoad(m_context.dialect, identifier->debugData, *offset);
312}
313
314std::optional<LiteralValue> StackToMemoryMover::VariableMemoryOffsetTracker::operator()(YulName const& _variable) const
315{

Callers

nothing calls this directly

Calls 1

generateMemoryLoadFunction · 0.85

Tested by

no test coverage detected