- Apr 18, 2024
-
-
Matthias Springer authored
Move the documentation of the ownership-based buffer deallocation pass to a separate file. Also improve the documentation a bit and insert a figure that explains the `bufferization.dealloc` op (copied from the tutorial at the LLVM Dev Summit 2023).
-
- Apr 17, 2024
-
-
Matthias Springer authored
This commit fixes the following error when stopping the sparse compiler pipeline after bufferization (e.g., with `test-analysis-only`): ``` LLVM ERROR: Building op `vector.print` but it isn't known in this MLIRContext: the dialect may not be loaded or this operation hasn't been added by the dialect. See also https://mlir.llvm.org/getting_started/Faq/#registered-loaded-dependent-whats-up-with-dialects-management ```
-
Jan Patrick Lehr authored
Reverts llvm/llvm-project#88928 This broke the AMDGPU buildbots: https://lab.llvm.org/buildbot/#/builders/193/builds/50201 https://lab.llvm.org/staging/#/builders/185/builds/5565 https://lab.llvm.org/buildbot/#/builders/259/builds/2955
-
Vlad Serebrennikov authored
Convert it to scoped enum, and move it to namespace scope to enable forward declarations.
-
Matt Arsenault authored
We were running this immediately on the incoming IR, which is still littered with temporary allocas obscuring trivial values. This needs to run after initial SROA to handle sincos insertion.
-
Mikhail Goncharov authored
This reverts commit c309dc6d. Breaks builds, see discussion in https://github.com/llvm/llvm-project/pull/83124
-
Mikhail Goncharov authored
This reverts commit 5c6af605. Breaks builds, see discussion in https://github.com/llvm/llvm-project/pull/83124
-
Mikhail Goncharov authored
This reverts commit 0a789ea8. Breaks builds, see discussion in https://github.com/llvm/llvm-project/pull/83124
-
Jesse Huang authored
This patch adds the support for Zama16b version 1.0, which has been added to RVA23U64 optional extensions recently
-
YunQiang Su authored
If LLVM is configured with -DLLVM_DEFAULT_TARGET_TRIPLE, or compiler_rt is configured with -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE, while the argument is not normalized, such as Debian-style vendor-less triple, clang will try to find libclang_rt in lib/<normalized_triple>, while libclang_rt is placed into lib/<triple_arg>. Let's also place libclang_rt into lib/<normalized_triple>.
-
Vlad Serebrennikov authored
This makes it forward-declarable, and needed from splitting `Sema` up.
-
martinboehme authored
This patch includes a test that assert-fails without the fix.
-
Hideto Ueno authored
This commit adds `walk` method to PyOperationBase that uses a python object as a callback, e.g. `op.walk(callback)`. Currently callback must return a walk result explicitly. We(SiFive) have implemented walk method with python in our internal python tool for a while. However the overhead of python is expensive and it didn't scale well for large MLIR files. Just replacing walk with this version reduced the entire execution time of the tool by 30~40% and there are a few configs that the tool takes several hours to finish so this commit significantly improves tool performance.
-
martinboehme authored
This patch adds a test that assert-fails without the fix.
-
Balazs Benics authored
Relates to #88181
-
Balazs Benics authored
Fixes #88181
-
Mark de Wever authored
Per [tab:time.format.spec] %z The offset from UTC as specified in ISO 8601-1:2019, subclause 5.3.4.1. For example -0430 refers to 4 hours 30 minutes behind UTC. If the offset is zero, +0000 is used. The modified commands %Ez and %Oz insert a : between the hours and minutes: -04:30. If the offset information is not available, an exception of type format_error is thrown. Typically the modified versions Oz or Ez would have wording like The modified command %OS produces the locale's alternative representation. In this case the modified version does not depend on the locale. This change is a preparation for formatting sys_info which has time zone information. The function time_put<_CharT>::put() does not have proper time zone support, therefore it's a manual implementation. Fixes https://github.com/llvm/llvm-project/issues/78184 -
Craig Topper authored
Instead of searching all encodings, we can convert the encoding back to a register and use getMatchingSuperReg.
-
Kazu Hirata authored
llvm::SmallVector::operator== exactly meets our needs.
-
Jan Svoboda authored
This makes it possible to pass "-o /dev/null" to `clang-scan-deps` and skip some potentially expensive work, making timings less noisy. Also removes the need for stream redirection.
-
Jan Svoboda authored
The `clang-scan-deps` tool can be used for fast scanning of batches of compilation commands passed in via the `-compilation-database` option. This gets awkward in our tests where we have to resort to using `.in`/`.template` JSON files and running them through `sed` in order to embed LIT's `%t` variable into them. However, most of our tests only need to pass single compilation command, so this dance is entirely unnecessary. This patch makes sure the existing "per-file" mode (where the compilation command is passed in-line after the `--` argument) works for all output formats, not only `P1689`.
-
Brandon Wu authored
Currently the CFI offset for RVV registers are not handled entirely, this patch add those information for either stack unwinding or debugger to work correctly on RVV callee-saved stack object. Depends On D154576 Differential Revision: https://reviews.llvm.org/D156846
-
Luke Lau authored
The VTYPE operands of a vsetvli pseudo are always immediates
-
Congcong Cai authored
Reapply for #88765. Partially fixes: #60895.
-
Maksim Panchenko authored
RewriteInstance::isKSymtabSection() is deprecated.
-
Maksim Panchenko authored
getFileOffsetFor() was replaced with getFileOffsetForAddress().
-
Vitaly Buka authored
RFC: https://discourse.llvm.org/t/rfc-introduce-new-clang-builtin-builtin-allow-runtime-check/78281 --------- Co-authored-by:
Noah Goldstein <goldstein.w.n@gmail.com> Co-authored-by:
Aaron Ballman <aaron@aaronballman.com>
-
Vitaly Buka authored
Reverts llvm/llvm-project#88546 Leak and performance regression. Details in #88546
-
Michael Liao authored
- If a def operand includes multiple sub-operands, count them when generating instr info. - Found issues in x86 and sparc backends, where memory operands of store or store-like instructions are wrongly placed in the output list. Reviewers: jayfoad, arsenm, Pierre-vh Reviewed By: arsenm Pull Request: https://github.com/llvm/llvm-project/pull/88972
-
Michael Liao authored
- Those special register stores are STORE and their memory operands are input operands instead of output ones. Reviewers: JDevlieghere, arsenm, yinying-lisa-li, koachan, PeimingLiu, jyknight, aartbik, matthias-springer Reviewed By: arsenm Pull Request: https://github.com/llvm/llvm-project/pull/88971
-
Nikita Popov authored
This reverts commit 7d4e8c1f. Contrary to the commit description, this does cause large compile-time regressions (up to 10% on individual files).
-
Eli Friedman authored
Since 97fe519d, in ARM64EC mode, we don't define `__aarch64__`. Fix various preprocessor guards to account for this.
-
Prashant Kumar authored
…se of tensor pack When the vector sizes are not passed as inputs to the vector transform operation, the vector sizes are queried from the static result shape in the case of tensor.pack op.
-
Andy Kaylor authored
This change updates a few of the transformations in foldFMulReassoc to respect absent fast-math flags in cases where fmul and fdiv, fadd, or fsub instructions were being folded but the code was only checking for fast-math flags on the fmul instruction and was transferring flags to the folded instruction that were not present on the other original instructions. This fixes https://github.com/llvm/llvm-project/issues/82857
-
Keith Smiley authored
-
darkbuck authored
- With the memory operand as the destination, 'mr' variants of CFCMOV works like STORE and their memory operands should be input operands instead of output ones. Reviewers: XinWang10, arsenm Pull Request: https://github.com/llvm/llvm-project/pull/88970
-
Usama Hameed authored
The previous patch was reverted because the test fails to build when libsanitizers is not present. This patch catches the BuildError exception and skips the test appropriately. This patch tests LLDB integration with libsanitizers for ASan. rdar://111856681
-
Craig Topper authored
This is largely a revert of commit e8179667. As #88029 shows, there exists hardware that only supports unaligned scalar. I'm leaving how this gets exposed to the clang interface to a future patch.
-