Demonstrate how to add RISC-V V builtins and lower them to IR intrinsics for V extension.
Authored-by: Roger Ferrer Ibanez <rofirrim@gmail.com>
Co-Authored-by: Hsiangkai Wang <kai.wang@sifive.com>
Paths
| Differential D93446
[RISCV] Add vadd with mask and without mask builtin. ClosedPublic Authored by HsiangKai on Dec 16 2020, 11:38 PM.
Details Summary Demonstrate how to add RISC-V V builtins and lower them to IR intrinsics for V extension. Authored-by: Roger Ferrer Ibanez <rofirrim@gmail.com>
Diff Detail
Event TimelineHerald added subscribers: NickHung, apazos, sameer.abuasal and 22 others. · View Herald TranscriptDec 16 2020, 11:38 PM HsiangKai added a parent revision: D92715: [Clang][RISCV] Define RISC-V V builtin types.Dec 16 2020, 11:39 PM
Comment Actions D95016 focuses on the Clang RVV builtin generator and it depends on this commit. I know it is clumsy to list the combinations for vadd plainly, but it is a simple way to demonstrate how to add RVV builtins in Clang. Could we accept this patch and D92715 first if there is no concern about these two patches?
HsiangKai added inline comments.
This revision is now accepted and ready to land.Feb 23 2021, 2:28 PM Closed by commit rG1a35a1b07486: [RISCV] Add vadd with mask and without mask builtin. (authored by HsiangKai). · Explain WhyFeb 23 2021, 3:59 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 325925 clang/include/clang/Basic/BuiltinsRISCV.def
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Basic/TargetBuiltins.h
clang/include/clang/Sema/Sema.h
clang/include/clang/module.modulemap
clang/lib/Basic/Targets/RISCV.h
clang/lib/Basic/Targets/RISCV.cpp
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/RISCV/vadd.c
|
Need copyright header