Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WASM] Add set_root() for each WASM module #2429

Merged
merged 13 commits into from
Jun 24, 2021
Merged

Conversation

squarefk
Copy link
Contributor

@squarefk squarefk commented Jun 15, 2021

Related issue = LAN-42

The generated WASM module now ships with a set_root() function. This function sets WASM's linear memory so that LLVMRuntime and root buffer are placed at the right place.

taichi/backends/wasm/codegen_wasm.cpp Outdated Show resolved Hide resolved
taichi/backends/wasm/codegen_wasm.cpp Outdated Show resolved Hide resolved
Copy link
Member

@k-ye k-ye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nits

taichi/backends/wasm/codegen_wasm.cpp Outdated Show resolved Hide resolved
taichi/backends/wasm/codegen_wasm.cpp Outdated Show resolved Hide resolved
taichi/backends/wasm/codegen_wasm.cpp Show resolved Hide resolved
@squarefk
Copy link
Contributor Author

/format

taichi/backends/wasm/codegen_wasm.cpp Outdated Show resolved Hide resolved
taichi/backends/wasm/codegen_wasm.cpp Show resolved Hide resolved
taichi/backends/wasm/codegen_wasm.cpp Outdated Show resolved Hide resolved
@squarefk
Copy link
Contributor Author

/format

Copy link
Member

@k-ye k-ye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@k-ye
Copy link
Member

k-ye commented Jun 23, 2021

/format

@squarefk
Copy link
Contributor Author

/format

@k-ye k-ye changed the title [WASM] Clean up codegen_wasm.cpp and add get_root() into each wasm module [WASM] Add set_root() for each WASM module Jun 24, 2021
@k-ye k-ye merged commit 030998f into taichi-dev:master Jun 24, 2021
@Leonz5288 Leonz5288 mentioned this pull request Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants