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

[opaque pointers 2] Removed usage of getElementPointerType from opt.cpp #2360

Merged
merged 3 commits into from Sep 6, 2022

Conversation

aneshlya
Copy link
Collaborator

This change prepares ISPC code base to support opaque pointers mode.

  1. removes usage of getElementPointerType from opt.cpp (also hidden in PTYPE macro)
    NOTE: there is a bunch of functions related to the processing of our pseudo gathers/pseudo scatters intrinsics where the base pointer element type is always int8. There is no way to get it from the function signature in opaque mode, so I'm keeping it in the constructors of helper structures.
  2. aligns common pointer calculation for CPU and Xe targets (before we calculated the base before the common pointer due to limitations in VC BE, now it's fine)

@aneshlya aneshlya changed the title WIP: [opaque pointers 2] Removed usage of getElementPointerType from opt.cpp [opaque pointers 2] Removed usage of getElementPointerType from opt.cpp Aug 26, 2022
@dbabokin
Copy link
Collaborator

LGTM!

@aneshlya aneshlya merged commit 8477bb5 into ispc:main Sep 6, 2022
@aneshlya aneshlya deleted the opaque_ptrs_opt branch September 1, 2023 00:08
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.

None yet

2 participants