Skip to content

[SPIR-V] Implement SpirvType and SpirvOpaqueType - #6156

Merged
Cassandra Beckley (cassiebeckley) merged 13 commits into
microsoft:mainfrom
cassiebeckley:spirv-type-intrinsic
Apr 15, 2024
Merged

Cassandra Beckley (cassiebeckley) merged 13 commits into
microsoft:mainfrom
cassiebeckley:spirv-type-intrinsic

Conversation

@cassiebeckley

Copy link
Copy Markdown
Contributor

Implements hlsl-specs proposal 0011, adding vk::SpirvType and vk::SpirvOpaqueType templates which allow users to define and use SPIR-V level types.

Comment thread tools/clang/lib/AST/ASTContextHLSL.cpp Resolved
Comment thread tools/clang/lib/SPIRV/SpirvContext.cpp Resolved
Comment thread tools/clang/lib/SPIRV/ConstEvaluator.h Resolved

@s-perron Steven Perron (s-perron) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Generally look okay to me. I have a request for a few extra comments, and if you can split out the ConstEvaluator refactor into a separate PR, that would be nice.

Also Chris B (@llvm-beanz) should look at this as well (or someone else for MS) since you are making significant chagnes to SEMA.

Cassandra Beckley (cassiebeckley) added a commit to cassiebeckley/DirectXShaderCompiler that referenced this pull request Jan 24, 2024
This refactor is split out from microsoft#6156, which needs to use these methods
in LowerTypeVisitor.
Nathan Gauër (Keenuts) pushed a commit that referenced this pull request Jan 29, 2024
This moves functions for evaluating constant expressions and translating
LLVM AP types to SPIR-V constants into a new class. These functions need
to be used from LowerTypeVisitor in #6156, so I am factoring them out to
avoid duplication.
Implements hlsl-specs proposal 0011, adding `vk::SpirvType` and
`vk::SpirvOpaqueType` templates which allow users to define and use
SPIR-V level types.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM % a review from someone at MS

Comment thread tools/clang/lib/Sema/SemaTemplate.cpp Resolved
Comment thread utils/hct/gen_intrin_main.txt Resolved
@cassiebeckley

Copy link
Copy Markdown
Contributor Author

Natalie Chouinard (@sudonatalie) Chris B (@llvm-beanz) I've updated this PR based on the design changes to 0011.

@sudonatalie

Copy link
Copy Markdown
Collaborator

LGTM

Chris B (@llvm-beanz) Can you take another look?

@llvm-beanz Chris B (llvm-beanz) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sorry for the delay in reviewing this. It looks great to me. Thank you!

@cassiebeckley
Cassandra Beckley (cassiebeckley) merged commit d60dffe into microsoft:main Apr 15, 2024
@cassiebeckley
Cassandra Beckley (cassiebeckley) deleted the spirv-type-intrinsic branch April 15, 2024 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants