- Aug 21, 2021
-
-
Siva Chandra Reddy authored
This suite is helpful is adding long running tests which take a long time to finish that they can be run on the public builders. They will probably be run on special builders in future. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D104816
-
Kazu Hirata authored
The corresponding definition was removed on Jan 20, 2017 in commit 710a4c1f.
-
Joseph Huber authored
Mapping expressions that have `this` as their base expression aren't considered a valid base variable and the rest of the runtime expects this. However, if we have an expression with no value declaration we can try to extract it manually to provide more helpful debuggin information. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D108483
-
Amara Emerson authored
This is just 0 on AArch64.
-
Geoffrey Martin-Noble authored
Some of these were the wrong version and some of them were the wrong format. Did some hunting around to figure out what exactly they're supposed to be. Since basically everything is derived from the LLVM version we should probably make this a bit less hardcoded, but just fixing the values for now. Sources: https://github.com/llvm/llvm-project/blob/b686fc7a1bea/clang/include/clang/Basic/Version.inc.in https://github.com/llvm/llvm-project/blob/b686fc7a1bea/clang/CMakeLists.txt#L353-L363 https://github.com/llvm/llvm-project/blob/b686fc7a1bea/llvm/CMakeLists.txt#L13-L29 https://github.com/llvm/llvm-project/blob/b686fc7a1bea/lld/CMakeLists.txt#L131-L138 Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D108500
-
Fangrui Song authored
Space separated driver options are uncommon but Clang traditionally did not do a good job. --gcc-toolchain= is the preferred form. This discourage form appears to be rare, so we can just drop it. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D108494
-
Amara Emerson authored
Truncating stores with GPR bank sources shouldn't be mutated into using FPR bank sources, since those aren't supported. Ideally this should be a selection failure in the tablegen patterns, but for now avoid generating them.
-
Geoffrey Martin-Noble authored
There's a lot of unnecessary backslashes here that we can avoid to reduce confusion. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D108495
-
William S. Moses authored
Presently, the lowering of nested scf.parallel loops to OpenMP creates one omp.parallel region, with two (nested) OpenMP worksharing loops on the inside. When lowered to LLVM and executed, this results in incorrect results. The reason for this is as follows: An OpenMP parallel region results in the code being run with whatever number of threads available to OpenMP. Within a parallel region a worksharing loop divides up the total number of requested iterations by the available number of threads, and distributes accordingly. For a single ws loop in a parallel region, this works as intended. Now consider nested ws loops as follows: omp.parallel { A: omp.ws %i = 0...10 { B: omp.ws %j = 0...10 { code(%i, %j) } } } Suppose we ran this on two threads. The first workshare loop would decide to execute iterations 0, 1, 2, 3, 4 on thread 0, and iterations 5, 6, 7, 8, 9 on thread 1. The second workshare loop would decide the same for its iteration. This means thread 0 would execute i \in [0, 5) and j \in [0, 5). Thread 1 would execute i \in [5, 10) and j \in [5, 10). This means that iterations i in [5, 10), j in [0, 5) and i in [0, 5), j in [5, 10) never get executed, which is clearly wrong. This permits two options for a remedy: 1) Change the semantics of the omp.wsloop to be distinct from that of the OpenMP runtime call or equivalently #pragma omp for. This could then allow some lowering transformation to remedy the aforementioned issue. I don't think this is desirable for an abstraction standpoint. 2) When lowering an scf.parallel always surround the wsloop with a new parallel region (thereby causing the innermost wsloop to use the number of threads available only to it). This PR implements the latter change. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D108426 -
Fangrui Song authored
Space separated driver options are uncommon but Clang traditionally did not do a good job. --gcc-toolchain= is the preferred form.
-
Jessica Paquette authored
Clamp types to [s32, s64] and make them a power of 2. This matches SDAG's behaviour. https://godbolt.org/z/vTeGqf4vT Differential Revision: https://reviews.llvm.org/D108344
-
Jessica Paquette authored
SDAG lowers 32-bit and 64-bit G_SMULO + G_UMULO. We were missing the 32-bit case. For other sizes, make the 0th type a power of 2 and clamp it to either 32 bits or 64 bits. Right now, this will allow us to handle narrow types (e.g. s4, s24, etc.). The LegalizerHelper doesn't support narrowing G_SMULO or G_UMULO right now. I think we want clamping behaviour either way, so we might as well include it now to be explicit. Differential Revision: https://reviews.llvm.org/D108240
-
Jessica Paquette authored
We had a rule for <n x s64> but not one for <n x p0>. As a result, we'd fall back on like <5 x p0> or whatever. Differential Revision: https://reviews.llvm.org/D108484
-
Jessica Paquette authored
Destination is always a GPR, since the result is always an integer. Source is always a FPR, since the source is always floating point. Differential Revision: https://reviews.llvm.org/D108419
-
Fangrui Song authored
The original libunwind project defines UNW_AARCH64_* instead of UNW_ARM64_*. Rename the enum members to match. This allows some applications with simple `unw_init_local` usage to migrate to llvm-project libunwind. Note: the canonical names of `UNW_ARM_D{0..31}` are now `UNW_AARCH64_V{0..31}`, to match the original libunwind. UNW_ARM64_* are kept for now for compatibility. Some may be unneeded and can be cleaned up in the future. Reviewed By: #libunwind, compnerd Differential Revision: https://reviews.llvm.org/D107996 -
Jessica Paquette authored
Matches SDAG's behaviour for these types. Differential Revision: https://reviews.llvm.org/D108420
-
Arthur Eubanks authored
-
Jessica Paquette authored
Basically the same as G_LROUND. Handles the llvm.llround family of intrinsics. Also add a helper function to the MachineVerifier for checking if all of the (virtual register) operands of an instruction are scalars. Seems like a useful thing to have. Differential Revision: https://reviews.llvm.org/D108429
-
Nikita Popov authored
Currently it's possible to silently use a loop pass that does not preserve MemorySSA in a loop-mssa pass manager, as we don't statically know which loop passes preserve MemorySSA (as was the case with the legacy pass manager). However, we can at least add a check after the fact that if MemorySSA is used, then it should also have been preserved. Hopefully this will reduce confusion as seen in https://bugs.llvm.org/show_bug.cgi?id=51020. Differential Revision: https://reviews.llvm.org/D108399
-
Mircea Trofin authored
Because of an odd linking problem, we need to temporarily support building with TF C API 1.15 + tensorflow 2.50 pip package in 'development' mode scenarios. Protobuf Message 'Swap' is partially implemented in the header (2.50) and relies on a symbol not found in TF C API 1.15. std::move avoids that, at no semantic cost.
-
Florian Hahn authored
This reverts commit f4122398 to investigate a crash exposed by it. The patch breaks building the code below with `clang -O2 --target=aarch64-linux` int a; double b, c; void d() { for (; a; a++) { b += c; c = a; } }
-
Yonghong Song authored
Generate btf_tag annotations for record fields. The annotations are represented as an DINodeArray in DebugInfo. Differential Revision: https://reviews.llvm.org/D106616
-
Rob Suderman authored
Multiple operations were still defined as TC ops that had equivalent versions as YAML operations. Reducing to a single compilation path guarantees that frontends can lower to their equivalent operations without missing the optimized fastpath. Some operations are maintained purely for testing purposes (mainly conv{1,2,3}D as they are included as sole tests in the vectorizaiton transforms. Differential Revision: https://reviews.llvm.org/D108169 -
Daniel Paoliello authored
Issue Details: The addresses for SEH tables for Windows are incorrect as 1 was unconditionally being added to all addresses. +1 is required for the SEH end address (as it is exclusive), but the SEH start addresses is inclusive and so should be used as-is. In the IP2State tables, the addresses are +1 for AMD64 to handle the return address for a call being after the actual call instruction but are as-is for ARM and ARM64 as the `StateFromIp` function in the VC runtime automatically takes this into account and adjusts the address that is it looking up. Fix Details: * Split the `getLabel` function into two: `getLabel` (used for the SEH start address and ARM+ARM64 IP2State addresses) and `getLabelPlusOne` (for the SEH end address, and AMD64 IP2State addresses). Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D107784
-
Craig Topper authored
-
Yonghong Song authored
Generate btf_tag annotations for DIDrived types. More specifically, clang frontend generates the btf_tag annotations for record fields. The annotations are represented as an DINodeArray in DebugInfo. The following example illustrate how annotations are encoded in IR: distinct !DIDerivedType(tag: DW_TAG_member, ..., annotations: !10) !10 = !{!11, !12} !11 = !{!"btf_tag", !"a"} !12 = !{!"btf_tag", !"b"} Differential Revision: https://reviews.llvm.org/D106616 -
Louis Dionne authored
Differential Revision: https://reviews.llvm.org/D108471
-
Joe Loser authored
A few headers in algorithm include `<iterator>` when `<__iterator/distance.h>` would suffice. Change them to just include `<__iterator.distance.h>`. Differential Revision: https://reviews.llvm.org/D108393
-
Christian Fetzer authored
Commit 9f2967bc introduced support for branch coverage including export to the LCOV format. This commit corrects the LCOV field name for branches from BFH to BRH. The mistake seems to have slipped in as typo because the correct field name BRH is used in the comment section at the beginning of the file. Differential Revision: https://reviews.llvm.org/D108358
-
Aditya Kumar authored
When the stack is not reset it keeps previously visited Basic Block which results in bugs where an instruction is hoisted to a predecessor where the instruction was not fully anticipable. Differential Revision: https://reviews.llvm.org/D108425
-
Aart Bik authored
Folding in the MLIR uses the order of the type directly but folding in the underlying implementation must take the dim ordering into account. These tests clarify that behavior and verify it is done right. Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D108474
-
Muiez Ahmed authored
The aim of this patch is to remove the assumption that the character 'a' is always 97. In turn, this patch explicitly uses the character values to account for the EBCDIC 'a' that is not 97. Differential Revision: https://reviews.llvm.org/D108321
-
Michael Jones authored
adds a custom command for libc-scudo-integration-test that makes it run when it is built. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D108409
-
Arthur Eubanks authored
-
Arthur Eubanks authored
-
Patrick Holland authored
[MCA] Fixing bug that was causing LSUnit not to realize an instruction finished executing when the instruction has 0 latency. Differential Revision: https://reviews.llvm.org/D108443
-
Ivan Zhechev authored
We currently feed full files to Python's unified_diff. It's not quite what we want though - line-by-line comparison makes more sense (we want to be able to identify missing/unnecessary lines) and is also easier to parse for humans. This patch makes sure that we compare one line at a time. This change pretties up the output formatting in the script. Output before: ``` !DEF:/m/s/xINTENT(IN)(Implicit)ObjectEntityREAL(4) !DEF:/m/s/yINTENT(INOUT)(Implicit)ObjectEntityREAL(4) -!-D-E-F-:-f-o-o-b-a-r- puresubroutines(x,y)bind(c) !REF:/m/s/x intent(in)::x ``` Proposed output after: ``` !DEF:/m/s/xINTENT(IN)(Implicit)ObjectEntityREAL(4) !DEF:/m/s/yINTENT(INOUT)(Implicit)ObjectEntityREAL(4) -!DEF:foobar puresubroutines(x,y)bind(c) !REF:/m/s/x intent(in)::x ``` Reviewed By: Meinersbur, awarzynski Differential Revision: https://reviews.llvm.org/D107954
-
Louis Dionne authored
Differential Revision: https://reviews.llvm.org/D108466
-
Albion Fung authored
The test case is not ran unless libcxx is used, and a macro may be undefined. This patch checks for the definition of the macro before using it. Fixes http://llvm.org/PR51430 Differential Revision: https://reviews.llvm.org/D108352
-
Jon Chesterfield authored
Failed a nvptx codegen test This reverts commit 2a47a84b.
-