For each node in "graph", if "lib" indicates that the node is a function call, inline the function body. Returns true if at least one node is inlined. This routine goes through "graph" nodes once and applies the inlining. The caller may decide to apply the inlining on "graph" multiple times by calling ExpandInlineFunctions a few times. Function calls that can't be safely inlined into the graph (
| 355 | // FunctionLibraryDefinition and FunctionDefToBodyHelper to implement this (see |
| 356 | // lower_function_call.cc). |
| 357 | inline bool ExpandInlineFunctions(FunctionLibraryRuntime* lib, Graph* graph) { |
| 358 | return ExpandInlineFunctions(lib, graph, ExpandInlineFunctionsOptions()); |
| 359 | } |
| 360 | |
| 361 | // Extracts function name and attributes from `call_def` |
| 362 | // `call_def` can be a native function call (where the op type is the function |