Enum llvm_plugin::PreservedAnalyses
source · #[repr(C)]pub enum PreservedAnalyses {
All = 0,
None = 1,
}
Expand description
Enum specifying whether analyses on an IR unit are not preserved due to the modification of such unit by a transformation pass.
Variants§
All = 0
This variant hints the pass manager that all the analyses are preserved, so there is no need to re-execute analysis passes.
Use this variant when a transformation pass doesn’t modify some IR unit.
None = 1
This variant hints the pass manager that all the analyses should be re-executed.
Use this variant when a transformation pass modifies some IR unit.
Trait Implementations§
source§impl Clone for PreservedAnalyses
impl Clone for PreservedAnalyses
source§fn clone(&self) -> PreservedAnalyses
fn clone(&self) -> PreservedAnalyses
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for PreservedAnalyses
Auto Trait Implementations§
impl RefUnwindSafe for PreservedAnalyses
impl Send for PreservedAnalyses
impl Sync for PreservedAnalyses
impl Unpin for PreservedAnalyses
impl UnwindSafe for PreservedAnalyses
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more