Page MenuHomePhabricator

[RISCV][Clang] Add all RVV Mask intrinsic functions.
ClosedPublic

Authored by khchen on Apr 8 2021, 8:52 AM.

Details

Summary
  1. Redefine vpopc and vfirst IR intrinsic so it could adapt on

clang tablegen generator which always appends a type for vl
in IntrinsicType of clang codegen.

  1. Remove c type transformer and add u and l for unsigned long

and long type.

Authored-by: Roger Ferrer Ibanez <rofirrim@gmail.com>
Co-Authored-by: Zakk Chen <zakk.chen@sifive.com>

Diff Detail

Event Timeline

khchen created this revision.Apr 8 2021, 8:52 AM
khchen requested review of this revision.Apr 8 2021, 8:52 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 8 2021, 8:52 AM

LGTM other than that inheritance question

clang/include/clang/Basic/riscv_vector.td
247

Can we use inheritance here?

khchen updated this revision to Diff 336452.Apr 9 2021, 7:41 AM

address Craig's comment.

This revision is now accepted and ready to land.Apr 9 2021, 9:38 AM
This revision was landed with ongoing or failed builds.Apr 11 2021, 7:30 PM
This revision was automatically updated to reflect the committed changes.