Skip to content

[SPIR-V] Representing SpirvType in Clang's Type System #181

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cassiebeckley
Copy link
Member

This describes an approach to representing SpirvType in Clang.

This describes an approach to representing `SpirvType` in Clang.
Copy link
Collaborator

@s-perron s-perron left a comment

Choose a reason for hiding this comment

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

This seems reasonable to me.

@s-perron s-perron requested a review from llvm-beanz February 27, 2025 14:49
cassiebeckley added a commit to cassiebeckley/llvm-project that referenced this pull request Apr 2, 2025
This implements the design proposed by [Representing SpirvType in
Clang's Type System](llvm/wg-hlsl#181). It
creates `HLSLInlineSpirvType` as a new `Type` subclass, and
`__hlsl_spirv_type` as a new builtin type template to create such a
type.

This new type is lowered to the `spirv.Type` target extension type, as
described in [Target Extension Types for Inline SPIR-V and Decorated
Types](https://github.com/llvm/wg-hlsl/blob/main/proposals/0017-inline-spirv-and-decorated-types.md).
cassiebeckley added a commit to cassiebeckley/llvm-project that referenced this pull request Apr 2, 2025
This implements the design proposed by [Representing SpirvType in
Clang's Type System](llvm/wg-hlsl#181). It
creates `HLSLInlineSpirvType` as a new `Type` subclass, and
`__hlsl_spirv_type` as a new builtin type template to create such a
type.

This new type is lowered to the `spirv.Type` target extension type, as
described in [Target Extension Types for Inline SPIR-V and Decorated
Types](https://github.com/llvm/wg-hlsl/blob/main/proposals/0017-inline-spirv-and-decorated-types.md).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants