This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Make LMUL field in VTYPE contiguous.
ClosedPublic

Authored by HsiangKai on Dec 20 2020, 11:20 PM.

Details

Summary

Upgrade RISC-V V extension to v1.0-08a0b46.
Update the VTYPE encoding. Make LMUL encoding in a contiguous field.

Diff Detail

Event Timeline

HsiangKai created this revision.Dec 20 2020, 11:20 PM
HsiangKai requested review of this revision.Dec 20 2020, 11:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 20 2020, 11:20 PM
Herald added a subscriber: MaskRay. · View Herald Transcript
This revision is now accepted and ready to land.Dec 20 2020, 11:51 PM
craig.topper added inline comments.Dec 20 2020, 11:53 PM
llvm/lib/Target/RISCV/Utils/RISCVBaseInfo.h
379 ↗(On Diff #313024)

I don't think the 0x7 on VLMULBits is necessary. We don't mask VSEWBits here.

frasercrmck accepted this revision.Dec 21 2020, 2:44 AM

LGTM but, nit, "contiguous" sounds more appropriate here.

HsiangKai updated this revision to Diff 313094.Dec 21 2020, 6:07 AM
HsiangKai retitled this revision from [RISCV] Make LMUL field in VTYPE continuous. to [RISCV] Make LMUL field in VTYPE contiguous..
HsiangKai edited the summary of this revision. (Show Details)