Skip to main content

Module get_mir

Module get_mir 

Source
Expand description

Various utilities to load MIR. Allow to easily load the MIR code generated by a specific pass.

Re-exportsยง

use std::panic; ๐Ÿ”’
use std::panic; ๐Ÿ”’
use crate::frontend as front; ๐Ÿ”’
use crate::frontend::UnderOwnerState; ๐Ÿ”’
use rustc_middle::mir; ๐Ÿ”’
use rustc_middle::ty; ๐Ÿ”’
use charon_lib::options::MirLevel; ๐Ÿ”’
use super::translate_ctx::ItemTransCtx; ๐Ÿ”’
use charon_lib::ast::*; ๐Ÿ”’

Functionsยง

get_mir_for_def_id_and_level ๐Ÿ”’
Query the MIR for a function at a specific level. Return None in the case of a foreign body with no MIR available.