This is an archive of the discontinued LLVM Phabricator instance.

[clang][SVE] Rename isVLSTBuiltinType, NFC
ClosedPublic

Authored by jacquesguan on Aug 15 2023, 7:12 PM.

Details

Summary

Since we also have VLST for rvv now, it is not clear to keep using isVLSTBuiltinType, so I added prefix SVE to it.

Diff Detail

Event Timeline

jacquesguan created this revision.Aug 15 2023, 7:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 15 2023, 7:12 PM
Herald added a subscriber: psnobl. · View Herald Transcript
jacquesguan requested review of this revision.Aug 15 2023, 7:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 15 2023, 7:12 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
Matt added a subscriber: Matt.Aug 15 2023, 8:17 PM
paulwalker-arm accepted this revision.Aug 16 2023, 8:47 AM

I'd hope there are common code paths where isVLSTBuiltinType would still be useful but I guess this step is required to make that happen anyway.

If you permit a minor request can the new name please be isSveVLSBuiltinType to match the case used by the related getSveEltType function and the extra T in the old name has always bugged me.

This revision is now accepted and ready to land.Aug 16 2023, 8:47 AM

rename to isSveVLSBuiltinType.

I'd hope there are common code paths where isVLSTBuiltinType would still be useful but I guess this step is required to make that happen anyway.

If you permit a minor request can the new name please be isSveVLSBuiltinType to match the case used by the related getSveEltType function and the extra T in the old name has always bugged me.

Yes, I am working on a patch to implement clang vector language support for rvv just like we have on sve. Most part we could reuse isVLSTBuiltinType that contains VLST of both sve and rvv.

This revision was automatically updated to reflect the committed changes.