def _finalize(self, iet, parameters): iet = iet_insert_decls(iet, parameters) iet = iet_insert_casts(iet, parameters) # Now do the same to each ElementalFunction for k, (root, local) in list(self._func_table.items()): if local: body = iet_insert_decls(root.body, root.parameters) body = iet_insert_casts(body, root.parameters) self._func_table[k] = MetaCall(root._rebuild(body=body), True) return iet
def _finalize(self, iet, parameters): iet = iet_insert_decls(iet, parameters) iet = iet_insert_casts(iet, parameters) # Now do the same to each ElementalFunction for k, (root, local) in list(self._func_table.items()): if local: body = iet_insert_decls(root.body, root.parameters) body = iet_insert_casts(body, root.parameters) self._func_table[k] = MetaCall(root._rebuild(body=body), True) return iet