This is an archive of the discontinued LLVM Phabricator instance.

[11/11][POC][Clang][RISCV] Define vset for tuple type
ClosedPublic

Authored by eopXD on Apr 10 2023, 12:43 AM.

Details

Summary

For the cover letter of this patch-set, please checkout D146872.

Depends on D147916.

This is the 11th patch of the patch-set.

This patch is a proof-of-concept and will be extended to full coverage
in the future. Only vset for tuple type of NF=2, EEW=32, LMUL=1 is
defined now.

Diff Detail

Event Timeline

eopXD created this revision.Apr 10 2023, 12:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2023, 12:43 AM
eopXD requested review of this revision.Apr 10 2023, 12:43 AM
eopXD edited the summary of this revision. (Show Details)Apr 10 2023, 1:00 AM
eopXD retitled this revision from [11/11][POC][Clang] Define vset for tuple type to [11/11][POC][Clang][RISCV] Define vset for tuple type.
craig.topper added inline comments.Apr 18 2023, 4:57 PM
clang/include/clang/Basic/riscv_vector.td
2763

Does SemaChecking already guarantee this?

eopXD updated this revision to Diff 516341.Apr 24 2023, 3:19 AM

Add test case for out-of-range access and guard vset correctly under SemaChecking.cpp.

eopXD marked an inline comment as done.Apr 24 2023, 3:19 AM
eopXD edited the summary of this revision. (Show Details)May 17 2023, 1:43 AM
eopXD updated this revision to Diff 522953.May 17 2023, 1:54 AM

Rebase and resolve CI failure.

evandro removed a subscriber: evandro.May 17 2023, 3:51 PM
craig.topper added inline comments.May 18 2023, 6:34 PM
clang/include/clang/Basic/riscv_vector.td
2759

Drop this assert

2763

Does this min do anything?

I didn't think about it in the previous patch, but if you're trying to clip it should be std::min(Index, MaxIndex-1)

eopXD updated this revision to Diff 523645.May 18 2023, 8:23 PM
eopXD marked 2 inline comments as done.

Address comments from Craig.

This revision is now accepted and ready to land.May 18 2023, 9:40 PM
eopXD updated this revision to Diff 523867.May 19 2023, 11:06 AM

Add unsigned cast to eliminate compile warning.

This revision was landed with ongoing or failed builds.May 22 2023, 4:32 AM
This revision was automatically updated to reflect the committed changes.