[clang] 2e94c2b - [RISCV] Remove always_inline and nodebug attributes from RISCV vector intrinsic header.
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 25 09:29:58 PDT 2021
Author: Craig Topper
Date: 2021-10-25T09:29:37-07:00
New Revision: 2e94c2bd75367a8a26ac71560963ecb9f0bf6bea
URL: https://github.com/llvm/llvm-project/commit/2e94c2bd75367a8a26ac71560963ecb9f0bf6bea
DIFF: https://github.com/llvm/llvm-project/commit/2e94c2bd75367a8a26ac71560963ecb9f0bf6bea.diff
LOG: [RISCV] Remove always_inline and nodebug attributes from RISCV vector intrinsic header.
I don't think these are needed with the way builtin_alias is
implemented.
Added:
Modified:
clang/utils/TableGen/RISCVVEmitter.cpp
Removed:
################################################################################
diff --git a/clang/utils/TableGen/RISCVVEmitter.cpp b/clang/utils/TableGen/RISCVVEmitter.cpp
index 7a23a4bcd9fd..62eef830318f 100644
--- a/clang/utils/TableGen/RISCVVEmitter.cpp
+++ b/clang/utils/TableGen/RISCVVEmitter.cpp
@@ -981,8 +981,7 @@ void RVVEmitter::createHeader(raw_ostream &OS) {
return A->getRISCVExtensions() < B->getRISCVExtensions();
});
- OS << "#define __rvv_ai static __inline__ "
- "__attribute__((__always_inline__, __nodebug__))\n";
+ OS << "#define __rvv_ai static __inline__\n";
// Print intrinsic functions with macro
emitArchMacroAndBody(Defs, OS, [](raw_ostream &OS, const RVVIntrinsic &Inst) {
@@ -996,7 +995,7 @@ void RVVEmitter::createHeader(raw_ostream &OS) {
// Print Overloaded APIs
OS << "#define __rvv_aio static __inline__ "
- "__attribute__((__always_inline__, __nodebug__, __overloadable__))\n";
+ "__attribute__((__overloadable__))\n";
emitArchMacroAndBody(Defs, OS, [](raw_ostream &OS, const RVVIntrinsic &Inst) {
if (!Inst.isMask() && !Inst.hasNoMaskedOverloaded())
More information about the cfe-commits
mailing list