Skip to content

Commit 2b8bbad

Browse files
eopXDtru
authored andcommitted
[3/3][Clang][RISCV] Add __riscv_ for overloaded intrinsics
This commit adds prefix for the overloaded RVV intrinsics. This is the 3rd 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 D142644. Reviewed By: kito-cheng Differential Revision: https://reviews.llvm.org/D142697
1 parent 28ed0f0 commit 2b8bbad

File tree

766 files changed

+54147
-54146
lines changed

Some content is hidden

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

766 files changed

+54147
-54146
lines changed

clang/lib/Support/RISCVVIntrinsicUtils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,7 @@ void RVVIntrinsic::updateNamesAndPolicy(bool IsMasked, bool HasPolicy,
10051005
// This follows the naming guideline under riscv-c-api-doc to add the
10061006
// `__riscv_` suffix for all RVV intrinsics.
10071007
Name = "__riscv_" + Name;
1008+
OverloadedName = "__riscv_" + OverloadedName;
10081009

10091010
if (IsMasked) {
10101011
if (PolicyAttrs.isTUMUPolicy())

0 commit comments

Comments
 (0)