- Jul 13, 2023
-
-
Aaron Ballman authored
We've completed the transition from SVN to Git, and the listed projects are not included in the repository.
-
Aaron Ballman authored
This wasn't causing any bots to fail, so is just minor cleanup.
-
Valentin Clement authored
Add support for the `.and.` reduction operator in Flang/OpenACC lowering. Depends on D154888 Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D154896
-
Valentin Clement authored
The return type of the recipe must match the array slice provided by the user. This patch enhance the recipe creation to take into account the constant slices. Depends on D154657 Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D154727
-
Valentin Clement authored
Similiar to D154259 for private recipe, this patch makes use of the same code for the init region of the firstprivate recipe and populate the copy region for trivial types and arrays. Reviewed By: razvanlupusoru Differential Revision: https://reviews.llvm.org/D154657
-
Shilei Tian authored
This patch adds initial support for the `AAAddressSpace` abstract attributor interface to deduce and query address space information for a pointer. We simply query the underlying objects that a pointer can point to and find a common address space if they exist. This is the minimal support for the interface, we currently manifest changes on loads and stores. Additionally we should use the target transform information to deduce if an address space transformation is a no-op for the target machine when calculating compatibility. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D120586
-
Fangrui Song authored
Ideally BTFParserTest.cpp should test both little-endian and big-endian, but I push this commit to fix the immediate issue for now.
-
Edoardo Sanguineti authored
Currently, there are no tests to confirm without a doubt the constructor of latch is really constexpr and explicit. I think this would be an addition that it would not harm to have. In another revision, I was asked to add tests for an almost identical case which made me consider adding this test for the latch class too. Reviewed By: #libc, philnik Spies: philnik, libcxx-commits, kristof.beyls Differential Revision: https://reviews.llvm.org/D154957
-
Edoardo Sanguineti authored
If I read the standard correctly, the public constructor of "barrier" should be marked as "constexpr explicit". I see some of the internal classes used by the barrier header are correctly marked but I think, if I'm not mistaken, the standard would like the public class to have the correct definition as well. Because the implementation that llvm uses by default is not constexpr friendly at this time, this revision will focus on only marking it as explicit. Reviewed By: #libc, philnik, Mordante Spies: philnik, Mordante, libcxx-commits Differential Revision: https://reviews.llvm.org/D154590
-
Eli Friedman authored
replaceCongruentIVs analysis is based on ScalarEvolution; this makes comparing different PHIs and performing the replacement straightforward. However, it can have some side-effects: it isn't aware whether an induction variable is in canonical form, so it can perform replacements which obscure the meaning of the IR. In test22 in widen-loop-comp.ll, the resulting loop can't be analyzed by ScalarEvolution at all. My attempted solution is to restrict the transform: don't try to replace induction variables using PHI nodes that don't represent simple induction variables. I'm not sure if this is the best solution; suggestions welcome. Differential Revision: https://reviews.llvm.org/D121950
-
Anna Thomas authored
This patch adds support for vectorized reduction of maximum/minimum intrinsics which are under the appropriate reduction kind. Differential Revision: https://reviews.llvm.org/D154463
-
Anna Thomas authored
minimum/maximum tests from D154463. This contains tests where we vectorize minimum/maximum as well as the tests where we currently do not identify reduction patterns. Differential Revision: https://reviews.llvm.org/D155096
-
Jon Roelofs authored
This reverts commit b76c85b3. It broke the RISCV-enabled bots. Oops.
-
Andrés Villegas authored
Switch the parse of command line options from llvm::cl to OptTable. The motivation for this change is to continue adding llvm based tools to the llvm driver multicall. For more information about the proposal and motivation, please see https://discourse.llvm.org/t/rfc-llvm-busybox-proposal/58494 Reviewed By: abrachet Differential Revision: https://reviews.llvm.org/D154642
-
Jon Roelofs authored
TargetLowering::SimplifySetCC wants to swap the operands of a SETCC to canonicalize the constant to the RHS. The bug here was that it did so whether or not the RHS was already a constant, leading to an infinite loop. rdar://111847838 Differential revision: https://reviews.llvm.org/D155095
-
Kazuki Sakamoto authored
RFC https://discourse.llvm.org/t/rfc-python-callback-for-target-get-module/71580 Use SWIG for the locate module callback the same as other Python callbacks. TestLocateModuleCallback.py verifies the functionalities. Differential Revision: https://reviews.llvm.org/D153735
-
Chia-hung Duan authored
This reverts commit 2f04b688. Reviewed By: cferris Differential Revision: https://reviews.llvm.org/D155015
-
Kazuki Sakamoto authored
RFC https://discourse.llvm.org/t/rfc-python-callback-for-target-get-module/71580 Updated Target::GetOrCreateModule to call locate module callback if set. - include/lldb/Target/Platform.h, source/Target/Platform.cpp - Implemented SetLocateModuleCallback and GetLocateModuleCallback* - include/lldb/Target/Target.h, source/Target/Target.cpp - Implemented CallLocateModuleCallbackIfSet. - unittests/Target/LocateModuleCallbackTest.cpp - Added comprehensive GetOrCreateModule tests. Differential Revision: https://reviews.llvm.org/D153734
-
Kazuki Sakamoto authored
RFC https://discourse.llvm.org/t/rfc-python-callback-for-target-get-module/71580 SBFileSpec and SBModuleSpec will be used for locate module callback as Python function arguments. This diff allows these things. - Can be instantiated from SBPlatform. - Can be passed to/from Python. - Can be accessed for object offset and size. Differential Revision: https://reviews.llvm.org/D153733
-
Sindhu Chittireddy authored
Fix clang-format issues in surrounding code. Differential revision: https://reviews.llvm.org/D153892
-
Louis Dionne authored
The oldest deployment target supported by Xcode 14 is macOS 10.13. Trying to back-deploy to older targets runs into other issues in Clang, so stop testing libc++ against unsupported deployment targets. This patch doesn't attempt to clean up support for older deployment targets from the code base -- this will be done in a follow-up patch. Differential Revision: https://reviews.llvm.org/D155085
-
Petr Hosek authored
This reverts commit 926f3759.
-
Louis Dionne authored
This simply moves existing CI-related scripts for Clang outside of libc++ to make the two projects independent with respect to CI. The reason for making this change is that libc++'s CI pipeline history was full of Clang runs, making it a lot harder to figure out information about libc++'s own jobs. I created a pipeline for Clang and this patch will run pre-commit CI for Clang inside that pipeline instead. Differential Revision: https://reviews.llvm.org/D155078
-
Lei Huang authored
Add td definitions and asm/disasm tests for the quantum conversion instructions in ISA 3.1 section 5.6.5 Reviewed By: stefanp Differential Revision: https://reviews.llvm.org/D154394
-
Petr Hosek authored
Unlike COMPILER_RT_HAS_CRT this handles the case where CRT is available but has been disabled by setting COMPILER_RT_BUILD_CRT.
-
Qiongsi Wu authored
`libLTO` currently ignores the `-f[no-]integrated-as` flags. This patch teaches `libLTO` to respect them on AIX. The implementation consists of two parts: # Migrate `llc`'s `-no-integrated-as` option to a codegen option so that the option is available to `libLTO`/`lld`/`gold`. # Teach `clang` to pass `-no-integrated-as` accordingly to `libLTO` depending on the `-f[no-]integrated-as` flags. On platforms other than AIX, the `-f[no-]integrated-as` flags are ignored. Reviewed By: MaskRay, steven_wu Differential Revision: https://reviews.llvm.org/D152924
-
varconst authored
It's no longer necessary to define `_DEBUG` because we use our own internal assertion mechanism in libc++. Differential Revision: https://reviews.llvm.org/D155038
-
Matt Arsenault authored
Improve computeKnownFPClass select handling to cover the case where the condition performs a class test. This allows us to recognize no-nans in cases like: %not.nan = fcmp ord float %x, 0.0 %select = select i1 %not.nan, float %x, float 0.0 Math library code has similar edge case filtering on the inputs and final results. https://reviews.llvm.org/D153089
-
Matt Arsenault authored
Prepare to handle class clamping patterns. Working around some kind of select special casing bug in attributor where computeKnownFPClass is never called on select.
-
Matt Arsenault authored
This is now just a wrapper around computeKnownFPClass.
-
varconst authored
This patch only adds new configuration knobs -- the actual assertions will be added in follow-up patches. Differential Revision: https://reviews.llvm.org/D153902
-
varconst authored
When inserting nodes into a forward list, each new node is allocated but not constructed. The constructor was being called explicitly on the node `value_` but the `next_` pointer remained uninitialized rather than being set to null. This bug is only triggered in the cleanup code if an exception is thrown -- upon successful creation of new nodes, the last incorrect "next" value is overwritten to a correct pointer. This issue was found due to new tests added in https://reviews.llvm.org/D149830. Differential Revision: https://reviews.llvm.org/D152327
-
Tom Eccles authored
hlfir.get_length will not modify the buffer and so it is safe for a hlfir.associate using the same expression buffer not to make its own copy. Differential Revision: https://reviews.llvm.org/D154942
-
Tai Ly authored
Remove Tosa_Tensor1Dto4D and Tosa_TensorUpto4D in the Tosa Dialect and added level checks to TosaValidation pass to validate per spec. Signed-off-by:
Tai Ly <tai.ly@arm.com> Change-Id: Icd32137e9f8051f99994cee9f388f20c1a840f4b Reviewed By: eric-k256 Differential Revision: https://reviews.llvm.org/D154273
-
Nick Desaulniers authored
The `Uses` variable is unnecessary. Just use `UsesNum` instead. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D155020
-
Eduard Zingerman authored
"BTF" is a debug information format used by LLVM's BPF backend. The format is much smaller in scope than DWARF, the following info is available: - full set of C types used in the binary file; - types for global values; - line number / line source code information . BTF information is embedded in ELF as .BTF and .BTF.ext sections. Detailed format description could be found as a part of Linux Source tree, e.g. here: [1]. This commit modifies `llvm-objdump` utility to use line number information provided by BTF if DWARF information is not available. E.g., the goal is to make the following to print source code lines, interleaved with disassembly: $ clang --target=bpf -g test.c -o test.o $ llvm-strip --strip-debug test.o $ llvm-objdump -Sd test.o test.o: file format elf64-bpf Disassembly of section .text: <foo>: ; void foo(void) { r1 = 0x1 ; consume(1); call -0x1 r1 = 0x2 ; consume(2); call -0x1 ; } exit A common production use case for BPF programs is to: - compile separate object files using clang with `-g -c` flags; - link these files as a final "static" binary using bpftool linker ([2]). The bpftool linker discards most of the DWARF sections (line information sections as well) but merges .BTF and .BTF.ext sections. Hence, having `llvm-objdump` capable to print source code using .BTF.ext is valuable. The commit consists of the following modifications: - llvm/lib/DebugInfo/BTF aka `DebugInfoBTF` component is added to host the code needed to process BTF (with assumption that BTF support would be added to some other tools as well, e.g. `llvm-readelf`): - `DebugInfoBTF` provides `llvm::BTFParser` class, that loads information from `.BTF` and `.BTF.ext` sections of a given `object::ObjectFile` instance and allows to query this information. Currently only line number information is loaded. - `DebugInfoBTF` also provides `llvm::BTFContext` class, which is an implementation of `DIContext` interface, used by `llvm-objdump` to query information about line numbers corresponding to specific instructions. - Structure `DILineInfo` is modified with field `LineSource`. `DIContext` interface uses `DILineInfo` structure to communicate line number and source code information. Specifically, `DILineInfo::Source` field encodes full file source code, if available. BTF only stores source code for selected lines of the file, not a complete source file. Moreover, stored lines are not guaranteed to be sorted in a specific order. To avoid reconstruction of a file source code from a set of available lines, this commit adds `LineSource` field instead. - `Symbolize` class is modified to use `BTFContext` instead of `DWARFContext` when DWARF sections are not available but BTF sections are present in the object file. (`Symbolize` is instantiated by `llvm-objdump`). - Integration and unit tests. Note, that DWARF has a notion of "instruction sequence". DWARF implementation of `DIContext::getLineInfoForAddress()` provides inexact responses if exact address information is not available but address falls within "instruction sequence" with some known line information (see `DWARFDebugLine::LineTable::findRowInSeq()`). BTF does not provide instruction sequence groupings, thus `getLineInfoForAddress()` queries only return exact matches. This does not seem to be a big issue in practice, but output of the `llvm-objdump -Sd` might differ slightly when BTF is used instead of DWARF. [1] https://www.kernel.org/doc/html/latest/bpf/btf.html [2] https://github.com/libbpf/bpftool Depends on https://reviews.llvm.org/D149501 Reviewed By: MaskRay, yonghong-song, nickdesaulniers, #debug-info Differential Revision: https://reviews.llvm.org/D149058 -
Nick Desaulniers authored
Rather than open coding the same implementation. Reviewed By: MaskRay, void Differential Revision: https://reviews.llvm.org/D154996
-
Ted Woodward authored
"line 0" in a DWARF linetable means something that doesn't have associated source. The code for mixed disassembly has a comment indicating that "line 0" should be skipped, but the wrong value was returned. Fix the return value and add a test to check that we don't incorrectly show source lines from the beginning of the file. Reviewed By: jasonmolenda Differential Revision: https://reviews.llvm.org/D112931
-
Craig Topper authored
D152023 made ubsan consider __builtin_clz of 0 undefined regardless of the target. This ensures portability and matches gcc. This causes the ACLE intrinsics to also be considered to also be considered to be undefined for 0 since they used the generic builtins as their implementation. This patch adds builtins for ARM that ubsan doesn't know about to make the behavior defined for 0. Alternatively, I could have added a zero check to the intrinsics, but the dedicated builtin will give better -O0 codegen. Fixes #63113. Reviewed By: tmatheson Differential Revision: https://reviews.llvm.org/D154915
-
- Jul 12, 2023
-
-
Matthias Springer authored
Generalize `extractFromI64ArrayAttr` to `extractFromIntegerArrayAttr`, so that arbitrary integer/bool types can be extracted. Differential Revision: https://reviews.llvm.org/D154974
-