- Aug 11, 2022
-
-
David Truby authored
The __ARM_FEATURE_SVE_VECTOR_OPERATORS macro should be changed to indicate that this feature is now supported on VLA vectors as well as VLS vectors. There is a complementary PR to the ACLE spec here https://github.com/ARM-software/acle/pull/213 Reviewed By: peterwaller-arm Differential Revision: https://reviews.llvm.org/D131573
-
David Truby authored
Previously the table in LanguageExtensions said that sizeof worked on SVE types but this is only correct for fixed-length vectors so a clarification has been added.
-
David Green authored
A bfloat select operation will currently crash, but is allowed from C. This adds handling for the operation, turning it into a FCSELHrrr if fullfp16 is present, or converting it to a FCSELSrrr if not. The FCSELSrrr is created via using INSERT_SUBREG/EXTRACT_SUBREG to convert the bf16 to a f32 and using the f32 pattern for FCSELSrrr. (I originally attempted to do this via a tablegen pattern, but it appears that the nzcv glue is places onto the wrong node, causing it to be forgotten and incorrect scheduling to be emitted). The FCSELSrrr can also be used for fp16 selects when +fullfp16 is not present, which helps avoid an unnecessary promotion to f32. Differential Revision: https://reviews.llvm.org/D131253
-
Simon Pilgrim authored
[X86] lowerShuffleWithVPMOV - remove oneuse constraints on shuffle(trunc(x),undef) -> vpmov(x) lowering These were added in rG057bdd63 but shuffle combining has gotten a lot better at folding different vector widths since then.
-
Sam Estep authored
This patch modifies `Environment`'s `pushCall` method to pass over arguments that are missing storage locations, instead of crashing. Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D131600
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D131564
-
Sam Estep authored
This patch adds the ability to context-sensitively analyze constructor bodies, by changing `pushCall` to allow both `CallExpr` and `CXXConstructExpr`, and extracting the main context-sensitive logic out of `VisitCallExpr` into a new `transferInlineCall` method which is now also called at the end of `VisitCXXConstructExpr`. Reviewed By: ymandel, sgatev, xazax.hun Differential Revision: https://reviews.llvm.org/D131438
-
Andre Vieira authored
-
Haojian Wu authored
Differential Revision: https://reviews.llvm.org/D131396
-
David Stuttard authored
Src1 for mbcnt can be a non-zero literal or register. Take this into account when calculating known bits. Differential Revision: https://reviews.llvm.org/D131478
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D131558
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D131559
-
Aaron Ballman authored
This should help address a build failure found after 09117b21 ../tools/clang/lib/Sema/SemaDeclCXX.cpp: In member function void clang::Sema::DiagnoseStaticAssertDetails(const clang::Expr*): ../tools/clang/lib/Sema/SemaDeclCXX.cpp:16666:19: error: declaration of const clang::Expr* clang::Sema::DiagnoseStaticAssertDetails(const clang::Expr*)::<unnamed struct>::Expr changes meaning of Expr [-fpermissive] 16666 | const Expr *Expr; | ^~~~ In file included from ../tools/clang/include/clang/AST/DeclCXX.h:22, from ../tools/clang/include/clang/AST/ASTLambda.h:18, from ../tools/clang/lib/Sema/SemaDeclCXX.cpp:15: ../tools/clang/include/clang/AST/Expr.h:109:7: note: Expr declared here as class clang::Expr 109 | class Expr : public ValueStmt { | ^~~~
-
Florian Hahn authored
At the moment, Clang only considers errno when deciding if a builtin is const. This ignores the fact that some library functions may raise floating point exceptions, which may modify global state, e.g. when updating FP status registers. To model the fact that some library functions/builtins may raise floating point exceptions, this patch adds a new 'g' modifier for builtins. If a builtin is marked with 'g', it cannot be considered const, unless FP exceptions are ignored. So far I've not added CHECK lines for all calls in math-libcalls.c. I'll do that once we agree on the overall direction. A consequence seems to be that we fail to select some of the constrained math builtins now, but I am not entirely sure what's going on there. Reviewed By: john.brawn Differential Revision: https://reviews.llvm.org/D129231
-
Haojian Wu authored
-
- Sep 14, 2021
-
-
Pavel Kosov authored
Test was introduced in https://reviews.llvm.org/D126359 ~~~ OS Laboratory. Huawei RRI. Saint-Petersburg
-
- Aug 11, 2022
-
-
Simon Pilgrim authored
We'd lost some type test coverage in masked-intrinsic-cost-inseltpoison.ll
-
David Spickett authored
https://reviews.llvm.org/D131658 found a bug in ReadPseudoRegisterValue which would mean we read out of bounds if the s register number was high enough. This adds a memory check to vpush-1-thumb, which should have been doing that anyway. Then copies that test and uses the last 4 s registers instead. Without the mentioned fix we see random values in the final memory, with the fix it passes. Reviewed By: fixathon Differential Revision: https://reviews.llvm.org/D131663
-
Benjamin Kramer authored
[mlir][sparse] Refine f695554a wording a bit and fix the double conversion I broke with aggressive copy&paste
-
Yeting Kuo authored
The patch uses peephole method to fold merge.vvm and unmasked intrinsics to masked intrinsics. Using peephole intead of tablegen patterns is to avoid large auto gnerated code. Note: The patch ignores segment loads since I don't know how to test them. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D130442
-
Ilya Biryukov authored
Follow-up after D131595, see comments in the review thread. The intention of having two constructors was to minimize the copies of `vector`, but a lack of `std::move` on the call site caused the wrong constructor to be called. Switched to a single constructor that accepts a value. Accepting by value allows to have a single constructor and still decide to copy or move on the call site.
-
Jonas Hahnfeld authored
Commit 8922adf6 recently made JITTargetMachineBuilder honor the hasJIT property of the target. LLVM supports just-in-time compilation on RISC-V, so set the flag. Differential Revision: https://reviews.llvm.org/D131617
-
Marius Brehler authored
This sets the `MLIR_PDLL_TABLEGEN_EXE` and `MLIR_PDLL_TABLEGEN_TARGET` as cache variables which is necessary for cross-compiling projects that rely on MLIR and the mlir-pdll-tblgen tool. The patch is similar to https://reviews.llvm.org/D130350. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D131596
-
Krasimir Georgiev authored
-
Martin Storsjö authored
This works with the automatic export of all symbols; in MinGW mode, when a DLL has no explicit dllexports, it exports all symbols (except for some that are hardcoded to be excluded, including some toolchain libraries). By hooking up the hidden visibility to the -exclude-symbols: directive, the automatic export of all symbols can be controlled in an easier way (with a mechanism that doesn't require strict annotation of every single symbol, but which allows gradually marking more unnecessary symbols as hidden). The primary use case is dylib builds of LLVM/Clang. These can be done in MinGW mode but not in MSVC mode, as MinGW builds can export all symbols (and the calling code can use APIs without corresponding dllimport directives). However, as all symbols are exported, it can easily overflow the max number of exported symbols in a DLL (65536). In the llvm-mingw distribution, only the X86, ARM and AArch64 backends are enabled; for the LLVM 13.0.0 release, libLLVM-13.dll ended up with 58112 exported symbols. For LLVM 14.0.0, it was 62015 symbols. Current builds of the 15.x branch end up at around 64650 symbols - i.e. extremely close to the limit. The msys2 packages of LLVM have had to progressively disable more of their backends in their builds, to be able to keep building with a dylib. This allows improving the current mingw dylib situation significantly, by using the same hidden visibility options and attributes as on Unix. With those in place, a current build of LLVM git main ends up at 35142 symbols instead of 64650. For code using hidden visibility, this now requires linking with either a current git lld or ld.bfd. (Older lld error out on the unknown directives, older ld.bfd will successfully link, but will print huge amounts of warnings.) Differential Revision: https://reviews.llvm.org/D130121
-
Martin Storsjö authored
This is an entirely new embedded directive - extending the GNU ld command line option --exclude-symbols to be usable in embedded directives too. (GNU ld.bfd also got support for the same new directive, currently in the latest git version, after the 2.39 branch.) This works as an inverse to the regular embedded dllexport directives, for cases when autoexport of all eligible symbols is performed. Differential Revision: https://reviews.llvm.org/D130120
-
Martin Storsjö authored
This adds support for the existing GNU ld command line option, which allows excluding individual symbols from autoexport (when linking a DLL and no symbols are marked explicitly as dllexported). Differential Revision: https://reviews.llvm.org/D130118
-
Andre Vieira authored
Expand TypePromotion pass to try to promote PHI-nodes in loops that are the operand of a ZExt, using the ZExt's result type to determine the Promote Width. Differential Revision: https://reviews.llvm.org/D111237
-
Andre Vieira authored
Hoist out promote width calculation to simplify runOnFunction. Differential Revision: https://reviews.llvm.org/D131489
-
Andre Vieira authored
Differential Revision: https://reviews.llvm.org/D131488
-
Andre Vieira authored
Differential Revision: https://reviews.llvm.org/D131487
-
Marco Elver authored
Other sanitizers (ASan, TSan, see added tests) already handle memcpy.inline and memset.inline by not relying on InstVisitor to turn the intrinsics into calls. Only MSan instrumentation currently does not support them due to missing InstVisitor callbacks. Fix it by actually making InstVisitor handle Mem*InlineInst. While the mem*.inline intrinsics promise no calls to external functions as an optimization, for the sanitizers we need to break this guarantee since access into the runtime is required either way, and performance can no longer be guaranteed. All other cases, where generating a call is incorrect, should instead use no_sanitize. Fixes: https://github.com/llvm/llvm-project/issues/57048 Reviewed By: vitalybuka, dvyukov Differential Revision: https://reviews.llvm.org/D131577
-
Benjamin Kramer authored
c7ec6e19 made LLVM adhere to the x86 psABI and pass bf16 in SSE registers instead of GPRs. This breaks the custom versions of runtime functions we have for bf16 conversion. A great fix for this would be to use __bf16 types instead which carry the right ABI, but that type isn't widely available. Instead just pretend it's a 32 bit float on the ABI boundary and carefully cast it to the right type. Fixes #57042
-
LLVM GN Syncbot authored
-
Slava Gurevich authored
Functionally broken code for reading and writing registers, likely due to typos, and could cause out-of-bounds memory access. Differential Revision: https://reviews.llvm.org/D131658
-
Carlos Galvez authored
Flags uses of const-qualified and reference data members in structs. Implements rule C.12 of C++ Core Guidelines. Differential Revision: https://reviews.llvm.org/D126880
-
Wei Yi Tee authored
Differential Revision: https://reviews.llvm.org/D131065
-
Martin Storsjö authored
This fixes the following warnings produced by GCC 9: In file included from ../tools/clang/include/clang/Sema/ExternalSemaSource.h:15, from ../tools/clang/include/clang/Sema/HLSLExternalSemaSource.h:17, from ../tools/clang/lib/Sema/HLSLExternalSemaSource.cpp:12: ../tools/clang/include/clang/AST/ExternalASTSource.h:211:16: warning: ‘virtual void clang::ExternalASTSource::CompleteType(clang::ObjCInterfaceDecl*)’ was hidden [-Woverloaded-virtual] 211 | virtual void CompleteType(ObjCInterfaceDecl *Class); | ^~~~~~~~~~~~ In file included from ../tools/clang/lib/Sema/HLSLExternalSemaSource.cpp:12: ../tools/clang/include/clang/Sema/HLSLExternalSemaSource.h:49:8: warning: by virtual void clang::HLSLExternalSemaSource::CompleteType(clang::TagDecl*)’ [-Woverloaded-virtual] 49 | void CompleteType(TagDecl *Tag) override; | ^~~~~~~~~~~~ Differential Revision: https://reviews.llvm.org/D130969 -
Martin Storsjö authored
Since bb939931, the c++experimental library is always built, so these tested files should always be built (even if they aren't used in tests). Differential Revision: https://reviews.llvm.org/D129399
-
Timm Bäder authored
Try to fix these errors: SemaDeclCXX.cpp:16666:19: error: declaration of ‘const clang::Expr* clang::Sema::DiagnoseStaticAssertDetails(const clang::Expr*)::<unnamed struct>::Expr’ changes meaning of ‘Expr’ [-fpermissive] 16666 | const Expr *Expr; | ^~~~
-