Skip to content

Commit 2153544

Browse files
committed
[2/3][Clang][RISCV] Add __riscv_ for non-overloaded intrinsics
This commit adds prefix for the non-overloaded RVV intrinsics. This is the 2nd commit of a patch-set to add __riscv_ for all RVV intrinsics. This follows the naming guideline under riscv-c-api-doc to add the `__riscv_` suffix for all RVV intrinsics. Pull Request: riscv-non-isa/riscv-c-api-doc#31 riscv-non-isa/rvv-intrinsic-doc#189 Depends on D142085. Reviewed By: kito-cheng Differential Revision: https://reviews.llvm.org/D142644
1 parent 060c8be commit 2153544

File tree

772 files changed

+56207
-56203
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

772 files changed

+56207
-56203
lines changed

clang/lib/Support/RISCVVIntrinsicUtils.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,10 @@ void RVVIntrinsic::updateNamesAndPolicy(bool IsMasked, bool HasPolicy,
10021002
OverloadedName += suffix;
10031003
};
10041004

1005+
// This follows the naming guideline under riscv-c-api-doc to add the
1006+
// `__riscv_` suffix for all RVV intrinsics.
1007+
Name = "__riscv_" + Name;
1008+
10051009
if (IsMasked) {
10061010
if (PolicyAttrs.isTUMUPolicy())
10071011
appendPolicySuffix("_tumu");

0 commit comments

Comments
 (0)