- Jan 10, 2024
-
-
Florian Hahn authored
Re-add early exit that was accidentally dropped in 51afb101.
-
Boian Petkantchin authored
* Rename mesh.process_index -> mesh.process_multi_index. * Add mesh.process_linear_index op. * Add lowering of mesh.process_multi_index into an expression using mesh.process_linear_index, mesh.cluster_shape and affine.delinearize_index. This is useful to lower mesh ops and prepare them for further lowering where the runtime may have only the linear index of a device/process. For example in MPI we have a rank (linear index) in a communicator.
-
Visoiu Mistrih Francis authored
`!getdagop` expects the dag operator to be a def, and errors out if it's not. While that's true in most cases, when multiclasses are involved, the late resolution of the dag operator can result in it not being a def yet, but still have a proper type, wich is required to check against the optional parameter Ty in `!getdagop<Ty>`. e.g, in the following dag: ``` (!cast<TestInstruction>(TestInstructionAndPattern::NAME) foo) ``` the operator is a UnOpInit, but all we need here is to check its type. This fixes a bug where !getdagop is used to query the dag operator that is dependent on the multiclass, which is not yet resolved to a def. Once the folding is performed, the field becomes a record that can be queried.
-
Yingwei Zheng authored
This patch emits `ROTL(Cond, BitWidth - Shift)` directly in `ReduceSwitchRange`. This should give better codegen because `SimplifyDemandedBits` will break the rotation patterns in the original form. See also https://github.com/llvm/llvm-project/pull/73441 and the IR diff https://github.com/dtcxzyw/llvm-opt-benchmark/pull/115/files. This patch should cover most of cases handled by #73441.
-
Prathamesh Tagore authored
Successor to https://github.com/llvm/llvm-project/pull/74206 Partial fix to https://github.com/openxla/iree/issues/15367
-
HaohaiWen authored
This test tracks BranchFolding pass which removes fall through jump and leaves landing-pad to be machine basic block of no predecessors. It would raise bug as introduced in #77441.
-
John Brawn authored
Now that InstCombine canonicalises add+gep to gep+gep, LoopFlatten needs to recognise (gep (gep ptr (i*M)), j) as being something it can optimise.
-
Ulrich Weigand authored
When i128 is a legal type, SelectionDAG now attempts to use SRL_PARTS etc. with type i128, which is not implemented. Fix by marking those as Expand, just like we do for i64. Fixes https://github.com/llvm/llvm-project/issues/77132
-
Joseph Huber authored
Summary: The previous behaviour before I made it dynamically open libFFI was that these tests would be ignored if FFI was not found. This now allows tests to be run without the dependency and thus the tests fails on some buildbots. This simply makesit not build the tests if it's not present.
-
Michael Buch authored
This seems to have always been a redundant do-while since its introduction in `2e93a2ad`.
-
Ivan Kosarev authored
Resolves AsmParser ambiguities, e.g., between V_SUBREV_F16_t16_dpp8_gfx11 and V_SUBREV_F16_t16_dpp8_gfx12. Part of <https://github.com/llvm/llvm-project/issues/69256>.
-
Vivek Khandelwal authored
Signed-Off By: Vivek Khandelwal <vivekkhandelwal1424@gmail.com>
-
Simon Pilgrim authored
[X86] lower1BitShuffle - fold permute(setcc(x,y)) -> setcc(permute(x),permute(y)) for 32/64-bit element vectors Noticed in #77459 - for wider element types, its usually better to pre-shuffle the comparison arguments if we can, like we already for broadcasts
-
Leandro Lupori authored
-
Maciej Gabka authored
To make checking test easier, it is better to keep an order of the TLI mappings. This patch sorts all variants of the SLEEF and ArmPL mappings in the order of their base names. This patch also removes some extra inconsistent whitespace added to some of the entries.
-
Thomas Raoux authored
Add a check to validate that the schedule passed to the pipeliner transformation is valid and won't cause the pipeliner to break SSA. This checks that the for each operation in the loop operations are scheduled after their operands.
-
Yingwei Zheng authored
This patch folds the `log2_ceil` idiom: ``` (BW - ctlz(A)) + (is_power2(A) ? 0 : 1) -> zext(ctpop(A) >u/!= 1) + (ctlz(A, true) ^ (BW - 1)) (canonical form) -> BW - ctlz(A - 1, false) ``` Alive2: https://alive2.llvm.org/ce/z/6mSbdi
-
Leandro Lupori authored
-
darkfeline authored
This makes it easier to ship/install these using the builtin Emacs package format (in particular, a Version is required).
-
Simon Pilgrim authored
Missed these in 3210ce27 for the #77459 fix
-
Mark Harley authored
This patch introduces optimisations for SVE intrinsic function calls which have all false predicates.
-
Yingwei Zheng authored
This patch does the following folds: ``` bitwise(fshl (A, B, ShAmt), fshl(C, D, ShAmt)) -> fshl(bitwise(A, C), bitwise(B, D), ShAmt) bitwise(fshr (A, B, ShAmt), fshr(C, D, ShAmt)) -> fshr(bitwise(A, C), bitwise(B, D), ShAmt) bitwise(bswap(A), bswap(B)) -> bswap(bitwise(A, B)) bitwise(bswap(A), C) -> bswap(bitwise(A, bswap(C))) bitwise(bitreverse(A), bitreverse(B)) -> bitreverse(bitwise(A, B)) bitwise(bitreverse(A), C) -> bitreverse(bitwise(A, bitreverse(C))) ``` Alive2: https://alive2.llvm.org/ce/z/iZN_TL
-
Nikita Popov authored
Always emit canonical i8 GEPs, don't try to preserve the original element type. As this is a backend pass, trying to preserve the type is not useful.
-
Jay Foad authored
-
Stefan Gränitz authored
We can pass `-mcpu=native` to the clang driver to let it consider the host CPU when choosing the compile target for `clang-repl`. We can already achieve this behavior with `clang-repl -Xcc -mcpu=native`, but it seems like a reasonable default actually. The trade-off between optimizing for a specific CPU and maximum compatibility often leans towards the latter for static binaries, because distributing many versions is cumbersome. However, when compiling at runtime, we know the exact target CPU and we can use that to optimize the generated code. This patch makes a difference especially for "scattered" architectures like ARM. When cross-compiling for a Raspberry Pi for example, we may use a stock toolchain like arm-linux-gnueabihf-gcc. The resulting binary will be compatible with all hardware versions. This is handy, but they will all have `arm-linux-gnueabihf` as their host triple. Previously, this caused the clang driver to select triple `armv6kz-linux-gnueabihf` and CPU `arm1176jzf-s` as the REPL target. After this patch the default triple and CPU on Raspberry Pi 4b will be `armv8a-linux-gnueabihf` and `cortex-a72` respectively. With this patch clang-repl matches the host detection in Orc.
-
Nikita Popov authored
-
Nikita Popov authored
Always generate canonical i8 GEPs. Especially as this is a backend pass, trying to generate a "nice" GEP representation is not useful.
-
Nikita Popov authored
-
Benjamin Maxwell authored
This operation provides a convenient way to query the streaming vector length regardless of the streaming mode. This most useful for functions that call/pass data to streaming functions, but are not streaming themselves. Example: ```mlir %svl_w = arm_sme.streaming_vl <word> ``` Created based on discussion here: https://github.com/llvm/llvm-project/pull/76086#discussion_r1434226352
-
Lu Weining authored
psABI v2.30 requires the extreme code model instructions sequence (pcalau12i+addi.d+lu32i.d+lu52i.d) to be adjacent. See https://github.com/llvm/llvm-project/pull/71907 and https://github.com/loongson-community/discussions/issues/17 for details.
-
David Sherwood authored
Following on from https://github.com/llvm/llvm-project/pull/72273 which added the new AArch64 loop idiom transformation pass, this patch enables the pass by default for AArch64.
-
Yi Wu authored
This patch add support of intrinsics Fortran 2008 EXECUTE_COMMAND_LINE. The patch contains both the lowering and the runtime code and works on both Windows and Linux. The patch contains a list of commits, to convey the authorship and the history of changes. Some implementation specifics or status has been added to `flang/docs/Intrinsics.md`. I have provided a summary of the usage and the options required for the `EXECUTE_COMMAND_LINE intrinsic`. The intrinsic supports both a synchronous (by default) and an asynchronous option. | System | Mode | Implemention | |---------|-------|---------------------------| | Linux | Sync | std::system() | | Windows | Sync | std::system() | | Linux | Async | fork() | | Windows | Async | CreateProcess | Support for the SYSTEM GNU extension will be added in a separate PR. Co-authored with @jeffhammond --------- Signed-off-by:
Jeff Hammond <jeff.science@gmail.com> Co-authored-by:
Jeff Hammond <jeff.science@gmail.com> Co-authored-by:
Yi Wu <yiwu02@wdev-yiwu02.arm.com>
-
Hana Dusíková authored
Replace the discarded statement by an empty compound statement so we can keep track of the whole source range we need to skip in coverage Fixes #54419
-
David Green authored
This is an extension of https://github.com/llvm/llvm-project/pull/75774, with Any and All lowering added alongside Count.
-
martinboehme authored
Revert "[clang][dataflow] Add an early-out to `flowConditionImplies()` / `flowConditionAllows()`." (#77570) Reverts llvm/llvm-project#77453
-
paperchalice authored
-
avl-llvm authored
This patch backports https://github.com/llvm/llvm-project/pull/77016 into the DWARFLinkerParallel.
-
Nikita Popov authored
-
Martin Storsjö authored
If using multiarch directories with musl, the multiarch directory still uses *-linux-gnu triples - which may or may not be intentional, while it is somewhat consistent at least. However, for musl armhf targets, make sure that this also picks arm-linux-gnueabihf, rather than arm-linux-gnueabi.
-
Martin Storsjö authored
This applies the same change as in 760261a3 (where they were applied to libcxxabi and libcxx) to libunwind as well. These options can reasonably be set either as an absolute or relative path, but if set as type PATH, they are rewritten from relative into absolute relative to the build directory, while the relative form is intended to be relative to the install prefix.
-