def get_defined_functions(self):
        """
        Get all functions defined in the library.  The library must have
        been finalized.
        """
        mod = self._final_module
        for fn in mod.functions:
            if not fn.is_declaration:
                yield fn

        Get all functions defined in the library.  The library must have
        been finalized.
        
numba/core/codegen.py