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

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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.