This is an archive of the discontinued LLVM Phabricator instance.

[SPIRV] Fix bug in emitting GLSL ext inst names
ClosedPublic

Authored by sudonatalie on Aug 30 2023, 2:12 PM.

Details

Summary

Lookup extended instruction numbers in the given instruction set so that
correct names are now emitted for GLSL.std.450 instructions as well as
OpenCL.std.

Add a single test to verify correct abs intrinsic names are emitted when
targetting logical SPIR-V.

Depends on D156424, D156049

Diff Detail

Event Timeline

sudonatalie created this revision.Aug 30 2023, 2:12 PM
sudonatalie published this revision for review.Aug 30 2023, 2:16 PM
sudonatalie added reviewers: mpaszkowski, Keenuts.
Herald added a project: Restricted Project. · View Herald Transcript
Keenuts accepted this revision.EditedAug 31 2023, 2:21 AM

Thanks, LGTM (not an owner)
(I'm assuming OpenCL intrinsic generation was already tested before this change)

This revision is now accepted and ready to land.Aug 31 2023, 2:21 AM

Thanks, LGTM (not an owner)
(I'm assuming OpenCL intrinsic generation was already tested before this change)

Yes: https://github.com/llvm/llvm-project/blob/main/llvm/test/CodeGen/SPIRV/llvm-intrinsics/abs.ll

Ping @mpaszkowski

Can you take a look at this change as well? Since this patch doesn't have a review from a committer it isn't officially accepted to land yet.

This revision was automatically updated to reflect the committed changes.