- Jul 21, 2023
-
-
Matt Arsenault authored
Mostly a workaround for recent reverts in update_test_checks
-
wren romano authored
This commit comprises a number of related changes: (1) Reintroduces the semantic distinction between `parseVarUsage` vs `parseVarBinding`, adds documentation explaining the distinction, and adds commentary to the one place that violates the desired/intended semantics. (2) Improves documentation/commentary about the forward-declaration of level-vars, and about the meaning of the `bool` parameter to `parseLvlSpec`. (2) Removes the `VarEnv::addVars` method, and instead has `DimLvlMapParser` handle the conversion issues directly. In particular, the parser now stores and maintains the `{dims,lvls}AndSymbols` arrays, thereby avoiding the O(n^2) behavior of scanning through the entire `VarEnv` for each `parse{Dim,Lvl}Spec` call. Unfortunately there still remains another source of O(n^2) behavior, namely: the `AsmParser::parseAffineExpr` method will copy the `DimLvlMapParser::{dims,lvls}AndSymbols` arrays into `AffineParser::dimsAndSymbols` on each `parse{Dim,Lvl}Spec` call; but fixing that would require extensive changes to `AffineParser` itself. Depends On D155532 Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D155533 -
Jon Chesterfield authored
Was passing zeros to the string print function. Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D155899
-
Matt Arsenault authored
-
Jason Molenda authored
Reading through the Watchpoint class, I found this method that wasn't being used properly, and a couple of ivars that weren't used at all. Cleanup. Differential Revision: https://reviews.llvm.org/D155768
-
Matt Arsenault authored
These are now lowered correctly by the backend, and you get proper fast math flags when directly handled.
-
Matt Arsenault authored
It is unsafe to contract the fsub into the fmul. It also increases code size by duplicating a constant.
-
Matt Arsenault authored
-
Mircea Trofin authored
For (subjectively) more clarity; also updated the comment describing it. Differential Revision: https://reviews.llvm.org/D155888
-
Philip Reames authored
-
LLVM GN Syncbot authored
-
Michael Jones authored
The functions are in a header, and so must be marked inline to avoid symbol conflicts. Differential Revision: https://reviews.llvm.org/D155892
-
Nikolas Klauser authored
Reviewed By: #libc, ldionne Spies: ldionne, libcxx-commits, mgrang Differential Revision: https://reviews.llvm.org/D152860
-
Fangrui Song authored
Make it less sensitive to omp_offload.info operands order and improve the failure diagnostic. Caught by D155789
-
Mircea Trofin authored
- we can remove the `Module` field, it's obtainable from `F` and used in only one place - a few fields can be `const`-ed, thus enforcing compile-time initialization checking (and we don't need to support `operator=`) Differential Revision: https://reviews.llvm.org/D155212
-
Fazlay Rabbi authored
Currently, clang gives an incorrect reduction identifier error for the PLUS operator for OpenMP version > 52. But, PLUS operator is allowed in OpenMP version > 52. This revision fixes this issue and also modified the error messages to show the correct expected operators in the message based on the OpenMP version used (prior to OMP 6.0 and since OMP 6.0). Test Src: void foo() { int a = 0 ; #pragma omp parallel reduction(+:a) ; #pragma omp parallel reduction(-:a) ; } Before this revision: $ clang -fopenmp -fopenmp-version=60 test.c -c test.c:3:34: error: incorrect reduction identifier, expected one of '+', '-', '*', '&', '|', '^', '&&', '||', 'min' or 'max' or declare reduction for type 'int' 3 | #pragma omp parallel reduction(+:a) | ^ test.c:5:34: error: incorrect reduction identifier, expected one of '+', '-', '*', '&', '|', '^', '&&', '||', 'min' or 'max' or declare reduction for type 'int' 5 | #pragma omp parallel reduction(-:a) | ^ 2 errors generated. Wit this revision: $ clang -fopenmp -fopenmp-version=60 test.c -c test.c:5:34: error: incorrect reduction identifier, expected one of '+', '*', '&', '|', '^', '&&', '||', 'min' or 'max' or declare reduction for type 'int' 5 | #pragma omp parallel reduction(-:a) | 1 error generated. Differential Revision: https://reviews.llvm.org/D155635 -
varconst authored
Continue to work outlined in D155747 and split the main SPIR-V ops implementation file into a few smaller and quicker to compile files. Move control flow and memory ops to their own implementation files. Create new `.cpp` files for tablegened code. After this change, the `SPIRVOps.cpp` is 2k LoC-long and takes a reasonable amount of time to compile. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D155883
-
Christopher Ferris authored
Modify the tests so that all clang warnings can be turned up to high. Fix all places flagged by -Wconversion. Fix a few unused variables not marked with UNUSED. For the memtag testing, only compile some tests for 64 bit since compiling them on 32 bit leads to warnings/errors. All of the tests are already skipped on 32 bit OSes, so this will not affect any real tests. Reviewed By: Chia-hungDuan Differential Revision: https://reviews.llvm.org/D155749
-
Paul Kirth authored
This reverts commit 421e4026. One of the test needs a requires line, but we've also seen some issues for downstream projects that may need coordination, so I'm reverting this for until we can address those issues. see https://reviews.llvm.org/D152973#4520240 for context.
-
Philip Reames authored
This has come up a few times in review; the current ones seem to be universally confusing. Even I as the original author of most of these get confused. Switch to using the SLOW/FAST naming used by x86, hopefully that's a bit clearer.
-
Mariusz Borsa authored
-
Louis Dionne authored
The Apple.cmake cache wasn't set up properly, so we wouldn't enable the libdispatch backend by default on Apple platforms. This patch fixes the issue and adds a test. We also need to make various drive-by fixes: - Drop the usage of std::vector in libdispatch.h to avoid changing the transitive includes only on Apple platforms. - Fix includes - Use __construct at since construct_at is unavailable in C++17 - Get rid of the (unused) __get_memory_resource function since that adds a back-deployment requirement and we don't use it right now. - Fix bugs in the chunking logic around boundary conditions. Differential Revision: https://reviews.llvm.org/D155649
-
Ian Anderson authored
The headers that include_next compiler and OS headers need to be in different top level modules in order to avoid module cycles. e.g. libc++'s stdlib.h will #include_next stdlib.h from the compiler and then the C library. Either of those are likely to include stddef.h, which will come back up to the libc++ module map and create a module cycle. Putting stdlib.h and stddef.h (and the rest of the C standard library headers) in top level modules resolves this by letting the order go cxx_stdlib_h -> os_stdlib_h -> cxx_stddef_h -> os_stddef_h. All of those headers' dependencies then need to be moved into top level modules themselves to avoid module cycles between the new top level level cstd modules. This starts to get complicated, as the libc++ C headers, by standard, have to include many of the C++ headers, which include the private detail headers, which are intertwined. e.g. some `__algorithm` headers include `__memory` headers and vice versa. Make top level modules for all of the libc++ headers to easily guarantee that the modules aren't cyclic. Add enough module exports to fix `check-cxx` and `run-buildbot generic-modules`. `__stop_token/intrusive_shared_ptr.h` uses `__atomic/atomic.h` but has no include path to it. Add that include. `math.h` absorbs `bits/atomic_wide_counter.h` on some platforms that don't have modules, work around that by including `math.h` in `__threading_support`. <mutex> doesn't actually require threads, there are a few pieces like once_flag that work without threads. Remove the requirement from its module. AIX is no longer able to support modular builds. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D144322
-
Antonio Frighetto authored
Simplify binary operations, whose operands involve a `select` instruction and a cast of the `select` condition. Specifically, the binop is canonicalized into a `select` with folded arguments as follows: (Binop (zext C), (select C, T, F)) -> (select C, (binop 1, T), (binop 0, F)) (Binop (sext C), (select C, T, F)) -> (select C, (binop -1, T), (binop 0, F)) Proofs: https://alive2.llvm.org/ce/z/c_JwwM Differential Revision: https://reviews.llvm.org/D153963
-
Antonio Frighetto authored
Introduce test cases for folding binops of `select` and cast of the `select` condition. Differential Revision: https://reviews.llvm.org/D155510
-
Amanda Tang authored
Author inferReturnTypeComponents methods with the Op Adaptor by using the InferShapedTypeOpAdaptor. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D155243
-
Aaron Ballman authored
This is intended to address the issues found in: https://lab.llvm.org/buildbot/#/builders/192/builds/3337 https://lab.llvm.org/buildbot/#/builders/124/builds/7968
-
Andrzej Warzynski authored
In https://reviews.llvm.org/D146917, MLIR's LIT configuration was updated to allow us to use `mlir-cpu-runner` to run Arm SVE integration tests. That update broke the following buildbot that doesn't support SVE: https://lab.llvm.org/buildbot/#/builders/179/builds/6704 While that bot doesn't support SVE, it can run SVE tests under emulation. This patch makes sure that whenever an Arm emulator is set (via `RM_EMULATOR_EXECUTABLE` CMake variable), it is used to run both `lli` _and_ `mlir-cpu-runner`. I am sending this without a review as it's a rather trivial change and I want to quickly fix the spurious bot failure.
-
CaprYang authored
This prevents issues when PointerWidth and the SizeType width are not same. Differential Revision: https://reviews.llvm.org/D152160
-
Alexander Yermolovich authored
Slight performance improvement, based on perf. Collected on clang-17 built with DWARF4 + split dwarf. MD5 8:46.50 real, 713.38 user, 64.19 sys, 0 amem, 41933136 mmem 8:27.44 real, 708.55 user, 63.83 sys, 0 amem, 41906576 mmem 8:40.37 real, 724.63 user, 62.56 sys, 0 amem, 42319572 mmem hash_combine 8:03.99 real, 681.92 user, 60.04 sys, 0 amem, 42459204 mmem 8:02.92 real, 685.20 user, 62.56 sys, 0 amem, 41879164 mmem 7:57.85 real, 690.27 user, 60.12 sys, 0 amem, 41806240 mmem Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D155764
-
Alexander Yermolovich authored
In one of the previous diffs LocBuffer was changed to pass by value. This lead to performance regression running BOLT on binaries with DWARF4 split dwarf. Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D155763
-
Giuseppe Rossini authored
Wave Matrix Multiply Accumulate (WMMA) is the instruction to accelerate matrix multiplication on RDNA3 architectures. LLVM already provides a set of intrinsics to generate wmma instructions. This change uses those intrinsics to enable the feature in MLIR. Reviewed By: krzysz00 Differential Revision: https://reviews.llvm.org/D152451
-
Louis Dionne authored
-
Michael Jones authored
The new printf writer design focuses on optimizing the fast path. It inlines any write to a buffer or string, and by handling buffering itself can more effectively work with both internal and external file implementations. The overflow hook should allow for expansion to asprintf with minimal extra code. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D153999
-
Fangrui Song authored
Similar to recent changes to ELF (e.g., D154813), Mach-O, and COFF to improve hashing performance. Reviewed By: dschuff Differential Revision: https://reviews.llvm.org/D155752
-
Aaron Ballman authored
This amends 4a100690 to address the issue found by: https://lab.llvm.org/buildbot/#/builders/188/builds/32658
-
Jonas Devlieghere authored
This ensures we we don't crash when parsing a type that references an unsupported type.
-
Slava Zakharin authored
If end_associate may execute more times than the expr value producer, then it cannot take ownership of the expr buffer. Otherwise, it may result in double-free errors. Note that the LIT test exposes a different issue with fir.alloca inside the do-loop produced for hlfir.elemental. This may cause out-of-stack conditions in valid Fortran programs that are not expected to run out of stack. I will create an issue for this. Reviewed By: tblah Differential Revision: https://reviews.llvm.org/D155778
-
varconst authored
This introduces: - `_LIBCPP_ASSERT_VALID_INPUT_RANGE`; - `_LIBCPP_ASSERT_VALID_CONTAINER_ACCESS`; - `_LIBCPP_ASSERT_VALID_ITERATOR_ACCESS`; - `_LIBCPP_ASSERT_VALID_ALLOCATOR`; - `_LIBCPP_ASSERT_INTERNAL`. Differential Revision: https://reviews.llvm.org/D155349
-
Arthur Eubanks authored
Or else if the test path contains "internal" the test will fail. The test is already testing that "internal" gets removed in the CHECK lines.
-