[PATCH] D126742: [RISCV][Clang] Support RVV policy functions.

2022-07-31 Thread Kito Cheng via Phabricator via cfe-commits
kito-cheng accepted this revision. kito-cheng added a comment. This revision is now accepted and ready to land. LGTM, and verified with internal testsuite :) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126742/new/ https://reviews.llvm.org/D126742

[PATCH] D126742: [RISCV][Clang] Support RVV policy functions.

2022-07-12 Thread luxufan via Phabricator via cfe-commits
StephenFan added inline comments. Herald added a subscriber: nlopes. Comment at: clang/lib/Sema/SemaRVVLookup.cpp:378-388 +} else { + if (IsPrototypeDefaultTU) { +DefaultPolicy = Policy::TU; +if (HasPolicy) + BuiltinName += "_tu"; + } else {

[PATCH] D126742: [RISCV][Clang] Support RVV policy functions.

2022-06-02 Thread Yeting Kuo via Phabricator via cfe-commits
fakepaper56 added inline comments. Comment at: clang/lib/Sema/SemaRVVLookup.cpp:329 + + auto appendPolicySuffix = [&](std::string suffix) { +Name += suffix; Using `const std::string &suffix`. Comment at: clang/lib/Support/RISCVVIntrinsicUt