thesuhas / orca

WebAssembly Transformation Library for the Component Model
Apache License 2.0
2 stars 0 forks source link

Visitor #3

Closed thesuhas closed 6 days ago

thesuhas commented 1 week ago

Have a visitor that goes into nested locations and visits every instruction. Should be able to visit a start function if present and know that you're in the start function.

Basically traverses the entire .wasm file and visits every instruction. Can be something like DFS?

thesuhas commented 1 week ago

Created a basic visitor that visits every local and instruction inside a given code section. Iterating over code sections instead of functions as functions: Vec<u32> maps each function to a given type index.