- Mar 02, 2023
-
-
Rahul Kayaith authored
Currently these functions report errors directly to stderr, this updates them to use diagnostics instead. This also makes partially-consumed strings an error if the `numRead` parameter isn't provided (the docstrings already claimed this happened, but it didn't.) While here I also tried to reduce the number of overloads by switching to using default parameters. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D144804
-
Arthur Eubanks authored
-
Joseph Huber authored
Summary: Tihs patch is mostly NFC to fix some warning currently present in OpenMP offloading plugins. Specifically this mostly removes the use of Twine variables in favor of LLVM's small string. Twine variables are prone to use-after-free and this is a cleaner way to concatenate a string.
-
Nick Desaulniers authored
These can help us better understand what __builtin_constant_p and __builtin_object_size get folded to. $ clang -mllvm -debug-only=lower-is-constant-intrinsic ... Reviewed By: void Differential Revision: https://reviews.llvm.org/D143521
-
Jeff Bailey authored
When running the libc tests under vscode, I got an error about a mismatches exception declaration for strerror. Since string.h seems to be getting included transitively anyway, just include it and rely on its definition. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D144803
-
Peiming Liu authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D145091
-
Konstantin Belousov authored
Only 64bit architectures can be supported this way, because libcxx defines __cxx_contention_t to be int64_t for FreeBSD, and 32bit arches do not have a kind of UMTX_OP_WAIT_INT64_PRIVATE operation. Fixes: 83387dbc Reviewed by: arichardson, ldionne, emaste, Mordante Differential Revision: https://reviews.llvm.org/D142422
-
Andrew Gozillon authored
This change seeks to emit the full module from the bbc tool and not just the body. This change currently does not break existing tests when running check-(mlir, flang, all). This stops the discarding of any attributes that may be applied to the Module during compilation. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D144869
-
Louis Dionne authored
apple-cxx20 is equivalent to generic-cxx20, so we don't need it anymore. It had been introduced when clang-tidy was enabled explicitly from run-buildbot, but that's not needed anymore since clang-tidy is enabled from the buildkite pipeline definition.
-
Louis Dionne authored
This broke the CI after 813e1da9 was checked in.
-
Joseph Huber authored
The next-gen plugins did not properly set the values from `OMP_NUM_TEAMS` and `OMP_TEAMS_THREAD_LIMIT`. This is because these maximum values are set by each plugin to its hardware maximum. This happens *after* the previous initialization. Move it to the correct place and then add a test. Fixes https://github.com/llvm/llvm-project/issues/61082 Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D145105
-
Sjoerd Meijer authored
Differential Revision: https://reviews.llvm.org/D145067
-
Slava Zakharin authored
If the interface specifies BIND(C), then the declarations using this interface inherit BIND(C), and if they are referenced via use association they must be classified as BIND(C) subprograms. Differential Revision: https://reviews.llvm.org/D145084
-
Louis Dionne authored
Move multiple tests to .compile.pass.cpp when they were not running anything and reindent a bit more consistently.
-
Leonard Chan authored
Fuchsia is exclusively 64-bit so this throw an error when using this triple. Differential Revision: https://reviews.llvm.org/D144998
-
Frederik Gossen authored
Add pass to print the entire IR on the debug stream. This is meant for debugging purposes to inspect the IR at a specific point in the pipeline. Differential Revision: https://reviews.llvm.org/D144918
-
Renaud-K authored
https://reviews.llvm.org/D144921
-
Fangrui Song authored
Following recent changes to remove non-core legacy passes.
-
Dan Liew authored
This patch adds the following methods: * `GetType()` * `GetWatchValueKind()` * `GetWatchSpec()` * `IsWatchingReads()` * `IsWatchingWrites()` These mostly expose methods that `lldb_private::Watchpoint` already had. Tests are included that exercise these new methods. The motivation for exposing these are as follows: * `GetType()` - With this information and the address from a watchpoint it is now possible to construct an SBValue from an SBWatchpoint. Previously this wasn't possible. The included test case illustrates doing this. * `GetWatchValueKind()` - This allows the caller to determine whether the watchpoint is a variable watchpoint or an expression watchpoint. A new enum (`WatchpointValueKind`) has been introduced to represent the return values. Unfortunately the name `WatchpointKind` was already taken. * `GetWatchSpec()` - This allows (at least for variable watchpoints) to use a sensible name for SBValues created from an SBWatchpoint. * `IsWatchingReads()` - This allow checking if a watchpoint is monitoring read accesses. * `IsWatchingWRites()` - This allow checking if a watchpoint is monitoring write accesses. rdar://105606978 Reviewers: jingham, mib, bulbazord, jasonmolenda, JDevlieghere Differential Revision: https://reviews.llvm.org/D144937
-
Mitch Phillips authored
Adds the new AArch64-ABI dynamic entry generation to LLD. This will allow Android to move from the Android-specific ELF note onto the dynamic entries. Change the behaviour of an unspecified --android-memtag-mode. Now, when unspecified, this will print a warning that you're doing a no-op, rather than implicitly turning on sync mode. This is important for MTE globals later, where a binary containing static tagged global descriptors shouldn't have MTE turned on without specific intent being passed to the linker. For now, continue to emit the Android ELF note by default. In future, we can probably make it only emit the note when provided a flag. Do a quick NFC-cleanup of the ELF note while we're here. It doesn't change anything about the ELF note itself, but makes it more clear to the reader of the code what alignment requirements are being (previously implicitly) met. Reviewed By: fmayer, MaskRay Differential Revision: https://reviews.llvm.org/D143769
-
usama hameed authored
since it is not supported Differential Revision: https://reviews.llvm.org/D144672
-
Peiming Liu authored
Instead of always materializing a new sparse tensor after reshape, this patch tries to fuses the reshape (currently only on COO) with GenericOp and coiterates with the reshaped tensors without allocating a new sparse tensor. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D145016
-
Jakub Kuderski authored
This makes the SPIR-V type converter first convert `index` element types to the right integer type. Fixes: https://github.com/llvm/llvm-project/issues/61054 Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D145090
-
Simon Pilgrim authored
As noticed on D144789, when we have pairs of min/max nodes we often end up with multiple comparisons which we could reuse with commuted select ops, so check to see if a suitable SETCC already exists. This also allowed us to remove a similar X86 peephole. There are other getSETCC cases where we could safely reuse other CondCodes as well - I've been trying to think of how we could reuse this logic in SelectionDAG but haven't found anything that always works well. An alternative would be to have a TLI callback that returns a preferred CondCode from a list of options, I've noticed this helped fpclamptosat tests on some other targets (MVE + WebAssembly), but other tests suffered. Differential Revision: https://reviews.llvm.org/D145065
-
Mitch Phillips authored
This adds functionality to readelf/readobj to specifically handle MTE-related bits, like the AARCH64_MEMTAG_* dynamic entries, and a decoder for the Android-specific ELF note. Reviewed By: jhenderson, MaskRay Differential Revision: https://reviews.llvm.org/D143693
-
Alex Brachet authored
Differential Revision: https://reviews.llvm.org/D144995
-
Michael Jones authored
When running the tbin2dec tests I found a rounding error in my code. Upon inspection I realized it was due to a lack of parenthesis when calculating the number of trailing digits. This patch fixes that mistake and adds unit tests to catch regressions in future. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D145011
-
Alex Brachet authored
-
Alex Brachet authored
-
Louis Dionne authored
-
Shivam kunwar authored
[libc++] implement move_iterator<T*> should be a random access iterator \n Differntial Revision- https://reviews.llvm.org/D135248
-
Sanjay Patel authored
issue #51397
-
Sanjay Patel authored
-
Kazu Hirata authored
This patch fixes: mlir/lib/Dialect/Linalg/Transforms/HoistPadding.cpp:37:13: error: unused function 'debugPrintLoopInShortForm' [-Werror,-Wunused-function]
-
Arthur Eubanks authored
No measurable compile time impact, but might as well resolve the TODO. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D145014
-
Arthur Eubanks authored
Rather than having a separate flag. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D145015
-
Anshil Gandhi authored
Reviewed By: foad Differential Revision: https://reviews.llvm.org/D145013
-
Anshil Gandhi authored
Reviewed By: foad Differential Revision: https://reviews.llvm.org/D145018
-
Ashay Rane authored
The `-serialize-diagnostics` flag requires a filename to be passed immediately after it, but the filename argument was skipped in the P1689.cppm clang test. This caused the code to incorrectly consume the argument that followed as the dignostics file. Since the `-serialize-diagnostics` flag isn't needed for this test to work, this patch removes it instead of passing a file argument. Differential Revision: https://reviews.llvm.org/D144934
-
Chris Cotter authored
The coroutineBodyStmt matcher matches CoroutineBodyStmt AST nodes. Differential Revision: https://reviews.llvm.org/D140794
-