Skip to content

Add SPV_ALTERA_arbitrary_precision_integers#3606

Merged
MrSidims merged 1 commit intoKhronosGroup:mainfrom
MrSidims:SPV_ALTERA_arbitrary_precision_integers
Feb 26, 2026
Merged

Add SPV_ALTERA_arbitrary_precision_integers#3606
MrSidims merged 1 commit intoKhronosGroup:mainfrom
MrSidims:SPV_ALTERA_arbitrary_precision_integers

Conversation

@MrSidims
Copy link
Contributor

When both SPV_ALTERA_arbitrary_precision_integers and SPV_INTEL_arbitrary_precision_integers extensions are enabled - INTEL's version takes priority.

Addresses
#3566

When both SPV_ALTERA_arbitrary_precision_integers and
SPV_INTEL_arbitrary_precision_integers extensions are enabled - INTEL's
version takes priority.

Addresses
KhronosGroup#3566
@MrSidims MrSidims force-pushed the SPV_ALTERA_arbitrary_precision_integers branch from 180f1d1 to 08b93cf Compare February 21, 2026 23:47
Comment on lines +147 to +149
if (Ext == ExtensionID::SPV_INTEL_arbitrary_precision_integers)
return Opts.isAllowedToUseExtension(
ExtensionID::SPV_ALTERA_arbitrary_precision_integers);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also do the reverse? I.e. allowing INTEL when Ext is ALTERA?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, the reason this change was added is due to a required extension map in LLVMIntrinsicMapEntries. We don't want to do any expansion for i2/i4 when either SPV_INTEL_arbitrary_precision_integers or SPV_ALTERA_arbitrary_precision_integers is enabled. I don't want to rewrite a map to a multi-map, so added this utility function.

@MrSidims MrSidims merged commit b30f628 into KhronosGroup:main Feb 26, 2026
7 of 9 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