Skip to content

Support enum class in struct-backed type#133

Merged
nhaehnle merged 1 commit into
GPUOpen-Drivers:devfrom
GinShio:enum-struct-type
Dec 9, 2025
Merged

Support enum class in struct-backed type#133
nhaehnle merged 1 commit into
GPUOpen-Drivers:devfrom
GinShio:enum-struct-type

Conversation

@GinShio
Copy link
Copy Markdown
Contributor

@GinShio GinShio commented Nov 4, 2025

We may use enumeration class in struct backed type, which makes struct type more semantic. However, we need to force these values ​​to be cast from integers to the target type.

Comment thread lib/TableGen/DialectType.cpp Outdated
We may use enumeration class in struct backed type, which makes struct type more
semantic. However, we need to force these values to be cast from integers to the
target type.
Copy link
Copy Markdown
Member

@nhaehnle nhaehnle left a comment

Choose a reason for hiding this comment

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

LGTM

@GinShio
Copy link
Copy Markdown
Contributor Author

GinShio commented Dec 9, 2025

Hi members, sorry, I cannot merge this...

@nhaehnle nhaehnle merged commit f6f1a2e into GPUOpen-Drivers:dev Dec 9, 2025
12 checks passed
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.

3 participants