This patch makes the builtin operand order match the C operand order
for all intrinsics. With this we can use clang_builtin_alias for
all overloaded intrinsics.
This should further reduce the test time for vector intrinsics.
Paths
| Differential D101700
[RISCV] Reorder masked builtin operands. Use clang_builtin_alias for all overloaded vector builtins. ClosedPublic Authored by craig.topper on May 1 2021, 2:13 PM.
Details Summary This patch makes the builtin operand order match the C operand order This should further reduce the test time for vector intrinsics.
Diff Detail
Event TimelineHerald added subscribers: StephenFan, vkmr, dexonsmith and 23 others. · View Herald TranscriptMay 1 2021, 2:13 PM
craig.topper retitled this revision from [RISCV] Reoreder masked builtin operands. Use clang_builtin_alias for all overloaded vector builtins. to [RISCV] Reorder masked builtin operands. Use clang_builtin_alias for all overloaded vector builtins..May 1 2021, 2:37 PM Comment Actions LGTM. Thanks for improvement!
This revision is now accepted and ready to land.May 2 2021, 6:04 AM Closed by commit rGcfe3b0005f6e: [RISCV] Reorder masked builtin operands. Use clang_builtin_alias for all… (authored by craig.topper). · Explain WhyMay 2 2021, 11:08 AM This revision was automatically updated to reflect the committed changes. Large DiffThis large diff affects 128 files. Files without inline comments have been collapsed. Expand All Files
Revision Contents
Diff 342251 clang/include/clang/Basic/riscv_vector.td
|
I remove this and added a couple ManualCodeGen blocks to permute builtin to IR intrinsics operand order to make up for it. I could have used PermuteOperands but then we would have had to translate it into C code to do the permutation in CGBuiltin.cpp.