- Dec 20, 2022
-
-
Aart Bik authored
Moved larger constructor from header to CPP file. Used toMLIRString() for DimLvlType debug. Minor layout changes. Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D140342
-
Paul Robinson authored
As seen here: https://lab.llvm.org/staging/#/builders/235/builds/1135
-
Louis Dionne authored
Previously, we would be passing down -stdlib=libc++ from the Driver to CC1 whenever the default standard library on the platform was libc++, even if -stdlib= had not been passed to the Driver. This meant that we would pass -stdlib=libc++ in nonsensical circumstances, such as when compiling C code. This logic had been added in b534ce46 to make sure that header search paths were set up properly. However, since libc++ is now the default Standard Library on Darwin, passing this explicitly is not required anymore. Indeed, if no -stdlib= is specified, CC1 will end up using libc++ if it queries which standard library to use, without having to be told. Not passing -stdlib= at all to CC1 on Darwin should become possible once CC1 stops relying on it to set up framework search paths. Furthermore, this commit also removes a diagnostic checking whether the deployment target is too old to support libc++. Nowadays, all supported deployment targets use libc++ and compiling with libstdc++ is not supported anymore. The Driver was the wrong place to issue this diagnostic since it doesn't know whether libc++ will actually be linked against (e.g. C vs C++), which would lead to spurious diagnostics. Given that these targets are not supported anymore, we simply drop the diagnostic instead of trying to refactor it into CC1. rdar://103198514 Differential Revision: https://reviews.llvm.org/D139938
-
v1nh1shungry authored
Reviewed By: nridge Differential Revision: https://reviews.llvm.org/D138300
-
Yitzhak Mandelbaum authored
The comments describing the API for analysis `widen` and the environment `widen` were overly strict in the preconditions they assumed for the operation. In particular, both assumed that the previous value preceded the current value in the relevant ordering. However, that's not generally how widen operators work and widening itself can violate this property. That is, when the previous value is the result of a widening, it can easily be "greater" than the current value. This patch updates the comments to accurately reflect the expectations. Differential Revision: https://reviews.llvm.org/D140308
-
David Green authored
-
Florian Mayer authored
-
Florian Hahn authored
-
Florian Hahn authored
-
Joseph Huber authored
Summary: This condition should fire when the full build is set OFF instead of when it is ON.
-
Florian Hahn authored
AAResults is passed to LoopVectorizationLegality but no longer used. Remove the dead code.
-
Benjamin Kramer authored
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Johannes Doerfert authored
This reverts commit d57a3443. This patch was never part of the memory leak problem that lead to the revert, just an innocent bystander caught in the middle... Also, added a second reproducer reported after the revert.
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Benjamin Kramer authored
It doesn't seem necessary and it's blocking std::optional.
-
Utkarsh Saxena authored
Fixes: https://github.com/llvm/llvm-project/issues/45563 ``` template<class T> concept True = true; template <class T> concept C1 = requires (T) { requires True<typename T::value> || True<T>; }; template <class T> constexpr bool foo() requires True<typename T::value> || True<T> { return true; } static_assert(C1<double>); // Previously failed due to SFINAE error static_assert(foo<int>()); // but this works fine. ``` The issue here is the discrepancy between how a [nested requirement is evaluated](https://github.com/llvm/llvm-project/blob/main/clang/lib/Sema/SemaTemplateInstantiate.cpp#L2331) Vs how a [non-nested requirement is evaluated](https://github.com/llvm/llvm-project/blob/main/clang/lib/Sema/SemaConcept.cpp#L167-L200). This patch makes constraint checking consistent for nested requirement and trailing requires expressions by reusing the same evaluator. Differential Revision: https://reviews.llvm.org/D138914
-
Matt Arsenault authored
All the attribute numbering changes are due to the ocml function being assumed convergent, and the direct call is not. This begins a series of patches to avoid using the thinnest ocml wrappers around llvm intrinsics. These wrapper functions aren't buying anything and add complexity. As we do not propagate fast math flags into the library on linking, and cannot generally safely do so, we're losing information by calling into them. Directly call the builtins so we get the fast math flags set appropriate for the translation unit naturally.
-
Mitch Phillips authored
This reverts commit b26fe2a3. Reason: Broke the ASan build bots. See more info in the original phabricator review: https://reviews.llvm.org/D138986
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Haojian Wu authored
- fixes error: Line: 91 result += contents[pos:m.start(index)] TypeError: can only concatenate str (not "bytes") to str - fixes the "-code-completion-at=%s:%(lineb'-7')" rewritten results Differential Revision: https://reviews.llvm.org/D140300
-
Saleem Abdulrasool authored
This reverts commit 3010f603. This change introduced undefined behaviour (reported at https://reviews.llvm.org/D138508#inline-1352840). Additionally, it appears to be responsible for a mis-compilation on RISCV64 with the vector extension (https://github.com/llvm/llvm-project/issues/59594). The commit message indicates that this is meant to be ARM64 specific though is a generic selection change.
-
Haojian Wu authored
Per the discussion on https://reviews.llvm.org/D140095#inline-1352956 Differential Revision: https://reviews.llvm.org/D140284
-
Paul Kirth authored
In many cases, we can use an alias to avoid a symbolic relocations, instead of using the public, interposable symbol. When the instrumented function is in a COMDAT, we can use a hidden alias, and still avoid references to discarded sections. New compiler-rt tests are Linux only for now. Previous versions of this patch allowed the compiler to name the generated alias, but that would only be valid when the functions were local. Since the alias may be used across TUs we use a more deterministic naming convention, and add a `.local` suffix to the alias name just as we do for relative vtables aliases. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D137982
-
Michal Paszkowski authored
Adds support for memory(...) function attributes in SPIR-V function control info lowering. Differential Revision: https://reviews.llvm.org/D139133
-
Michal Paszkowski authored
This patch disables MachineLateInstrsCleanup pass (since it does not work with virtual registers) and modifies LIT tests to run with -O0. Differential Revision: https://reviews.llvm.org/D140103
-
Simon Pilgrim authored
The set/reset/complement RMW variants use +1uop compared to the BT read-only instructions Based off llvm-exegesis captures, confirmed with Agner + uops.info
-
Siva Chandra Reddy authored
Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D140309
-
Kautuk Consul authored
This patch adds codegen support for part of XVentanaCondOps extension. This extension is designed to reduce the number of branches in the generated RISCV assembly by replacing branches with conditional move instructions as defined by XVentanaCondOps specification. The specification for XVentanaCondOps extension can be found at: https://github.com/ventanamicro/ventana-custom-extensions/releases/download/v1.0.1/ventana-custom-extensions-v1.0.1.pdf Co-authored-by:
Mikhail Gudim <mgudim@ventanamicro.com> Differential Revision: https://reviews.llvm.org/D139394
-
Stephen Tozer authored
Fixes a test in 6d169089 which had unspecified platform dependencies and platform-dependent output.
-
Ramkumar Ramachandra authored
This is part of an effort to migrate from llvm::Optional to std::optional. This patch touches DialectConversion, and modifies existing conversions and tests appropriately. See also: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 Signed-off-by:
Ramkumar Ramachandra <r@artagnon.com> Differential Revision: https://reviews.llvm.org/D140303
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Stephen Tozer authored
This patch adds a new function that can be used to check all the properties, other than the machine values, of a pair of debug values for equivalence. This is done by folding the "directness" into the expression, converting the expression to variadic form if it is not already in that form, and then comparing directly. In a few places which check whether two debug values are identical to see if their ranges can be merged, this function will correctly identify cases where two debug values are expressed differently but have the same meaning, allowing those ranges to be correctly merged. Differential Revision: https://reviews.llvm.org/D136173
-
Matt Arsenault authored
I initially attempted this in 5a95be22. It was reverted in 81cbe0ca since it crashed GCC 5.3. That has dropped out of the list of supported host compilers, so try again.
-
Simon Pilgrim authored
Enables folding fadd x, (select c, (fneg a), (fneg b)) -> fsub (select a, b), c Avoids some regressions in a future AMDGPU change.
-
Matt Arsenault authored
-
Sebastian Neubauer authored
llvm::Any had and has several bugs, so we eventually want to replace it with std::any. Unfortunately, we cannot do that right now because of bugs in the msvc standard library that are only fixed in VS 2022 17.4. When lto is enabled in msvc, constant symbols end up at the same address, breaking the TypeId implementation of llvm::Any. Make the TypeId<T>::Id non-const to fix this. I was able to find an easy reproducer (tried in godbolt with x64 msvc v19.32 and `/GL` as compiler flags to enable lto): ```c++ template <typename T> struct TypeId { // Remove the const here and below to make it work. static const char Id; }; template <typename T> const char TypeId<T>::Id = 0; template <typename A, typename B> bool isSame() { return &TypeId<A>::Id == &TypeId<B>::Id; } class A {}; class B {}; int main() { // This should output "is same 0" because the addresses of A's and B's // TypeId::Id should be different. printf("is same %d\n", isSame<A, B>()); return 0; } ``` Differential Revision: https://reviews.llvm.org/D139974
-
- Dec 19, 2022
-
-
Nikita Popov authored
When converting this test to opaque pointers (and dropping bitcast), we get improved memory checks. Per fhahn: > It looks like the difference is due to the logic that determines > pointer strides in LAA not handling bitcasts. Without the > bitcasts, the logic now triggers successfully. Differential Revision: https://reviews.llvm.org/D140204
-
Caroline.Concatto@arm.com authored
According to: https://developer.arm.com/documentation/ddi0602/2022-09/ PFALSE should: "...an assembler must also accept predicate-as-counter register name for the destination predicate register." Differential Revision: https://reviews.llvm.org/D140301
-
Matt Arsenault authored
-