Skip to content

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

Merged
Nathan Gauër (Keenuts) merged 2 commits into
microsoft:mainfrom
cassiebeckley:const-evaluator-refactor
Jan 29, 2024
Merged

Nathan Gauër (Keenuts) merged 2 commits into
microsoft:mainfrom
cassiebeckley:const-evaluator-refactor

Conversation

@cassiebeckley

Copy link
Copy Markdown
Contributor

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.

@Keenuts Nathan Gauër (Keenuts) 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.

LGTM, just the comments part.

Comment thread tools/clang/lib/SPIRV/SpirvEmitter.h Resolved
@Keenuts
Nathan Gauër (Keenuts) merged commit 0ec50f6 into microsoft:main Jan 29, 2024
@cassiebeckley
Cassandra Beckley (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