llvm-project/clang/utils/TableGen
Nick Desaulniers 5a2e56b70e [Clang][NeonEmitter] emit ret decl first for -Wdeclaration-after-statement
The generated arm_neon.h header isn't -Wdeclaration-after-statement
compliant when targeting -mbig-endian. Update the generator to declare
the return value, if any, first before any other arguments that might
need to be "reversed" from little endian to big.

Another approach would have been to try to ignore this warning in system
headers, though that might not be precise for tokens involved in macro
expansion. See also: https://reviews.llvm.org/D116833#3236209.

Link: https://github.com/ClangBuiltLinux/linux/issues/1603
Fixes: https://github.com/llvm/llvm-project/issues/54062

Reviewed By: DavidSpickett

Differential Revision: https://reviews.llvm.org/D122189
2022-03-23 09:40:43 -07:00
..
ASTTableGen.cpp [NFC][clang]Inclusive language: remove remaining uses of sanity 2021-11-24 14:20:13 -05:00
ASTTableGen.h
CMakeLists.txt [Clang][RISCV] Add custom TableGen backend for riscv-vector intrinsics. 2021-03-10 18:43:43 -08:00
ClangASTNodesEmitter.cpp
ClangASTPropertiesEmitter.cpp [clang] Use StringRef::contains (NFC) 2021-10-21 08:58:19 -07:00
ClangAttrEmitter.cpp Make ParsedAttrInfo and subclasses use constexpr construction 2022-03-05 20:37:21 +01:00
ClangCommentCommandInfoEmitter.cpp Comment parsing: Complete list of Doxygen commands 2021-11-09 18:35:26 +01:00
ClangCommentHTMLNamedCharacterReferenceEmitter.cpp
ClangCommentHTMLTagsEmitter.cpp
ClangDataCollectorsEmitter.cpp
ClangDiagnosticsEmitter.cpp [clang] Introduce support for disabling warnings in system macros 2022-01-12 08:18:19 +00:00
ClangOpcodesEmitter.cpp [Clang interpreter] Avoid storing pointers at unaligned locations 2021-07-28 16:03:41 +01:00
ClangOpenCLBuiltinEmitter.cpp [OpenCL] Guard write_only image3d_t with TypeExtension 2022-03-21 12:45:58 +00:00
ClangOptionDocEmitter.cpp [TableGen] Eliminate the 'code' type 2020-12-03 10:19:11 -05:00
ClangSACheckersEmitter.cpp
ClangSyntaxEmitter.cpp [Syntax] Tablegen Sequence classes. NFC 2020-11-11 16:29:19 +01:00
ClangTypeNodesEmitter.cpp
MveEmitter.cpp [clang] Remove Address::deprecated from MveEmitter 2022-03-21 09:39:13 -07:00
NeonEmitter.cpp [Clang][NeonEmitter] emit ret decl first for -Wdeclaration-after-statement 2022-03-23 09:40:43 -07:00
RISCVVEmitter.cpp [RISCV][NFC] Refine and refactor RISCVVEmitter and riscv_vector.td. 2022-03-22 09:58:43 -07:00
SveEmitter.cpp [AArch64][SVE] Always use overloaded methods instead of preprocessor macro. 2021-04-13 21:12:53 +01:00
TableGen.cpp [AST][clangd] Expose documentation of Attrs on hover. 2021-08-12 21:16:37 +02:00
TableGenBackends.h [AST][clangd] Expose documentation of Attrs on hover. 2021-08-12 21:16:37 +02:00