- Apr 25, 2020
-
-
Sean Silva authored
- ShapeOfOp - BroadcastOp Differential Revision: https://reviews.llvm.org/D78822
-
Sean Silva authored
- shape split_at - shape.broadcast - shape.concat - shape.to_extent_tensor Differential Revision: https://reviews.llvm.org/D78821
-
Eric Christopher authored
-
Adrian Prantl authored
attributes such as __unsafe_unretained that is not present in DWARF.
-
Sean Silva authored
- Implement a first constant fold for shape.shape_of (more ops coming in subsequent patches) - Implement the right builder interfaces for ShapeType and other types - Splits shape.constant into shape.const_size and shape.const_shape which plays better with dyn_cast and building vs one polymorphic op. Also, fix the RUN line in ops.mlir to properly verify round-tripping.
-
Craig Topper authored
[X86][ArgumentPromotion] Allow Argument Promotion if caller and callee disagree on 512-bit vectors support if the arguments are scalar. If one of caller/callee has disabled ZMM registers due to prefer-vector-width=256, we were previously disabling argument promotion as the ABI might be incompatible since one side will split 512-bit vectors in this case. But if we can see that the types are all scalar this shouldn't be a problem. This patch assumes that pointer element type reflects the type that the argument will be promoted to. Differential Revision: https://reviews.llvm.org/D78770
-
Stephen Neuendorffer authored
This broke BUILD_SHARED_LIBS=on
-
Adrian Prantl authored
-
Snehasish Kumar authored
Summary: Instead of adding a ".unlikely" or ".eh" suffix for machine basic blocks, this change updates the behaviour to use an appropriate prefix instead. This allows lld to group basic block sections together when -z,keep-text-section-prefix is specified and matches the behaviour observed in gcc. Reviewers: tmsriram, mtrofin, efriedma Reviewed By: tmsriram, efriedma Subscribers: eli.friedman, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D78742
-
Fangrui Song authored
[XRay] Change Sled.Function to PC-relative for sled version 2 and make llvm-xray support sled version 2 addresses Follow-up of D78082 and D78590. Otherwise, because xray_instr_map is now read-only, the absolute relocation used for Sled.Function will cause a text relocation.
-
peter klausler authored
Summary: This is a continuation of development of the runtime support library's functions for CHARACTER data; specifically, it implements CHARACTER comparisons. It includes a new unit test, and moves an #include directive to the runtime's unit testing main header. Reviewers: tskeith, sscalpone, DavidTruby, jdoerfert Reviewed By: tskeith Subscribers: flang-commits, mgorny, llvm-commits Tags: #llvm, #flang Differential Revision: https://reviews.llvm.org/D78826
-
Amara Emerson authored
A previous bug fix for varargs introduced a regression where we would incorrectly widen some stores to memory when passing i8/i16 parameters on the stack. This didn't show up seemingly because it only happens when there is no signext/zeroext parameter attribute, which I think for Darwin clang adds. Swift however seems to be a different story, and a plain anyext on the parameter triggered the bug. To fix this, I've added a new ValueHandler::assignValueToAddress type override which lets us distiguish between varargs and fixed args (we still need this widening behaviour for varargs to fix the original bug in 2018). rdar://61353552
-
Louis Dionne authored
-
Jean-Michel Gorius authored
Summary: Add a check to make sure that MachineInstr::mayAlias returns prematurely if at least one of its instruction parameters does not access memory. This prevents calls to TargetInstrInfo::areMemAccessesTriviallyDisjoint with incompatible instructions. A side effect of this change is to render the mayAlias helper in the AArch64 load/store optimizer obsolete. We can now directly call the MachineInstr::mayAlias member function. Reviewers: hfinkel, t.p.northover, mcrosier, eli.friedman, efriedma Reviewed By: efriedma Subscribers: efriedma, kristof.beyls, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D78823
-
Yaxun (Sam) Liu authored
-
David Blaikie authored
Summary: find_next_unset was returning size() instead of -1 in small-mode, when no unset bits are found. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D77985
-
Alexandre Ganea authored
This reverts commit e98f73a6.
-
Craig Topper authored
[CostModel][X86][ARM] Teach getCastInstrCost to include the splitting factor when handling operations that type legalize to the same number of subvectors or scalar components Previously, we just always returned 1. But that ignores that we have to do the operation for each subvector or scalar component. Differential Revision: https://reviews.llvm.org/D78824
-
Ron Lieberman authored
The two locals IsNew and Pointer_IsNew were uninitialized at declaration, and then passed by reference to Device.getOrAllocTgtPtr which in turn did not assign on all paths within the function. This resulted in occasional runtime failures in one application. Device::getOrAllocTgtPtr will now initialize IsNew to false on entry to function. Differential Revision: https://reviews.llvm.org/D78744
-
Pengxuan Zheng authored
Summary: The instruction dret is used to return from debug mode and is defined in the RISC-V debug mode spec. https://github.com/riscv/riscv-opcodes/blob/master/opcodes-system Reviewers: apazos, asb, lenary, luismarques Reviewed By: apazos Subscribers: jfb, hiraditya, rbar, johnrusso, simoncook, sabuasal, niosHD, kito-cheng, shiva0217, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna, Jim, s.egerton, sameer.abuasal, evandro, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D78583
-
Tyker authored
Reviewers: jdoerfert Reviewed By: jdoerfert Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77742
-
Adrian Prantl authored
For developing the OS itself there exists an "internal" variant of each SDK. This patch adds support for these SDK directories to the XcodeSDK class. Differential Revision: https://reviews.llvm.org/D78675
-
Matt Arsenault authored
This is to fix performance regressions introduced by 86c944d7. The old search would collect all potentially mergeable instructions in the entire block. In this case, the same address is written in multiple places in the block on the other side of a fence. When sorted by offset, the two unmergeable, identical addresses would be next to each other and the merge would give up. Break the search space when we encounter an instruction we won't be able to merge across. This will keep the identical addresses in different merge attempts. This may also improve compile time by reducing the merge list size.
-
Jonas Devlieghere authored
Use an early return for when we couldn't create a pipe to source the commands.
-
Louis Dionne authored
-
Fangrui Song authored
Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D78819
-
River Riddle authored
The current implementation of this method performs the replacement directly, and thus doesn't support proper back tracking. Differential Revision: https://reviews.llvm.org/D78790
-
Louis Dionne authored
This way, we can reuse the substitution logic in the new DSL.
-
Louis Dionne authored
-
Alexandre Ganea authored
As reported here: https://reviews.llvm.org/D75153#1987272 Before, each instance of llvm-cov was creating one thread per hardware core, which wasn't needed probably because the number of inputs were small. This was probably causing a thread rlimit issue on large core count systems. After this patch, the previous behavior is restored (to what was before rG8404aeb5): If --num-threads is not specified, we create one thread per input, up to num.cores. When specified, --num-threads indicates any number of threads, with no upper limit. Differential Revision: https://reviews.llvm.org/D78408
-
River Riddle authored
The elements of a DictionaryAttr are sorted by name. In many situations, e.g NamedAttributeList, we can guarantee that the elements are sorted on construction and remove the need to perform extra checks. In places with lots of calls to attribute methods, this leads to a good performance improvement. Differential Revision: https://reviews.llvm.org/D78781
-
Petr Hosek authored
While we don't support 32-bit architectures in Fuchsia, these are needed in the early boot phase on x86, so we build just these to satisfy that use case. Differential Revision: https://reviews.llvm.org/D78687
-
Michael Liao authored
-
Yaxun (Sam) Liu authored
This reverts commit c77a4078.
-
Yaxun (Sam) Liu authored
Currently clang fails to compile the following CUDA program in device compilation: __host__ int foo(int x) { return 1; } template<class T> __device__ __host__ int foo(T x) { return 2; } __device__ __host__ int bar() { return foo(1); } __global__ void test(int *a) { *a = bar(); } This is due to foo is resolved to the __host__ foo instead of __device__ __host__ foo. This seems to be a bug since __device__ __host__ foo is a viable callee for foo whereas clang is unable to choose it. This patch fixes that. Differential Revision: https://reviews.llvm.org/D77954 -
Adrian Prantl authored
-
Louis Dionne authored
Otherwise, the progress-meter is printed.
-
Tyker authored
Summary: Use nonnull and dereferenceable from an assume bundle in isKnownNonZero Reviewers: jdoerfert, nikic, lebedev.ri, reames, fhahn, sstefan1 Reviewed By: jdoerfert Subscribers: fhahn, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76149
-
Vedant Kumar authored
When using reversedInstructionsWithoutDebug to construct a range from a pair of MachineInstrBundleIterators, the range unexpectedly leaves out an element. This results in mis-optimization as @mstorsjo points out in https://reviews.llvm.org/D78157. The problem is that when we convert a MachineInstrBundleIterator to a reverse iterator, the result gets incremented: MachineInstrBundleIterator(++I.getReverse()) The comment there explains that the "resulting iterator will dereference ... to the previous node, which is somewhat unexpected; but converting the two endpoints in a range will give the same range in reverse". This makes it hard to understand what reversedInstructionsWithoutDebug will do: I've removed the helper to prevent similar mistakes in the future.
-