Refactor PointerFinder into a separate module

This also parameterize the "excluded pointee types" and exposes a
general method for inserting checks on pointers.

This is a preparation for adding a NullCheck that makes use of the same
code.
This commit is contained in:
Bastian Kersting
2024-12-16 14:42:49 +00:00
parent e6f12c8b7d
commit 851322b74d
3 changed files with 271 additions and 159 deletions

View File

@@ -44,6 +44,7 @@ use std::sync::LazyLock;
use pass_manager::{self as pm, Lint, MirLint, MirPass, WithMinOptLevel};
mod check_pointers;
mod cost_checker;
mod cross_crate_inline;
mod deduce_param_attrs;