| 203 | } |
| 204 | |
| 205 | void IRGenerationContext::addToInternalDispatch(FunctionDefinition const& _function) |
| 206 | { |
| 207 | FunctionType const* functionType = TypeProvider::function(_function, FunctionType::Kind::Internal); |
| 208 | solAssert(functionType); |
| 209 | |
| 210 | YulArity arity = YulArity::fromType(*functionType); |
| 211 | DispatchQueue& dispatchQueue = m_internalDispatchMap[arity]; |
| 212 | if (ranges::find(dispatchQueue, &_function) == ranges::end(dispatchQueue)) |
| 213 | { |
| 214 | dispatchQueue.push_back(&_function); |
| 215 | enqueueFunctionForCodeGeneration(_function); |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | |
| 220 | void IRGenerationContext::internalFunctionCalledThroughDispatch(YulArity const& _arity) |
no test coverage detected