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

[SPIR-V] Move constant evaluation code into a new class #6195

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

cassiebeckley
Copy link
Collaborator

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.

This refactor is split out from microsoft#6156, which needs to use these methods
in LowerTypeVisitor.
Copy link
Collaborator

@Keenuts Keenuts left a comment

Choose a reason for hiding this comment

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

LGTM, just the comments part.

tools/clang/lib/SPIRV/SpirvEmitter.h Show resolved Hide resolved
@Keenuts Keenuts merged commit 0ec50f6 into microsoft:main Jan 29, 2024
12 checks passed
@cassiebeckley cassiebeckley deleted the const-evaluator-refactor branch January 29, 2024 10:14
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.

3 participants