[PATCH] D122189: [Clang][NeonEmitter] emit ret decl first for -Wdeclaration-after-statement
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 21 14:55:47 PDT 2022
nickdesaulniers created this revision.
nickdesaulniers added a reviewer: DavidSpickett.
Herald added a subscriber: kristof.beyls.
Herald added a project: All.
nickdesaulniers requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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.
Link: https://github.com/ClangBuiltLinux/linux/issues/1603
Fixes: https://github.com/llvm/llvm-project/issues/54062
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122189
Files:
clang/test/CodeGen/aarch64-neon-ldst-one.c
clang/test/CodeGen/arm_neon_intrinsics.c
clang/test/Sema/arm-neon-decl-after-stmt.c
clang/utils/TableGen/NeonEmitter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122189.417108.patch
Type: text/x-patch
Size: 99399 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220321/a0f4ea1d/attachment-0001.bin>
More information about the cfe-commits
mailing list