- Dec 08, 2022
-
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Tue Ly authored
Fix undefined behavior of left-shifting uint64_t by 64 in `UInt<>::shift_right` implementation. Reviewed By: michaelrj, sivachandra Differential Revision: https://reviews.llvm.org/D139566
-
Akira Hatanaka authored
usage information in JSON to a file Each line in the file is a JSON object that has the name of the main source file followed by the list of system header files included directly or indirectly from that file. For example: {"source":"/tmp/foo.c", "includes":["/usr/include/stdio.h", "/usr/include/stdlib.h"]} To reduce the amount of data written to the file, only the system headers that are directly included from a non-system header file are recorded. In order to emit the header information in JSON, it is necessary to set the following environment variables: CC_PRINT_HEADERS_FORMAT=json CC_PRINT_HEADERS_FILTERING=only-direct-system The following combination is equivalent to setting CC_PRINT_HEADERS=1: CC_PRINT_HEADERS_FORMAT=textual CC_PRINT_HEADERS_FILTERING=none Differential Revision: https://reviews.llvm.org/D137996 -
Krzysztof Parzyszek authored
-
bixia1 authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D139571
-
Mahesh Ravishankar authored
This covers more options for CSE. It also ensures that two operations that have same operands but different regions to begin with, but same regions after `simplifyRegions`, don't get both added to the list of `knownValues`. Fixes #59135 Differential Revision: https://reviews.llvm.org/D139490
-
Leonard Chan authored
Any hwasan tag checking done through runtime calls like __hwasan_mem* or __hwasan_load/store* currently raise a sigtrap on a tag mismatch. Hwasan dumps as much information it knows on the tag mismatch by placing important values in specific registers before the brk and encoding the access information in the optional argument supplied to the brk. If the platform hwasan runs on uses signal handlers, then users can see the typical pretty hwasan error report, but Fuchsia doesn't use signal handlers, so it's left up to the platform exception handler to print all this encoded information. This patch attempts to enter the regular error reporting path via HandleTagMismatch if a new macro CAN_GET_REGISTERS is set. For now this is only defined for Fuchsia + aarch64, but can be expanded for other platforms. Differential Revision: https://reviews.llvm.org/D139377
-
Johannes Doerfert authored
Differential Revision: https://reviews.llvm.org/D135155
-
Jakub Kuderski authored
-
Jakub Kuderski authored
The goal is to make the naming of the future `_extended` ops more consistent. With unsigned addition, the carry value/flag and overflow bit are the same, but this is not true when it comes to signed addition. Also rename the second result from `carry` to `overflow`. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D139569
-
Jon Chesterfield authored
Renames the current lowering scheme to "module" and introduces two new ones, "kernel" and "table", plus a "hybrid" that chooses between those three on a per-variable basis. Unit tests are set up to pass with the default lowering of "module" or "hybrid" with this patch defaulting to "module", which will be a less dramatic codegen change relative to the current. This reflects the sparsity of test coverage for the table lowering method. Hybrid is better than module in every respect and will be default in a subsequent patch. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D139433
-
Alexander Belyaev authored
At the moment, they are a part of EmptyOp::getCanonicalizationPatterns. When extract_slice(tensor.empty) is rewritten as a new tensor.empty, it could happen that we end up with two tensor.empty ops, since the original tensor.empty can have two users. After bufferization such cases result in two allocations. Differential Revision: https://reviews.llvm.org/D139308
-
Simon Pilgrim authored
Ensure that the PBLENDVBrr0 destination register is never xmm0
-
Bran Hagger authored
Define the same kmpc_atomic functions for arm and arm64 that are defined for x86 and x64. Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D139139
-
Chris Bieneman authored
DXIL shader bitcode is hashed and the hash is placed into the final output object file in its own data part. This change modifies the DXContainerGlobals pass to compute the shader hash (just an MD5 of the bitcode) and put the shader hash data into a global for the HASH part. This also sets the hash flag as appropriate for if the hashed shader contained debug information. There is additional handling required to get debug information in shaders working correctly with our tooling, but that will be addressed in subsequent patches. Reviewed By: python3kgae Differential Revision: https://reviews.llvm.org/D139357
-
Alexander Yermolovich authored
This reverts commit 5ebd28f3.
-
Alexander Yermolovich authored
This reverts commit a5bd76a6.
-
Alexander Yermolovich authored
With ThinLTO mutliple CUs can share the same .debug_str_offsets contribution. We were creating a new one for each CU. This lead to a binary size increase. Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D139214
-
Alexander Yermolovich authored
Summary: According to DWARF5 specification and gnu specification for DWARF4 the offset entry in the CU/TU Index is 32 bits. This presents a problem when .debug_info.dwo in DWP file grows beyond 4GB. The CU Index becomes partially corrupted. This diff adds manual parsing of .debug_info.dwo/.debug_abbrev.dwo to reconstruct CU index in general, and TU index for DWARF5. This is a work around until DWARF6 spec is finalized. Next patch will change internal CU/TU struct to 64 bit, and change uses as necessary. The plan is to land all the patches in one go after all are approved. This patch originates from the discussion in: https://discourse.llvm.org/t/dwarf-dwp-4gb-limit/63902 Differential Revision: https://reviews.llvm.org/D137882
-
Alexander Yermolovich authored
Summary: Changed contribution data structure to 64 bit. I added the 32bit and 64bit accessors to make it explicit where we use 32bit and where we use 64bit. Also to make sure sure we catch all the cases where this data structure is used.
-
Craig Topper authored
This reverts commit d2491520. Thinking about this more this probably chewed up 100+ bytes of stack for each recursive call. So this probably needs more thought. The code simplification wasn't that much.
-
Matt Arsenault authored
Go through the common query and be explicit about the supported flush type.
-
Matt Arsenault authored
Test all the permutations.
-
David Tenty authored
This reverts commit 8482e95f, which breaks on AIX due to unsupported psudeo-ops in the assembly. Differential Revision: https://reviews.llvm.org/D139368
-
Nicolai Hähnle authored
This is not a correctness fix because the set is only used for debug output. However, it helps avoid noise when looking at diffs between compiler runs. The set is only maintained with debug output enabled, so the added cost should be acceptable. Differential Revision: https://reviews.llvm.org/D139465
-
Koakuma authored
On 64-bit target, when doing i64 SELECT_CC where one of the comparison operands is a constant zero, try to fold the compare and MOVcc into a MOVr instruction. For all integers, EQ and NE comparison are available, additionally for signed integers, GT, GE, LT, and LE is also available. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D138922
-
Shilei Tian authored
[NFC][Object] Include header `BitcodeReader.h` instead of using forward declaration for BitcodeModule `BitcodeModule` is used as element of a vector in `IRSymtabFile`, while in the header there is only a forward declaration. It will work if the header `BitcodeReader.h` is included before including `IRObjectFile.h`. However, it is not always the case, causing compilation error. This patch simply includes the header and remove the forward declaration. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D139556
-
Brad Smith authored
2 of the Sparc tests are now failing. This reverts commit 2c41310f.
-
Craig Topper authored
This allows us to remove a couple more Zfhmin isel patterns.
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Nico Weber authored
Ran: git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format -
Javier Setoain authored
The only way to do this with the current hoisting strategy is by lowering Affine to Scf first, but that prevents further passes on Affine. Differential Revision: https://reviews.llvm.org/D137600
-
bixia1 authored
[mlir][sparse] Improve concatenate operation conversion for the case with annotated all dense result. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D139345
-
Nico Weber authored
See also af95441b.
-