- Jul 28, 2022
-
-
Arthur Eubanks authored
simplified_template_names_noncanonical_type_units.cpp uses split-file. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D130656
-
Philip Reames authored
This change enables vectorization (using scalable vectorization only, fixed vectors are not yet enabled) for RISCV when vector instructions are available for the target configuration. At this point, the resulting configuration should be both stable (e.g. no crashes), and profitable (i.e. few cases where scalar loops beat vector ones), but is not going to be particularly well tuned (i.e. we emit the best possible vector loop). The goal of this change is to align testing across organizations and ensure the default configuration matches what downstreams are using as closely as possible. This exposes a large amount of code which hasn't otherwise been on by default, and thus may not have been fully exercised. Given that, having issues fall out is not unexpected. If you find issues, please make sure to include as much information as you can when reverting this change. Differential Revision: https://reviews.llvm.org/D129013
-
Denis Fatkulin authored
Lambdas with trailing return type 'auto' are annotated incorrectly. It causes a misformatting. The simpliest code to reproduce is: ``` auto list = {[]() -> auto { return 0; }}; ``` Fixes https://github.com/llvm/llvm-project/issues/54798 Reviewed By: HazardyKnusperkeks, owenpan, curdeius Differential Revision: https://reviews.llvm.org/D130299 -
LLVM GN Syncbot authored
-
Jacob Lambert authored
Lifting the core functionalities of the clang-offload-bundler into a user-facing library/API. This will allow online and JIT compilers to bundle and unbundle files without spawning a new process. This patch lifts the classes and functions used to implement the clang-offload-bundler into a separate OffloadBundler.cpp, and defines three top-level API functions in OfflaodBundler.h. BundleFiles() UnbundleFiles() UnbundleArchives() This patch also introduces a Config class that locally stores the previously global cl::opt options and arrays to allow users to call the APIs in a multi-threaded context, and introduces an OffloadBundler class to encapsulate the top-level API functions. We also lift the BundlerExecutable variable, which is specific to the clang-offload-bundler tool, from the API, and replace its use with an ObjcopyPath variable. This variable must be set in order to internally call llvm-objcopy. Finally, we move the API files from clang/tools/clang-offload-bundler into clang/lib/Driver and clang/include/clang/Driver. Differential Revision: https://reviews.llvm.org/D129873 -
Stanislav Mekhanoshin authored
The instruction is used to modify wave priority with the intent to affect VALU execution and currently we can reschedule VALU around it since that VALU does not have side effects. Differential Revision: https://reviews.llvm.org/D130654
-
Shraiysh Vaishay authored
This patch adds canonicalization conditions for omp.atomic.update thus eliminating it when it becomes just a write or a no-op due to other changes during canonicalization. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D126531
-
Jonas Devlieghere authored
Teach libDebugInfo (llvm-dwarfdump) and lldb about DWARF tags and attributes for pointer authentication. These values have been emitted by Apple clang for several releases. Although upstream LLVM doesn't emit these values yet, we hope to upstream that part sometime soon. Differential revision: https://reviews.llvm.org/D130215
-
Philip Reames authored
The problem here is target independent, but particularly painful on RISCV. If we chose to vectorize such that vscale x 2 x i32 is our widest type and fits in a register, a naive expansion of i64 comparisons results in comparisons and index types at <scalabe x 2 x i64>. This requires both an LMUL of 2, and a VSETVLI toggle in the loop. Note that we could have used <vscale x 2 x i32> for the compairons legally given the range of the trip count.
-
Amara Emerson authored
-
Florian Hahn authored
Now that all uses of VPPredInstPHIRecipes are properly modeled, they can be treated as not having side-effects, enabling removal.
-
Nikolas Klauser authored
Reviewed By: #libc, ldionne Spies: mgorny, var-const, ormris, philnik, miscco, hiraditya, steven_wu, jkorous, ldionne, christof, libcxx-commits Differential Revision: https://reviews.llvm.org/D68365
-
Stanislav Mekhanoshin authored
-
Eric Li authored
Use a delegating constructor to remove the last use of the deprecated ctor of `TypeErasedDataflowAnalysis`, and then delete it. Differential Revision: https://reviews.llvm.org/D130653
-
Fangrui Song authored
The test is brittle but it seems unnecessary to remove size check now. Close #56222
-
Mingming Liu authored
Without this, the intrinsic will be expanded to an integer; thereby an explicit copy (from GPR to SIMD register) will be codegen'd. This matches the general convention of using "v1" types to represent scalar integer operations in vector registers. The similar approach is observed in D56616, and the pattern likely applies on other intrinsic that accepts integer scalars (e.g., int_aarch64_neon_sqdmulls_scalar) Differential Revision: https://reviews.llvm.org/D130548
-
Mark de Wever authored
The GDB test was disabled for clang-15, updated the filter since main now is clang-16.
-
Philip Reames authored
-
Amara Emerson authored
This adds similar heuristics to G_GLOBAL_VALUE, querying the cost of materializing a specific constant in code size. Doing so prevents us from sinking constants which require multiple instructions to generate into use blocks. Code size savings on CTMark -Os: Program size.__text before after diff ClamAV/clamscan 381940.00 382052.00 0.0% lencod/lencod 428408.00 428428.00 0.0% SPASS/SPASS 411868.00 411876.00 0.0% kimwitu++/kc 449944.00 449944.00 0.0% Bullet/bullet 463588.00 463556.00 -0.0% sqlite3/sqlite3 284696.00 284668.00 -0.0% consumer-typeset/consumer-typeset 414492.00 414424.00 -0.0% 7zip/7zip-benchmark 595244.00 594972.00 -0.0% mafft/pairlocalalign 247512.00 247368.00 -0.1% tramp3d-v4/tramp3d-v4 372884.00 372044.00 -0.2% Geomean difference -0.0% Differential Revision: https://reviews.llvm.org/D130554 -
Slava Gurevich authored
Improve LLDB reliability by fixing the following "uninitialized variables" static code inspection warnings from scan.coverity.com/projects/llvm: 1355854, 1347549, 1316348, 1372028, 1431625, 1315634, 1315637, 1355855, 1364803, 1420505, 1420563, 1420685, 1366014, 1203966, 1204029, 1204031, 1204032, 1328411, 1325969, 1325968, 1374921, 1094809 Differential Revision: https://reviews.llvm.org/D130602
-
Stanislav Mekhanoshin authored
I am playing with the LoopDataPrefetch pass and found out that it bails to work with a pointer in a non-zero address space. This patch adds the target callback to check if an address space is to be considered for prefetching. Default implementation still only allows address space 0, so this is NFCI. This does not currently affect any known targets, but seems to be generally useful for the future. Differential Revision: https://reviews.llvm.org/D129795
-
David Green authored
D98179 added a mechanism to sort tests by test time to run slow tests early, increasing potential parallelism. It also added a feature where negative tests would be marked as negative, allowing subsequent test runs to run them earlier. Unfortunately it never actually stored the negative time, even if all the other code seemed to be inplace to sort them early. Luckily the fix seems simple. Differential Revision: https://reviews.llvm.org/D130570
-
Eli Friedman authored
I don't have any evidence these particular uses are actually causing any issues, but we should avoid accidentally truncating immediate values depending on the host.
-
Craig Topper authored
We can use slli.uw by C followed by sh1add. Similar can be done for multiples of 5 and 9. We need to make sure that C is less than 32 to stay in bounds of the 5-bit immediate for slli.uw. We have existing patterns for (mul X, 3<<C) that use sh1add followed by slli. That order doesn't allow the and to be folded. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D130146
-
Craig Topper authored
A mul by a negated power of 2 is a slli followed by neg. This doesn't require any constant materialization and may be lower latency than mul. The neg may also be foldable into other arithmetic. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D130047
-
Umesh Kalappa authored
We can't guarantee the long always 64 bits like WINDOWS or LLP64 data model (rare but we should consider). So use int64_t from inttypes.h and safe in this case. Fixes https://github.com/llvm/llvm-project/issues/55911 .
-
Tue Ly authored
Change `sinf` range reduction to mod pi/16 to be shared with `cosf`. Previously, `sinf` used range reduction `mod pi`, but this cannot be used to implement `cosf` since the minimax algorithm for `cosf` does not converge due to critical points at `pi/2`. In order to be able to share the same range reduction functions for both `sinf` and `cosf`, we change the range reduction to `mod pi/16` for the following reasons: - The table size is sufficiently small: 32 entries for `sin(k * pi/16)` with `k = 0..31`. It could be reduced to 16 entries if we treat the final sign separately, with an extra multiplication at the end. - The polynomials' degrees are reduced to 7/8 from 15, with extra computations to combine `sin` and `cos` with trig sum equality. - The number of exceptional cases reduced to 2 (with FMA) and 3 (without FMA). - The latency is reduced while maintaining similar throughput as before. Reviewed By: zimmermann6 Differential Revision: https://reviews.llvm.org/D130629
-
Mark de Wever authored
This addresses a request during the review of D128929. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D129310
-
Mark de Wever authored
After evaluating the new style I noticed inner namespaces are now indented. I am not fond of that style and I've seen some other review comment in this regard so I propose we remove this option and use the LLVM default not to indent it. Reviewed By: ldionne, philnik, var-const, #libc Differential Revision: https://reviews.llvm.org/D129441
-
Philip Reames authored
All of our other tests are functionality tests constrained to some specific configuration. This one is intended to float with the default configuration so that changes in that default are visible in reviews. Note that our current default does not enable vectorization at all; thus the current output is unvectorized.
-
Peiming Liu authored
Sparse compiler failed on the provided test (when the sparse kernel is nested in a scf structrual operator). Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D130609
-
- Jul 27, 2022
-
-
Peixin Qiao authored
The options -f{no-}color-diagnostics have been supported in driver. This supports the behaviors in scanning, parsing, and semantics, and the behaviors are exactly the same as the driver. To illustrate the added behaviour, consider the following input file: ```! file.f90 program m integer :: i = k end ``` In the following invocations, "error: Must be a constant value" _will be_ formatted: ``` $ flang-new file.f90 error: Semantic errors in file.f90 ./file.f90:2:18: error: Must be a constant value integer :: i = k ``` Note that "error: Semantic errors in file.f90" is also formatted, which is supported in https://reviews.llvm.org/D126164. Also note that only "error", "warning" and "portability" are formatted. Check the following input file: ```! file2.f90 program m integer :: i = end ``` ``` $ flang-new test2.f90 error: Could not parse test2.f90 ./test2.f90:2:11: error: expected '(' integer :: i = ^ ./test2.f90:2:3: in the context: statement function definition integer :: i = ^ ... ``` The "error: Could not parse test2.f90" and "error: expected '('" are formatted. Others such as "in the context" are not formatted yet, which may or may not be supported. Reviewed By: awarzynski Differential Revision: https://reviews.llvm.org/D126166 -
Mark de Wever authored
Remove some no longer relevant details and adds the C++23 papers voted in at the last plenary.
-
Peixin Qiao authored
There is post comment of adding TODO/FIXME for privatization of loop bounds in D127137. D127137 fixes the bug in OpenMP firstprivate clause, which should be refactored later according to the post comment. Add FIXME for it. Differential Revision: https://reviews.llvm.org/D130625
-
Sanjay Patel authored
This should fix issue #56383 (at least when compiled with -O3 because this pass is only run at -O3 currently).
-
Sanjay Patel authored
-
Matt Devereau authored
-
Mark de Wever authored
Adds the papers and LWG issues voted in during the July 2022 plenary. Note the updating of the project based statuses is left to the active contributors of these projects. Reviewed By: #libc, huixie90, philnik Differential Revision: https://reviews.llvm.org/D130595
-
Dmitri Gribenko authored
It errors out in the Bazel CI: AMDGPULowerModuleLDSPass.cpp:384:12: error: chosen constructor is explicit in copy-initialization return {SGV, std::move(Map)}; Reviewed By: rupprecht Differential Revision: https://reviews.llvm.org/D130623 -
Peixin Qiao authored
The header file OpenMPDialect.h is added in Bridge.cpp in D130027, but it is unused. Remove it. Differential Revision: https://reviews.llvm.org/D130625
-