Skip to content

Conversation

@bader
Copy link
Contributor

@bader bader commented Mar 3, 2021

Reverts #3154

… versions when rounding up the range (#3154)"

This reverts commit 496f9a0.
@bader bader requested review from a team, elizabethandrews and premanandrao as code owners March 3, 2021 10:00
@bader bader requested a review from alexbatashev March 3, 2021 10:00
Copy link
Contributor

@elizabethandrews elizabethandrews left a comment

Choose a reason for hiding this comment

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

@bader is this patch being reverted because of SemaSYCL/num_simd_work_items_device.cpp test failure?

@bader
Copy link
Contributor Author

bader commented Mar 3, 2021

@bader is this patch being reverted because of SemaSYCL/num_simd_work_items_device.cpp test failure?

Yes.

@bader bader merged commit 677a7ea into sycl Mar 3, 2021
@bader bader deleted the revert-3154-iwgo8 branch March 3, 2021 11:21
jsji pushed a commit that referenced this pull request Sep 6, 2025
For e.g. a `foo(image2d_t %img)` function type, clang produces

    @foo(target("spirv.Image", void, 1, 0, 0, 0, 0, 0, 0) %img)

but after OpenCL -> SPIR-V translation, the SPIR-V reader would
translate it into

    @foo(ptr addrspace(1) %img)

Preserve image argument types as `TargetExtType`s when translating to an
OpenCL target environment. `TargetExtType`s are already emitted for
SPIR-V friendly IR.

Make sure not to mangle the `TargetExtType` argument in the usual way,
but continue using the special type mangling emitted by clang (e.g.
`ocl_image1d_rw`).

Contributes to
KhronosGroup/SPIRV-LLVM-Translator#3287

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@2feb3e3eafc4855
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