This is an archive of the discontinued LLVM Phabricator instance.

[SPIR-V] Support SPV_INTEL_arbitrary_precision_integers_extension and add misc utilities for other extensions
ClosedPublic

Authored by mpaszkowski on Aug 24 2023, 11:57 AM.

Details

Summary

This patch adds misc utilities for enabling SPIR-V extensions (getting capabilities/symbolic operands required by a given extension, looking up enabled extensions), CLI interface, and support for SPV_INTEL_arbitrary_precision_integers_extension.

Diff Detail

Event Timeline

mpaszkowski created this revision.Aug 24 2023, 11:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2023, 11:57 AM
mpaszkowski requested review of this revision.Aug 24 2023, 11:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2023, 11:57 AM

I will rebase the patch on top of @pmatos change adding SPV_INTEL_optnone by the end of the day.

In general it looks good, but you need to update the patch (I tried to apply it and failed).

Rebased on top of @pmatos patch, added CLI option for SPV_INTEL_optnone, and moved the SPV_INTEL_optnone test to /extensions/. @iliya-diyachkov: Do you think we could have the patch merged now?

iliya-diyachkov accepted this revision.Sep 7 2023, 12:09 PM

Do you think we could have the patch merged now?

I think the it is fine but there is one nit: if you noticeably change the file, it's better to rename it in a separate patch so we keep its history (e.g. optnone.ll).

This revision is now accepted and ready to land.Sep 7 2023, 12:09 PM
llvm/test/CodeGen/SPIRV/extensions/SPV_INTEL_optnone.ll