Enum llvm_plugin::PreservedAnalyses
source · #[repr(C)]
pub enum PreservedAnalyses {
All,
None,
}
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
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
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 more