8000 Typed create buffer_t by zvookin · Pull Request #931 · halide/Halide · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Typed create buffer_t #931

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

Merged
merged 2 commits into from
Sep 8, 2015
Merged

Typed create buffer_t #931

merged 2 commits into from
Sep 8, 2015

Conversation

zvookin
Copy link
Member
@zvookin zvookin commented Sep 8, 2015

Change the second argument to create_buffer_t intrinsics from a byte
size to an Expr where the Type itself is the meaningful
information. This encodes more complete type information which is
needed immediately in the JavaScript branch and will be used
everywhere when we add complete type info to buffer_t.

I chose to replace the elem_size argument isntead of add a new one as
the information is redundant and this is a simpler code change. I
cannot think of a valid situation were elem_size should be allowed to
disagree with the byte size of the Type. In fact, I can see an
argument for elminating elem_size when the type info is added to
buffer_t.

Z Stern added 2 commits September 7, 2015 18:23
size to an Expr where the Type itself is the meaningful
information. This encodes more complete type information which is
needed immediately in the JavaScript branch and will be used
everywhere when we add complete type info to buffer_t.

I chose to replace the elem_size argument isntead of add a new one as
the information is redundant and this is a simpler code change. I
cannot think of a valid situation were elem_size should be allowed to
disagree with the byte size of the Type. In fact, I can see an
argument for elminating elem_size when the type info is added to
buffer_t.
@zvookin
Copy link
Member Author
zvookin commented Sep 8, 2015

All tests pass except introspection and one of the float16 ones, neither of which seem to be related to this change and probably have to do witht eh specific tool chain I'm using. (The float16 failure is due to some linker/debug info thing I think.)

@steven-johnson
Copy link
Contributor

LGTM

zvookin pushed a commit that referenced this pull request Sep 8, 2015
@zvookin zvookin merged commit dfcb1fa into master Sep 8, 2015
@abadams abadams deleted the typed_create_buffer_t branch May 20, 2016 17:34
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.

2 participants
0