Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24687>
progress
} {}
nir.inline(lib_clc);
- nir.remove_non_entrypoints();
+ nir.cleanup_functions();
// that should free up tons of memory
nir.sweep_mem();
unsafe { nir_remove_non_entrypoints(self.nir.as_ptr()) };
}
+ pub fn cleanup_functions(&mut self) {
+ unsafe { nir_cleanup_functions(self.nir.as_ptr()) };
+ }
+
pub fn variables(&mut self) -> ExecListIter<nir_variable> {
ExecListIter::new(
&mut unsafe { self.nir.as_mut() }.variables,