Skip to main content

vicis_core/ir/module/preemption_specifier/
mod.rs

1pub mod parser;
2
3pub use parser::parse;
4
5use std::fmt;
6
7#[derive(Clone, Copy, Eq, PartialEq)]
8pub enum PreemptionSpecifier {
9    DsoPreemptable,
10    DsoLocal,
11}
12
13impl fmt::Debug for PreemptionSpecifier {
14    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
15        match self {
16            Self::DsoPreemptable => write!(f, "dso_preemptable"),
17            Self::DsoLocal => write!(f, "dso_local"),
18        }
19    }
20}