Struct cretonne_codegen::ir::MemFlags [] [src]

pub struct MemFlags { /* fields omitted */ }

Flags for memory operations like load/store.

Each of these flags introduce a limited form of undefined behavior. The flags each enable certain optimizations that need to make additional assumptions. Generally, the semantics of a program does not change when a flag is removed, but adding a flag will.

Methods

impl MemFlags
[src]

[src]

Create a new empty set of flags.

[src]

Set a flag bit by name.

Returns true if the flag was found and set, false for an unknown flag name.

[src]

Test if the notrap flag is set.

Normally, trapping is part of the semantics of a load/store operation. If the platform would cause a trap when accessing the effective address, the Cretonne memory operation is also required to trap.

The notrap flag tells Cretonne that the memory is accessible, which means that accesses will not trap. This makes it possible to delete an unused load or a dead store instruction.

[src]

Set the notrap flag.

[src]

Test if the aligned flag is set.

By default, Cretonne memory instructions work with any unaligned effective address. If the aligned flag is set, the instruction is permitted to trap or return a wrong result if the effective address is misaligned.

[src]

Set the aligned flag.

Trait Implementations

impl Clone for MemFlags
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for MemFlags
[src]

impl Debug for MemFlags
[src]

[src]

Formats the value using the given formatter. Read more

impl Hash for MemFlags
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for MemFlags
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for MemFlags
[src]

impl Display for MemFlags
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for MemFlags

impl Sync for MemFlags