- Sep 04, 2022
-
-
Kazu Hirata authored
Differential Revision: https://reviews.llvm.org/D132813
-
Fangrui Song authored
GCC from 11 onwards defaults to -std=gnu++17 for C++ source files. We want to do the same (https://discourse.llvm.org/t/c-objc-switch-to-gnu-17-as-the-default-dialect/64360). Split RUN lines, adjust `-verify`, or add `__cplusplus < 201703L` or `-Wno-dynamic-exception-spec`, so that tests will pass regardless of gnu++14/gnu++17 default. We have a desire to mark a test compatible with multiple language standards. There are ongoing discussions how to add markers in the long term: * https://discourse.llvm.org/t/iterating-lit-run-lines/62596 * https://discourse.llvm.org/t/lit-run-a-run-line-multiple-times-with-different-replacements/64932 As a workaround in the short term, add lit substitutions `%std_cxx98-`, `%std_cxx11-14`, etc. They can be used for tests which work across multiple language standards. If a range has `n` standards, run lit multiple times, with `LIT_CLANG_STD_GROUP=0`, `LIT_CLANG_STD_GROUP=1`, etc to cover all `n` standards. Reviewed By: #clang-language-wg, aaron.ballman Differential Revision: https://reviews.llvm.org/D131464
-
Nick Kreeger authored
[mlir][sparse] Expose SparseTensor passes as enums instead of opaque numbers for vectorization and parallelization options. The SparseTensor passes currently use opaque numbers for the CLI, despite using an enum internally. This patch exposes the enums instead of numbered items that are matched back to the enum. Fixes https://github.com/llvm/llvm-project/issues/53389 Differential Revision: https://reviews.llvm.org/D123876 Please also see: https://reviews.llvm.org/D118379 https://reviews.llvm.org/D117919
-
Fangrui Song authored
-
Vitaly Buka authored
-
Nick Kreeger authored
This reverts commit ef25b5d9.
-
Nick Kreeger authored
numbers for vectorization and parallelization options. The SparseTensor passes currently use opaque numbers for the CLI, despite using an enum internally. This patch exposes the enums instead of numbered items that are matched back to the enum. Fixes https://github.com/llvm/llvm-project/issues/53389 Differential Revision: https://reviews.llvm.org/D123876 Please also see: https://reviews.llvm.org/D118379 https://reviews.llvm.org/D117919
-
Vitaly Buka authored
Breakes windows bot. This reverts commit 3ad2fe91.
-
Ye Luo authored
Taken from the https://github.com/llvm/llvm-project/issues/57064 reproducer. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D133258
-
Kazu Hirata authored
Identified with readability-qualified-auto.
-
Kazu Hirata authored
Identified with modernize-unary-static-assert.
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
LLVM Coding Standards discourage for_each unless callable objects already exist.
-
Fangrui Song authored
They lead to -Wunused-command-line-argument and should be written as -Ttext= instead, but the driver options end with a space. -Ttext=0 can be accepted by the JoinedOrSeparate -T, so the JoinedOrSeparate -Ttext/etc are unneeded.
-
Fangrui Song authored
They are error-prone as they do not end with `=`. Note: for driver -isystem/etc, we have to support the Joined form.
-
Simon Pilgrim authored
Based off the numbers from AMD SoG + Agner - vXi32 are both half-rate, and znver1 double-pumps the v8i32 op We should have caught this earlier as many Intel models have half-rate pmulld already :-(
-
Simon Pilgrim authored
This was achieved using the 'cost-tables vs llvm-mca' script D103695
-
Dave Lee authored
Fixes broken support for: `target.module[re.compile("libFoo")]` There were two issues: 1. The type check was expecting `re.SRE_Pattern` 2. The expression to search the module path had a typo In the first case, `re.SRE_Pattern` does not exist in Python 3, and is replaced with `re.Pattern`. While editing this code, I changed the type checks to us `isinstance`, which is the conventional way of type checking. From the docs on `type()`: > The `isinstance()` built-in function is recommended for testing the type of an object, because it takes subclasses into account. Differential Revision: https://reviews.llvm.org/D133130
-
- Sep 03, 2022
-
-
yronglin authored
Avoid __builtin_assume_aligned crash when the 1st arg is array type(or string literal). Open issue: https://github.com/llvm/llvm-project/issues/57169 Reviewed By: rjmccall Differential Revision: https://reviews.llvm.org/D133202
-
Simon Pilgrim authored
This was achieved with an updated version of the 'cost-tables vs llvm-mca' script D103695 As we're using 'typical' worst case values, not all cost entries come from a single CPU - e.g. the latency/throughput from haswell but the size-latency(uops) from zen1/alderlake-e due to 'double pumping' As the uop count (used for TCK_SizeAndLatency) for divss/divps is typically so low, we need to override isExpensiveToSpeculativelyExecute to ensure we keep fdiv calls behind branches - although for some very recent cpu targets it might not be necessary any more and could be relaxed.
-
Sanjay Patel authored
Preliminary refactoring for planned enhancement in D133198.
-
Simon Pilgrim authored
Matches znver1/2 numbers from AMD SoG + Agner - no additional uops for folded instructions and znver1 double pumps 256-bit vectors Matches skylake/icelake throughput numbers from Intel AoM + Agner/instlatx64 Noticed while adding fdiv CostKinds support
-
Christian Sigg authored
Replace the following config attributes with `mlir_lib_dir`: - `mlir_runner_utils_dir` - `linalg_test_lib_dir` - `spirv_wrapper_library_dir` - `vulkan_wrapper_library_dir` - `mlir_integration_test_dir` I'm going to clean up substitutions in separate changes. Reviewed By: aartbik, mehdi_amini Differential Revision: https://reviews.llvm.org/D133217
-
Sanjay Patel authored
~(A & ?) | (A ^ B) --> ~((A & ?) & B) https://alive2.llvm.org/ce/z/mxex6V This is similar to 9d218b61 where we peeked through another logic op to find a common operand.
-
Sanjay Patel authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
These were affected by D131825 (and reported on Issue #57149) - adding the verification will help ensure that we don't hit this again on builds with EXPENSIVE_CHECKS enabled
-
Simon Pilgrim authored
[DAG] canCreateUndefOrPoison - add freeze(insert_subvector(x,y,c)) -> insert_subvector(freeze(x),freeze(y),c) support We already have plenty of assertions in place to ensure that the insertion index is constant and inrange
-
Simon Pilgrim authored
[X86] Add test showing failure to fold freeze(insert_subvector(x,y,c)) -> insert_subvector(freeze(x),freeze(y),c) If at least one of x and y are known never poison.
-
Simon Pilgrim authored
CGP uses a raw `getInstructionCost(I, TargetTransformInfo::TCK_SizeAndLatency) >= TCC_Expensive` check to see if its better to move an expensive instruction used in a select behind a branch instead. This is causing issues with upcoming improvements to TCK_SizeAndLatency costs on X86 as we need to use TCK_SizeAndLatency as an uop count (so its compatible with various target-specific buffer sizes - see D132288), but we can have instructions that have a low TCK_SizeAndLatency value but should still be treated as 'expensive' (FDIV for example) - by adding a isExpensiveToSpeculativelyExecute wrapper we can keep the current behaviour but still add an x86 override in a future patch when the cost tables are updated to compensate.
-
Igor Zhukov authored
Reviewed By: mordante, #libc Differential Revision: https://reviews.llvm.org/D131315
-
Mark de Wever authored
-
Mark de Wever authored
The code was for backwards compatibility with code no longer present in format.
-