- Sep 09, 2022
-
-
Nicolas Vasilache authored
[mlir][vector] Extend WarpExecutionOnLane0 pattern support to allow deduplicating identical yield values. Differential Revision: https://reviews.llvm.org/D133573
-
Peter Steinfeld authored
Changes to build instructions based on the latest requirements with compiler-rt. Differential Revision: https://reviews.llvm.org/D131041
-
Sebastian Neubauer authored
The LLVM performance tips suggest that allocas should be placed at the beginning of the entry block. So far, llvm doesn’t provide any helper to find that position. Add BasicBlock::getFirstNonPHIOrDbgOrAlloca and IRBuilder::SetInsertPointPastAllocas(Function*) that get an insert position after the (static) allocas at the start of a function and use it in ShadowStackGCLowering. Differential Revision: https://reviews.llvm.org/D132554
-
Carlos Alberto Enciso authored
As discussed here: https://discourse.llvm.org/t/build-llvm-release-bat-script-options Add a function to parse command line arguments: `parse_args`. The format for the arguments is: Boolean: --option Value: --option<separator>value with `<separator>` being: space, colon, semicolon or equal sign Command line usage example: my-batch-file.bat --build --type=release --version 123 It will create 3 variables: `build` with the value `true` `type` with the value `release` `version` with the value `123` Usage: set "build=" set "type=" set "version=" REM Parse arguments. call :parse_args %* if defined build ( ... ) if %type%=='release' ( ... ) if %version%=='123' ( ... )
-
Nikita Popov authored
-
Guray Ozen authored
This revision retires LinalgStrategyEnablePass. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D133557
-
Pavel Labath authored
Uses our existing "error string" extension to provide a better indication of why the launch failed (the client does not make use of the error yet). Also, fix the way we obtain the launch error message (make sure we read the whole message, and skip trailing garbage), and reduce the size of TestLldbGdbServer by splitting some tests into a separate file. Differential Revision: https://reviews.llvm.org/D133352
-
Pavel Labath authored
The Read function could end up blocking if data (or EOF) arrived just as it was about to start waiting for the events. This was only discovered now, because we did not have unit tests for this functionality before. We need to check for data *after* we start listening for incoming events. There were no changes to the read thread code needed, as we already use this pattern in SynchronizeWithReadThread, so I just updated the comments to make it clear that it is used for reading as well. Differential Revision: https://reviews.llvm.org/D133410
-
Simon Pilgrim authored
Noticed while investigating BITREVERSE cost numbers with the D103695 script - VPPERM folded loads was using the WriteVarShuffleX defaults and was missing an override like the VPPERM reg-reg variants
-
Thomas Symalla authored
-
Aaron Ballman authored
Addresses the issue found by: https://lab.llvm.org/buildbot/#/builders/30/builds/25791 We can use anonymous references rather than explicit ones.
-
Namhyung Kim authored
It doesn't have a section header string table so add a vector to have the strings and create name based on the program header type and the index. Differential Revision: https://reviews.llvm.org/D131290
-
Serge Pavlov authored
Clang has support of virtual file system for the purpose of testing, but treatment of config files did not use it. This change enables VFS in it as well. Differential Revision: https://reviews.llvm.org/D132867
-
Nikita Popov authored
If there are non-load/store users of the promoted pointer, we currently abort promotion. However, having such users isn't really relevant to the transform. We already separately check that a) there are no instructions that modref the promoted pointer and b) that a pointer capture disables store promotion. In the affected @test_captured_in_loop test case we have a readnone capture of the promoted pointer, which means that load promotion can be performed (while store promotion cannot). Differential Revision: https://reviews.llvm.org/D133485
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D133414
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D133412
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D133492
-
Simon Pilgrim authored
-
Nicolas Vasilache authored
Differential Revision: https://reviews.llvm.org/D133559
-
Serge Pavlov authored
This reverts commit 9424497e. Some buildbots failed, reverted for investigation.
-
Brad Smith authored
Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D133553
-
Serge Pavlov authored
Clang has support of virtual file system for the purpose of testing, but treatment of config files did not use it. This change enables VFS in it as well. Differential Revision: https://reviews.llvm.org/D132867
-
Graham Hunter authored
-
Djordje Todorovic authored
This reverts commit 053841c5. We faced a use-after-free after pushing the D113291, since the foldSqrt() has a call to eraseFromParent(). The function should be at the end of the main loop that folds the patterns. This patch fixes that.
-
serge-sans-paille authored
The default install direction may not be in the compiler search path. Differential Revision: https://reviews.llvm.org/D133420
-
Vitaly Buka authored
This resolves TODO from D96406. InstCombine issue is fixed with D133394. Save 4.5% of .text on CTMark.
-
Benjamin Kramer authored
-
Alvin Wong authored
This option can be used to enable Control Flow Guard checks and generation of address-taken function table. They are equivalent to `/guard:cf` and `/guard:cf,nochecks` in clang-cl. Passing this flag to the Clang driver will also pass `--guard-cf` to the MinGW linker. This feature is disabled by default. The option `-mguard=none` is also available to explicitly disable this feature. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D132810
-
Alvin Wong authored
These will be LLD-specific options to support Control Flow Guard for the MinGW target. They are disabled by default, but enabling `--guard-cf` will also enable `--guard-longjmp` unless `--no-guard-longjmp` is also specified. These options maps to `-guard:cf,[no]longjmp`. Note that these features require the `_load_config_used` symbol to contain the load config directory and be filled with the required symbols. While current versions of mingw-w64 do not supply this symbol, the user can provide their own version of it. Reviewed By: MaskRay, rnk Differential Revision: https://reviews.llvm.org/D132808
-
Thomas Raoux authored
Only apply the pattern if the transfer_read can be distributed for all its uses. Differential Revision: https://reviews.llvm.org/D133538
-
gonglingqin authored
According to the revised description in `LoongArch Reference Manual v1.02`, frint.[s/d] does not judge whether floating-point inexact exceptions are allowed indicated by FCSR, i.e. always executes roundToIntegralExact(x). What's more, the manual also specifically defines that frint.s/d is only necessary to be defined in LA64. So ISD::FRINT is legal for LA64. Differential Revision: https://reviews.llvm.org/D133337
-
Craig Topper authored
Fixes PR57576. Differential Revision: https://reviews.llvm.org/D133471
-
Jakub Kuderski authored
Reviewed By: antiagainst, Mogball Differential Revision: https://reviews.llvm.org/D133136
-
Christopher Bate authored
This change adds a set of utilities to replace the result of a `tensor.collapse_shape -> tensor.extract_slice` chain with the equivalent result formed by aggregating slices of the `tensor.collapse_shape` source. In general, it is not possible to commute `extract_slice` and `collapse_shape` if linearized dimensions are sliced. The i-th dimension of the `tensor.collapse_shape` result is a "linearized sliced dimension" if: 1) Reassociation indices of tensor.collapse_shape in the i'th position is greater than size 1 (multiple dimensions of the input are collapsed) 2) The i-th dimension is sliced by `tensor.extract_slice`. We can work around this by stitching together the result of `tensor.extract_slice` by iterating over any linearized sliced dimensions. This is equivalent to "tiling" the linearized-and-sliced dimensions of the `tensor.collapse_shape` operation in order to manifest the result tile (the result of the `tensor.extract_slice`). The user of the utilities must provide the mechanism to create the tiling (e.g. a loop). In the tests, it is demonstrated how to apply the utilities using either `scf.for` or `scf.foreach_thread`. The below example illustrates the pattern using `scf.for`: ``` %0 = linalg.generic ... -> tensor<3x7x11x10xf32> %1 = tensor.collapse_shape %0 [[0, 1, 2], [3]] : ... to tensor<341x10xf32> %2 = tensor.extract_slice %1 [13, 0] [10, 10] [2, 1] : .... tensor<10x10xf32> ``` We can construct %2 by generating the following IR: ``` %dest = linalg.init_tensor() : tensor<10x10xf32> %2 = scf.for %iv = %c0 to %c10 step %c1 iter_args(%arg0) -> tensor<10x10xf32> { // Step 1: Map this output idx (%iv) to a multi-index for the input (%3): %linear_index = affine.apply affine_map<(d0)[]->(d0*2 + 11)>(%iv) %3:3 = arith.delinearize_index %iv into (3, 7, 11) // Step 2: Extract the slice from the input %4 = tensor.extract_slice %0 [%3#0, %3#1, %3#2, 0] [1, 1, 1, 10] [1, 1, 1, 1] : tensor<3x7x11x10xf32> to tensor<1x1x1x10xf32> %5 = tensor.collapse_shape %4 [[0, 1, 2], [3]] : tensor<1x1x1x10xf32> into tensor<1x10xf32> // Step 3: Insert the slice into the destination %6 = tensor.insert_slice %5 into %arg0 [%iv, 0] [1, 10] [1, 1] : tensor<1x10xf32> into tensor<10x10xf32> scf.yield %6 : tensor<10x10xf32> } ``` The pattern was discussed in the RFC here: https://discourse.llvm.org/t/rfc-tensor-extracting-slices-from-tensor-collapse-shape/64034 Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D129699 -
Jakub Kuderski authored
This reverts commit 45b5e8ab. Relands https://reviews.llvm.org/D133135 after fixing shared libs builds.
-
Sheng authored
-
Phoebe Wang authored
This is MSVC's behaviour. LLD was matching it before D99078. Let's go back this way. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D132901
-
Vitaly Buka authored
-
jacquesguan authored
This patch adds TruncOp for Math, it returns the operand rounded to the nearest integer not larger in magnitude than the operand. And this patch also adds the correspond llvm intrinsic op. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D133342
-
Alex Bradbury authored
Split out from D129178, this just adds the GlobalMerge tests (other than global-merge-minsize.ll which is testing a specific configuration of the pass when it's enabled) and exposes `-riscv-enable-global-merge` and //doesn't enable it by default//. Note that the comment "// FIXME: Unify control over GlobalMerge." is copied from the Arm and AArch64 backends, which expose the same flag. Presumably the author is imagining some later refactoring that provides a target-independent flag. Reviewed By: craig.topper, reames, hiraditya Differential Revision: https://reviews.llvm.org/D130481
-