use ConstExt
rustc_type_ir
rustc_codegen_ssa
rustc_mir_transform
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.