- Jun 17, 2023
-
-
Joseph Huber authored
This patch adds a test directly for the `fputs` function similar to the existing `puts` test. This lets us know that the default file pointers are function and the `fputs` interface works. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D152288
-
- Jun 16, 2023
-
-
Felipe de Azevedo Piovezan authored
We will soon need different kinds of iterators We also use one of LLVM's iterator classes to implement some basic iterator operations. Differential Revision: https://reviews.llvm.org/D153065
-
Dan McGregor authored
When expanding template arguments for pretty function printing, such as for __PRETTY_FUNCTION__, make TypePrinter apply macro-prefix-map remapping to anonymous tags such as lambdas. Fixes https://github.com/llvm/llvm-project/issues/63219 Reviewed By: MaskRay, aaron.ballman Differential Revision: https://reviews.llvm.org/D152570
-
Wanyi Ye authored
[D148775](https://reviews.llvm.org/D148775) changed the help msg for `--addresses-from-stdin` option when switching to OptTable This patch also fixed a small problem in the argument type error msg Test Plan: NFC Differential Revision: https://reviews.llvm.org/D153086
-
Alex Brachet authored
These are the only variables I could find that use LIBC_INLINE. Note, these are namespace scoped constexpr so local linkage is implied. inline is useful here to silence clang's unused-const-variable variable. For Fuchsia, the distinction between LIBC_INLINE and LIBC_INLINE_VAR is helpful because we define LIBC_INLINE as `[[gnu::always_inline]] inline` when building with gcc. This isn't meaningful on variables. Alternatively, we could make these variables simply constexpr and also add `[[maybe_unused]]` Reviewed By: sivachandra, mcgrathr Differential Revision: https://reviews.llvm.org/D152951
-
Mark de Wever authored
Some small style updates as drive-by. Reviewed By: ChuanqiXu Differential Revision: https://reviews.llvm.org/D153038
-
Mark de Wever authored
The development of C++23 is complete, so these issues will be adopted in C++26 (or later). Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D153053
-
Amaury Séchet authored
-
Fangrui Song authored
For unclaimed target-agnostic options, we can apply clang_ignored_gcc_optimization_f_Group to accept but warn about them. ``` % clang -c -fexpensive-optimizations a.c clang: warning: optimization flag '-fexpensive-optimizations' is not supported [-Wignored-optimization-argument] ``` For an unclaimed target-specific option, one target may want to accept but warn about it. Add `llvm::opt::Arg::IgnoredTargetSpecific` to support this warning need. Close https://github.com/llvm/llvm-project/issues/63282 Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D152856
-
Amaury Séchet authored
-
Florian Hahn authored
Update VPWidenGEPRecipe::execute to use the VPValue operands of the recipe when creating the GEP instruction. Fixes #63340.
-
LLVM GN Syncbot authored
-
Nikolas Klauser authored
This will also be used in some PSTL backends. Reviewed By: ldionne, #libc, Mordante Spies: arichardson, mstorsjo, Mordante, sstefan1, jplehr, libcxx-commits Differential Revision: https://reviews.llvm.org/D152208
-
Ingo Müller authored
Both the mlir-cpu-runner and the execution engine allow to provide a list of shared libraries that should be loaded into the process such that the jitted code can use the symbols from those libraries. The runner had implemented a protocol that allowed libraries to control which symbols it wants to provide in that context (with a function called __mlir_runner_init). In absence of that, the runner would rely on the loading mechanism of the execution engine, which didn't do anything particular with the symbols, i.e., only symbols with public visibility were visible to jitted code. Libraries used a mix of the two mechanisms: while the runner utils and C runner utils libs (and potentially others) used public visibility, the async runtime lib (as the only one in the monorepo) used the loading protocol. As a consequence, the async runtime library could not be used through the Python bindings of the execution engine. This patch moves the loading protocol from the runner to the execution engine. For the runner, this should not change anything: it lets the execution engine handle the loading which now implements the same protocol that the runner had implemented before. However, the Python binding now get to benefit from the loading protocol as well, so the async runtime library (and potentially other out-of-tree libraries) can now be used in that context. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D153029
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Jay Foad authored
-
Simon Pilgrim authored
This finally allows x86 globalisel to lower addition/subtraction of illegal types without fallback :)
-
Saleem Abdulrasool authored
This reverts commit c1cf459c. Reverting to permit time to explore the underlying issue. This change regressed the clang-PPC64-AIX and m68k-linux-cross builders. Differential Revision: https://reviews.llvm.org/D153138 Reviewed By: compnerd
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D148689
-
Nikita Popov authored
Don't swap the operands if they're the same. Fixes the issue reported at https://reviews.llvm.org/D152541#4427017.
-
Louis Dionne authored
-
Louis Dionne authored
This allows mechanically copying any changes made to `operator new` from libc++ into libc++abi as-is. This is also a step towards de-duplicating this code entirely. Differential Revision: https://reviews.llvm.org/D153035
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D149846
-
Alan Hu authored
Commit 434e9561 renamed link_modules to link_modules' for unclear reasons. Based on the commit's diff, the author possibly intended to have two functions, link_modules to bind to LLVMLinkModules and link_modules' to bind to LLVMLinkModules2. However, there is only one function. link_modules' appears in LLVM 3.8 onwards. Differential Revision: https://reviews.llvm.org/D153090
-
Haojian Wu authored
-
Nikita Popov authored
Fix the issue reported at https://reviews.llvm.org/rG724f4a5bac25#inline-9083, by specifying the correct insertion point for the new phi.
-
Nikita Popov authored
-
Simon Pilgrim authored
Extend the G_UADDE handling to also support G_USUBE
-
Hans Wennborg authored
See the discussion in https://discourse.llvm.org/t/generic-llvm-ir-windows-x64-argument-passing-issue-in-llvm-11-0-0-and-later/71350 D51842 implemented byval lowering for Win64. D83175 made the call lowering honor the "from now on treat this as a regular pointer" comment also when the argument gets passed on the stack. However, it didn't update the callee side. Differential revision: https://reviews.llvm.org/D153020
-
Viktoriia Bakalova authored
Differential Revision: https://reviews.llvm.org/D153015
-
Guray Ozen authored
It introduces `mbarrier.arrive` that are in ptx78. Reviewed By: qcolombet Differential Revision: https://reviews.llvm.org/D153021
-
Guray Ozen authored
Introduce support for PTX's `mbarrier.inval` . Contiunation of D151334 Reviewed By: qcolombet Differential Revision: https://reviews.llvm.org/D151338
-
Guray Ozen authored
NV GPUs provides split arrive/wait barriers that one can syncronize a subgroup of threads in CTA. It is particularly important for Hopper GPUs and allows tracking engines like TMA. See for more details: https://docs.nvidia.com/cuda/parallel-thread-execution/#parallel-synchronization-and-communication-instructions-mbarrier This initial implementation sets the foundation for future enhancements and additions. Reviewed By: qcolombet Differential Revision: https://reviews.llvm.org/D151334
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D153122
-
Benjamin Kramer authored
-
Nikita Popov authored
With opaque pointers, it should no longer be necessary to protect against recursion when converting Clang types to LLVM types, as recursion can only be introduced via pointer types. Differential Revision: https://reviews.llvm.org/D152999
-
Jaroslav Sevcik authored
-
Simon Pilgrim authored
-
Nikita Popov authored
s390x looks through pointers when determining the "externally visible vector ABI". For that reason, the test shows different behavior just on that platform. Adjust the test in the reverse direction of what I originall did: Make sure that the type behind the pointer is always queried, by dereferencing the pointer.
-