MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / optimize_rewrite

Method optimize_rewrite

crates/parser/src/lib.rs:101–103  ·  view source on GitHub ↗

Returns whether the peephole rewrite optimizer is enabled.

(&self)

Source from the content-addressed store, hash-verified

99
100 /// Returns whether the peephole rewrite optimizer is enabled.
101 pub const fn optimize_rewrite(&self) -> bool {
102 self.optimize_rewrite
103 }
104
105 /// Enable or disable `Nop`/`MergeBarrier` removal after rewriting.
106 pub const fn with_nop_removal_optimization(mut self, enabled: bool) -> Self {

Callers 1

optimize_instructionsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected