[−][src]Struct rustc_codegen_ssa::back::write::OngoingCodegen

pub struct OngoingCodegen<B: ExtraBackendMethods> {
    pub backend: B,
    pub crate_name: Symbol,
    pub metadata: EncodedMetadata,
    pub windows_subsystem: Option<String>,
    pub linker_info: LinkerInfo,
    pub crate_info: CrateInfo,
    pub coordinator_send: Sender<Box<dyn Any + Send>>,
    pub codegen_worker_receive: Receiver<Message<B>>,
    pub shared_emitter_main: SharedEmitterMain,
    pub future: JoinHandle<Result<CompiledModules, ()>>,
    pub output_filenames: Arc<OutputFilenames>,
}

Fields

backend: Bcrate_name: Symbolmetadata: EncodedMetadatawindows_subsystem: Option<String>linker_info: LinkerInfocrate_info: CrateInfocoordinator_send: Sender<Box<dyn Any + Send>>codegen_worker_receive: Receiver<Message<B>>shared_emitter_main: SharedEmitterMainfuture: JoinHandle<Result<CompiledModules, ()>>output_filenames: Arc<OutputFilenames>

Implementations

impl<B: ExtraBackendMethods> OngoingCodegen<B>[src]

pub fn join(
    self,
    sess: &Session
) -> (CodegenResults, FxHashMap<WorkProductId, WorkProduct>)
[src]

pub fn submit_pre_codegened_module_to_llvm(
    &self,
    tcx: TyCtxt<'_>,
    module: ModuleCodegen<B::Module>
)
[src]

pub fn codegen_finished(&self, tcx: TyCtxt<'_>)[src]

pub fn codegen_aborted(self)[src]

Consumes this context indicating that codegen was entirely aborted, and we need to exit as quickly as possible.

This method blocks the current thread until all worker threads have finished, and all worker threads should have exited or be real close to exiting at this point.

pub fn check_for_errors(&self, sess: &Session)[src]

pub fn wait_for_signal_to_codegen_item(&self)[src]

Auto Trait Implementations

impl<B> !RefUnwindSafe for OngoingCodegen<B>

impl<B> !Send for OngoingCodegen<B>

impl<B> !Sync for OngoingCodegen<B>

impl<B> Unpin for OngoingCodegen<B> where
    B: Unpin, 

impl<B> !UnwindSafe for OngoingCodegen<B>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.