- Sep 06, 2023
-
-
Benjamin Kramer authored
-
Alex Langford authored
Differential Revision: https://reviews.llvm.org/D159387
-
Chris Bowler authored
When a handle to an error_category singleton object is used during the termination phase of a program, the destruction of the error_category object may have occurred prior to execution of the current destructor or function registered with atexit, because the singleton object may have been constructed after the corresponding initialization or call to atexit. For example, the updated tests from this patch will fail if using a libc++ built using a compiler that updates the vtable of the object on destruction. This patch attempts to avoid the issue by causing the destructor to not be called in the style of ResourceInitHelper in src/experimental/memory_resource.cpp. This approach might not work if object lifetime is strictly enforced. Differential Revision: https://reviews.llvm.org/D65667 Co-authored-by:
Louis Dionne <ldionne.2@gmail.com>
-
Michael Maitland authored
WriteVFWRedOV_From and WriteVFWRedV_From SchedWrite classes exist already, but no pseudos were using the ordered SchedWrite. This change makes it so that the VFWREDOSUM pseudo used the ordered VFW SchedWrite.
-
Corentin Jabot authored
This was meant to be a test in my personal fork... This reverts commit ee53efde.
-
Slava Zakharin authored
With HLFIR the lbounds for the ALLOCATABLE result are taken from the mutable box created for the result, so the non-default lbounds might be propagated further causing incorrect result, e.g.: ``` program p real, allocatable :: p5(:) allocate(p5, source=real_init()) print *, lbound(p5, 1) ! must print 1, but prints 7 contains function real_init() real, allocatable :: real_init(:) allocate(real_init(7:8)) end function real_init end program p ``` With FIR lowering the box passed for `source` has explicit lower bound 1 at the call site, but the runtime box initialized by `real_init` call still has lower bound 7. I am not sure if the runtime box initialized by `real_init` will ever be accessed in a debugger via Fortran variable names, but I think that having the right runtime bounds that can be accessible via examining registers/stack might be good in general. So I decided to update the runtime bounds at the point of return. This change fixes the test above for HLFIR. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D156187 -
Amy Kwan authored
Compiling with TLS variables requires -pthread, but if the user omits this option, the compiler will not show any obvious indication during compilation that -pthread is needed for programs using TLS variables. Instead, the user will experience a segmentation fault when running programs with TLS variables in them and without specifying -pthread. This patch aims to generate .extern/.ref references to __tls_get_addr[DS] for local-exec accesses, in order to trigger an error from the linker to indicate that there is an undefined symbol to __tls_get_addr. Doing so will remind the user to compile/link with -pthread. Differential Revision: https://reviews.llvm.org/D151335
-
Antonio Frighetto authored
Reflect recent changes made to MachO `fileset_entry_command` struct.
-
cor3ntin authored
-
Jingu Kang authored
Differential Revision: https://reviews.llvm.org/D159447
-
Antonio Frighetto authored
Support printing of symbols for MachO of `MH_FILESET` type. This is achieved by extending `dumpSymbolNamesFromObject` to encompass fileset handling, and including an offset in `MachOObjectFile` class to locate embedded MachO headers. Differential Revision: https://reviews.llvm.org/D159294
-
Adrian Prantl authored
While it's the plugin's moral duty to also set the error, this code can't depend on that.
-
Simon Pilgrim authored
Pulled from the InstCombine with_overflow.ll tests
-
Michael Maitland authored
These values come from RISCVInstrInfoVPseudos.td. MF8 and MF2 were swapped by accident. Differential Revision: https://reviews.llvm.org/D159301
-
Mark de Wever authored
Depends on D158661 Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D158862
-
Mark de Wever authored
Depends on D158358 Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D158661
-
Jens Massberg authored
Differential Revision: https://reviews.llvm.org/D159450
-
Sam McCall authored
This happens because we print both the kind of the NNS and the kind of decl (when it refers to one). These are always the same string.
-
Abhinav271828 authored
-
Sergei Barannikov authored
The width of the APSInt values should be the width of an element. getCharByteWidth returns the size of an element in _host_ bytes, which makes the width N times greater, where N is the ratio between target's CHAR_BIT and host's CHAR_BIT. This is NFC for in-tree targets because all of them have CHAR_BIT == 8. Reviewed By: cor3ntin, aaron.ballman Differential Revision: https://reviews.llvm.org/D154773
-
Mark de Wever authored
The vendors of the MSVC STL, libstdc++ and libc++ have agreed [1] to make the C++23 modules std and std.compat available in C++20. This provides the std module; libc++ has not implemented the std.compat module yet. [1] https://github.com/microsoft/STL/issues/3945 Depends on D158357 Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D158358
-
Philip Reames authored
Each vslide1down operation is linear in LMUL on common hardware. (For instance, the sifive-x280 cost model models slides this way.) If we do a VL unique inserts, each with a cost linear in LMUL, the overall cost is O(VL*LMUL). Since VL is a linear function of LMUL, this means the current lowering is quadradic in both LMUL and VL. To avoid the degenerate case, fallback to the stack if the cost is more than a fixed (linear) threshold. For context, here's the sifive-x280 llvm-mca results for the current lowering and stack based lowering for each LMUL (using e64). Assumes code was compiled for V (i.e. zvl128b). buildvector_m1_via_stack.mca:Total Cycles: 1904 buildvector_m2_via_stack.mca:Total Cycles: 2104 buildvector_m4_via_stack.mca:Total Cycles: 2504 buildvector_m8_via_stack.mca:Total Cycles: 3304 buildvector_m1_via_vslide1down.mca:Total Cycles: 804 buildvector_m2_via_vslide1down.mca:Total Cycles: 1604 buildvector_m4_via_vslide1down.mca:Total Cycles: 6400 buildvector_m8_via_vslide1down.mca:Total Cycles: 25599 There are other schemes we could use to cap the cost. The next best is recursive decomposition of the vector into smaller LMULs. That's still quadratic, but with a better constant. However, stack based seems to cost better on all LMULs, so we can just go with the simpler scheme. Arguably, this patch is fixing a regression introduced with my D149667 as before that change, we'd always fallback to the stack, and thus didn't have the non-linearity. Differential Revision: https://reviews.llvm.org/D159332
-
Oleksandr "Alex" Zinenko authored
The matching condition for payload ops implementing TilingInterface was inverted. Fix it and add a test.
-
Craig Topper authored
This allows us to see the pass pipeline for GlobalISel.
-
- Sep 05, 2023
-
-
Oleksandr "Alex" Zinenko authored
Introduce a simple conversion of a memref.alloc/dealloc pair into an alloca in the same scope. Expose it as a transform op and a pattern. Allocas typically lower to stack allocations as opposed to alloc/dealloc that lower to significantly more expensive malloc/free calls. In addition, this can be combined with allocation hoisting from loops to further improve performance.
-
Paul T Robinson authored
Some flags named "IsLTO" and "IsThinLTO" implied they described compilation modes, but with Unified LTO this is no longer true. Rename these to "PrepForXXX" to be less confusing to readers. Also, deleted "IsThinOrUnifiedLTO" because Unified implies PrepareForThinLTO.
-
Oleksandr "Alex" Zinenko authored
Add an enum option to `transform.structured.match` operation to match payload operations implementing LoopLikeOpInterface.
-
Mark de Wever authored
The current generated ClangCommandLineReference.rst unconditionally escapes underscores. This leads odd output on the website https://clang.llvm.org/docs/ClangCommandLineReference.html For example -fchar8\_t, -fno-char8\_t Whether an underscore should be escaped depends on the state. Currently the escape routine doesn't keep track of the state and currently underscores are not used in places where they need to be escaped. Therefore remove the underscore from the list of escaped characters.
-
Alexey Bataev authored
May save some memory/compile time.
-
Amara Emerson authored
-
Alex Brachet authored
Linking the driver binary can take a long time, particularly with debug info. This adds an option to disable the driver build meant for local use. Differential Revision: https://reviews.llvm.org/D159130
-
yronglin authored
Signed-off-by:yronglin <yronglin777@gmail.com>
-
Sam James authored
As reported by mgorny at https://reviews.llvm.org/D159115#4638037, the unsigned long long cast fails on 32-bit systems at least with GCC. It looks like a pointer provenance/aliasing issue rather than a bug in GCC. Acked by Vassil Vassilev on the original revision.
-
Luke Lau authored
-
Joel E. Denny authored
Before <https://reviews.llvm.org/D154984> and <https://reviews.llvm.org/D156954>, lit reported full RUN lines in a `Script:` section. Now, in the case of lit's internal shell, it's the execution trace that includes them. However, if lit is configured to use an external shell (e.g., bash, windows `cmd`), they aren't reported at all. A fix was requested at the following: * <https://reviews.llvm.org/D154984#4627605> * <https://discourse.llvm.org/t/rfc-improving-lits-debug-output/72839/35?u=jdenny-ornl> This patch does not correctly address the case when the external shell is windows `cmd`. As discussed at <https://github.com/llvm/llvm-project/pull/65242>, it's not clear whether that's a use case that people still care about, and it seems to be generally broken anyway.
-
Florian Hahn authored
Add a dedicated debug location to VPRecipeBase to remove another unneeded use of the underlying LLVM IR instruction and also consolidate various DL fields in sub classes. Each recipe can have debug location and it shouldn't rely on reference to the underlying LLVM IR instructions to retain it. See various recipes that had separate DL fields already.
-
Siva Chandra Reddy authored
Few printf config options have been setup using this new config system along with their baremetal overrides. A follow up patch will add generation of doc/config.rst, which will contain the full list of libc config options and short description explaining how they affect the libc. Reviewed By: gchatelet Differential Revision: https://reviews.llvm.org/D159158
-
Stephen Tozer authored
Re-application of the Dexter builder removal reversed due to continued errors on the green dragon LLDB buildbot: https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/59716/ Cause of the error is unclear, but it looks as though there is some unexpected non-determinism in the test failures. This reverts commit 32327045.
-
Vladislav Dzhidzhoev authored
When having <N x t> d1, unused = unmerge(G_EXT <2*N x t> v1, undef, N), it is possible to express it just as unused, d1 = unmerge v1. It is useful for tackling regressions in arm64-vcvt_f.ll, introduced in https://reviews.llvm.org/D144670.
-
Vladislav Dzhidzhoev authored
This reverts commit 6b37a652. Accindentally pushed before squashing.
-