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

[ir] Add global variables to IR Builder #2240

Merged
merged 6 commits into from
Mar 29, 2021

Conversation

xumingkuan
Copy link
Contributor

Related issue = #2193

This PR adds GlobalPtrStmt and ExternalPtrStmt and related statements to IR Builder. It also adds a test of external ptr as an example of using the external ptr. Maybe we should rename stuff like is_nparray since it's not related to numpy at this level...

The SNode needed by GlobalPtrStmt can only be created by hand using APIs provided in snode.h for now.

[Click here for the format server]


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 && thanks for the tests!

tests/cpp_new/ir/ir_builder_test.cpp Outdated Show resolved Hide resolved
tests/cpp_new/ir/ir_builder_test.cpp Outdated Show resolved Hide resolved
tests/cpp_new/ir/ir_builder_test.cpp Outdated Show resolved Hide resolved
@xumingkuan xumingkuan merged commit ce659ef into taichi-dev:master Mar 29, 2021
@xumingkuan xumingkuan deleted the global branch April 7, 2021 07:21
@xumingkuan xumingkuan mentioned this pull request Apr 13, 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.

3 participants