Skip to content

Conversation

@dneto0
Copy link
Collaborator

@dneto0 dneto0 commented May 6, 2025

This avoids the C++ global initializers by making the constructors for OperandDesc and InstructionDesc constexpr. In turn, the std::array static variables over those types can be initialized at compile time, not at runtime.

This also avoids the implied mutex inside the function bodies.

This avoids the C++ global initializers by making the
constructors for OperandDesc and InstructionDesc constexpr.
In turn, the std::array static variables over those types
can be initialized at compile time, not at runtime.

This also avoids the implied mutex inside the function bodies.
@dneto0 dneto0 requested review from alan-baker and dj2 May 6, 2025 22:17
@dneto0 dneto0 enabled auto-merge (squash) May 6, 2025 22:17
@dneto0 dneto0 merged commit 8ede14d into KhronosGroup:main May 7, 2025
23 checks passed
@dneto0 dneto0 deleted the std-array-constexpr branch September 25, 2025 22:02
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.

2 participants