parameters: (self, ll_module)
docstring: Internal: run function-level optimizations inside *ll_module*.
docstring_summary: Internal: run function-level optimizations inside *ll_module*.
docstring_tokens: Internal : run function - level optimizations inside * ll_module * .
function: def _optimize_functions(self, ll_module):
          """
          Internal: run function-level optimizations inside *ll_module*.
          """
          # Enforce data layout to enable layout-specific optimizations
          ll_module.data_layout = self._codegen._data_layout
          with self._codegen._function_pass_manager(ll_module) as fpm:
              # Run function-level optimizations to reduce memory usage and improve
              # module-level optimization.
              for func in ll_module.functions:
                  fpm.initialize()
                  fpm.run(func)
                  fpm.finalize()
function_tokens: def _optimize_functions ( self , ll_module ) : # Enforce data layout to enable layout-specific optimizations ll_module . data_layout = self . _codegen . _data_layout with self . _codegen . _function_pass_manager ( ll_module ) as fpm : # Run function-level optimizations to reduce memory usage and improve # module-level optimization. for func in ll_module . functions : fpm . initialize ( ) fpm . run ( func ) fpm . finalize ( )