[PATCH] D98682: [RISCV] Don't emit #undef BUILTIN from RISCVVEmitter.cpp
Jim Lin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 15 22:39:52 PDT 2021
Jim created this revision.
Jim added reviewers: khchen, craig.topper.
Herald added subscribers: vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb.
Jim requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang.
In BuiltinsRISCV.def, other extension 's intrinsics need to be defined by using macro BUILTIN.
So, it shouldn't undefine macro BUILTIN in the end of declaration for V intrinsics.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D98682
Files:
clang/include/clang/Basic/BuiltinsRISCV.def
clang/utils/TableGen/RISCVVEmitter.cpp
Index: clang/utils/TableGen/RISCVVEmitter.cpp
===================================================================
--- clang/utils/TableGen/RISCVVEmitter.cpp
+++ clang/utils/TableGen/RISCVVEmitter.cpp
@@ -881,7 +881,6 @@
else
OS << "\"\")\n";
}
- OS << "\n#undef BUILTIN\n";
OS << "#undef RISCVV_BUILTIN\n";
}
Index: clang/include/clang/Basic/BuiltinsRISCV.def
===================================================================
--- clang/include/clang/Basic/BuiltinsRISCV.def
+++ clang/include/clang/Basic/BuiltinsRISCV.def
@@ -17,3 +17,4 @@
#include "clang/Basic/riscv_vector_builtins.inc"
+#undef BUILTIN
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98682.330881.patch
Type: text/x-patch
Size: 634 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210316/0909ee8e/attachment.bin>
More information about the cfe-commits
mailing list