- Jan 24, 2020
-
-
Simon Pilgrim authored
As mentioned on D73023, lowerShuffleWithSHUFPS should be able to commute the shufps inputs to fold the second arg as it will then permute the shufps result anyway.
-
Pavel Labath authored
This was needed when asking a compile unit for its dwo component triggered a infinite recursion if the dwo unit has not been already parsed. This has since been fixed.
-
Pavel Labath authored
The test was printing a char[3] variable without a terminating nul. The memory after that variable (an unnamed bitfield) was not initialized. If the memory happened to be nonzero, the summary provider for the variable would run off into the next field. This is probably not the right behavior (it should stop at the end of the array), but this is not the purpose of this test. I have filed pr44649 for this bug, and fixed the test to not depend on this behavior.
-
Sam Parker authored
-
Kerry McLaughlin authored
Summary: Implements the following intrinsics: - llvm.aarch64.sve.setffr - llvm.aarch64.sve.rdffr - llvm.aarch64.sve.rdffr.z - llvm.aarch64.sve.wrffr Reviewers: sdesmalen, efriedma, dancgr, rengolin Reviewed By: efriedma Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, cameron.mcinally, cfe-commits, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73097
-
Raphael Isemann authored
-
Raphael Isemann authored
-
Simon Pilgrim authored
Rotating an 0/-1 value by any amount will always result in the same 0/-1 value
-
Guillaume Chatelet authored
Summary: This patch adds a benchmarking infrastructure for llvm-libc memory functions. In a nutshell, the code can benchmark small and large buffers for the memcpy, memset and memcmp functions. It also produces graphs of size vs latency by running targets of the form `render-libc-{memcpy|memset|memcmp}-benchmark-{small|big}`. The configurations are provided as JSON files and the benchmark also produces a JSON file. This file is then parsed and rendered as a PNG file via the `render.py` script (make sure to run `pip3 install matplotlib scipy numpy`). The script can take several JSON files as input and will superimpose the curves if they are from the same host. TODO: - The code benchmarks whatever is available on the host but should be configured to benchmark the -to be added- llvm-libc memory functions. - Add a README file with instructions and rationale. - Produce scores to track the performance of the functions over time to allow for regression detection. Reviewers: sivachandra, ckennelly Subscribers: mgorny, MaskRay, libc-commits Tags: #libc-project Differential Revision: https://reviews.llvm.org/D72516 -
Alex Zinenko authored
This was suggested in post-commit review of D72926.
-
James Henderson authored
The sub-heading used to contain the --only-keep-debug switch as that switch wasn't implemented for ELF at one point. Since the switch is now in the generic options section, and there are no other options in this sub-heading, it is pointless and can be deleted.
-
Sam Parker authored
Add MachineLoopInfo and ReachingDefAnalysis as members of LowOverheadLoop instead of passing them several times to different methods.
-
Sam McCall authored
Summary: The historic behavior of TestTU is to gather diagnostics and otherwise ignore them. So if a test has a syntax error, and doesn't assert diagnostics, it silently misbehaves. This can be annoying when developing tests, as evidenced by various tests gaining "assert no diagnostics" where that's not really the point of the test. This patch aims to make that default behavior. For the first error (not warning), TestTU will call ADD_FAILURE(). This can be suppressed with a comment containing "error-ok". For now that will suppress any errors in the TU. We can make this stricter later -verify style. (-verify itself is hard to reuse because of DiagnosticConsumer interfaces...) A magic-comment was chosen over a TestTU option because of table-driven tests. In addition to the behavior change, this patch: - adds //error-ok where we're knowingly testing invalid code (e.g. for diagnostics, crash-resilience, or token-level tests) - fixes a bunch of errors in the checked-in tests, mostly trivial (missing ;) - removes a bunch of now-redundant instances of "assert no diagnostics" Reviewers: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D73199 -
Simon Pilgrim authored
Rotating an 0/-1 value by any amount will always result in the same 0/-1 value
-
Raphael Isemann authored
This cast just casts Decl* to Decl*.
-
Sam McCall authored
Summary: An heuristic targetting `x && x->foo` was targed overly broadly and caused the last T&& to be treated as a binary operator. Reviewers: hokein Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D73334
-
Djordje Todorovic authored
Adding the test for the call site encoding in DWARF5 vs GNU extensions. Some of the attributes were not covered by any test. Differential Revision: https://reviews.llvm.org/D73266
-
Awanish Pandey authored
Recommit "[DWARF5][clang]: Added support for DebugInfo generation for auto return type for C++ member functions." Summary: This was reverted in e45fcfc3 due to libcxx build failure. This revision addresses that case. Original commit message: This patch will provide support for auto return type for the C++ member functions. This patch includes clang side implementation of this feature. Patch by: Awanish Pandey <Awanish.Pandey@amd.com> Reviewers: dblaikie, aprantl, shafik, alok, SouraVX, jini.susan.george Reviewed by: dblaikie Differential Revision: https://reviews.llvm.org/D70524
-
Fangrui Song authored
-
Evgeny Leviant authored
Differential revision: https://reviews.llvm.org/D73094
-
Fangrui Song authored
-
Fangrui Song authored
-
Raphael Isemann authored
Summary: A *.cpp file header in LLDB (and in LLDB) should like this: ``` //===-- TestUtilities.cpp -------------------------------------------------===// ``` However in LLDB most of our source files have arbitrary changes to this format and these changes are spreading through LLDB as folks usually just use the existing source files as templates for their new files (most notably the unnecessary editor language indicator `-*- C++ -*-` is spreading and in every review someone is pointing out that this is wrong, resulting in people pointing out that this is done in the same way in other files). This patch removes most of these inconsistencies including the editor language indicators, all the different missing/additional '-' characters, files that center the file name, missing trailing `===//` (mostly caused by clang-format breaking the line). Reviewers: aprantl, espindola, jfb, shafik, JDevlieghere Reviewed By: JDevlieghere Subscribers: dexonsmith, wuzish, emaste, sdardis, nemanjai, kbarton, MaskRay, atanasyan, arphaman, jfb, abidh, jsji, JDevlieghere, usaxena95, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D73258
-
Jonas Devlieghere authored
The existing unit tests cover a wide variety of reading TBD files but lack coverages on the writing side. Case in point is the macCatalyst case which we're able to read, but not write. This patch extends the unit test dealing with valid input to write their content again to verify the writer. Differential revision: https://reviews.llvm.org/D73328
-
Jonas Devlieghere authored
This changes the variables names to match the TBD version. Differential revision: https://reviews.llvm.org/D73326
-
Pierre Habouzit authored
If we do, then the property_list_t length is wrong and class_getProperty gets very sad. Signed-off-by:
Pierre Habouzit <phabouzit@apple.com> Radar-Id: rdar://problem/58804805 Differential Revision: https://reviews.llvm.org/D73219
-
Pierre Habouzit authored
Sending a message to `self` when it is const and within a class method is safe because we know that `self` is the Class itself. We can only relax this warning in ARC. Signed-off-by:
Pierre Habouzit <phabouzit@apple.com> Radar-Id: rdar://problem/58581965 Differential Revision: https://reviews.llvm.org/D72747
-
Fangrui Song authored
-
Fangrui Song authored
-
Jonas Devlieghere authored
Except for debugging purposes there's no point in leaving the reproducer behind on disk after replay. This patch adds a cleanup in the replay case.
-
Jonas Devlieghere authored
This fixes: TypeError: Unicode-objects must be encoded before hashing
-
Craig Topper authored
-
Lang Hames authored
ObjectLinkingLayer::Plugin instances can be used to receive events from ObjectLinkingLayer, and to inspect/modify JITLink linker graphs. This example shows how to write and set up a plugin to dump the linker graph at various points in the linking process.
-
Lang Hames authored
These examples were all copied and adapted from the original HowToUseLLJIT example code, however the calls to cl::ParseCommandLineOptions were not updated.
-
Lang Hames authored
-
Weverything authored
Move the assert that checks for the end iterator inside the loop which actually moves over the elements. This allows it to check that the iteration stays within the range.
-
Andy Kaylor authored
This fixes a bug where a PHI node that is only referenced by a lifetime.end intrinsic in an otherwise empty cleanuppad can cause SimplyCFG to create an SSA violation while removing the empty cleanuppad. Theoretically the same problem can occur with debug intrinsics. Differential Revision: https://reviews.llvm.org/D72540
-
Heejin Ahn authored
Summary: D72308 incorrectly assumed `resume` cannot exist without a `landingpad`, which is not true. This sets `Changed` to true whenever we make changes to a function, including creating a call to `__resumeException` within a function without a landing pad. Reviewers: tlively Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73308
-
Kai Wang authored
Pipeline scheduler model for the RISC-V Rocket micro-architecture using the MIScheduler interface. Support for both 32 and 64-bit Rocket cores is implemented. Differential revision: https://reviews.llvm.org/D68685
-
Teresa Johnson authored
This reverts commit 59733525. There is a windows sanitizer bot failure in one of the cfi tests that I will need some time to figure out: http://lab.llvm.org:8011/builders/sanitizer-windows/builds/57155/steps/stage%201%20check/logs/stdio
-