Struct cretonne_module::DataContext [] [src]

pub struct DataContext { /* fields omitted */ }

This is to data objects what cretonne_codegen::Context is to functions.

Methods

impl DataContext
[src]

[src]

Allocate a new context.

[src]

Clear all data structures in this context.

[src]

Define a zero-initialized object with the given size.

[src]

Define a zero-initialized object with the given size.

TODO: Can we avoid a Box here?

[src]

Declare an external function import.

[src]

Declares a global variable import.

TODO: Rename to import_data?

[src]

Write the address of func into the data at offset offset.

[src]

Write the address of data into the data at offset offset.

[src]

Reference the initializer data.

Trait Implementations

Auto Trait Implementations

impl Send for DataContext

impl Sync for DataContext