- Feb 08, 2022
-
-
Simon Moll authored
Reviewed By: kaz7 Differential Revision: https://reviews.llvm.org/D119223
-
Simon Pilgrim authored
In many cases, calls to isShiftedMask are immediately followed with checks to determine the size and position of the bitmask. This patch adds variants of APInt::isShiftedMask, isShiftedMask_32 and isShiftedMask_64 that return these values as additional arguments. I've updated a number of cases that were either performing seperate size/position calculations or had created their own local wrapper versions of these. Differential Revision: https://reviews.llvm.org/D119019
-
Guillaume Chatelet authored
This implementation relies on storing data in registers for sizes up to 128B. Then depending on whether `dst` is less (resp. greater) than `src` we move data forward (resp. backward) by chunks of 32B. We first make sure one of the pointers is aligned to increase performance on large move sizes. Differential Revision: https://reviews.llvm.org/D114637
-
Simon Pilgrim authored
-
David Green authored
We currently use emitConjunction to create CCMP conjunctions from the conditions of selects, helping turning and/ors into more optimal ccmp sequences that don't need to go through csels. This extends that to also be used whilst lowering brcond, giving more opportunity for better condition generation. Differential Revision: https://reviews.llvm.org/D118650
-
Simon Pilgrim authored
This patch implements `__builtin_elementwise_add_sat` and `__builtin_elementwise_sub_sat` builtins. These map to the add/sub saturated math intrinsics described here: https://llvm.org/docs/LangRef.html#saturation-arithmetic-intrinsics With this in place we should then be able to replace the x86 SSE adds/subs intrinsics with these generic variants - it looks like other targets should be able to use these as well (arm/aarch64/webassembly all have similar examples in cgbuiltin). Differential Revision: https://reviews.llvm.org/D117898
-
Mubashar Ahmad authored
FeaturePerfMon has been enabled for CPUs in AArch64. Differential Revision: https://reviews.llvm.org/D118705
-
Nikita Popov authored
The module context shouldn't be relevant here, and should never be null either.
-
Nikita Popov authored
Instead of the pointer element type.
-
Nikita Popov authored
Instead of computing the size of the pointer element type.
-
Guillaume Chatelet authored
This is necessary to get llvm-libc compile with GCC. This patch is extracted from D119002. Differential Revision: https://reviews.llvm.org/D119143
-
Nikita Popov authored
Instead of pointer element type.
-
Andrzej Warzynski authored
Differential Revision: https://reviews.llvm.org/D119133
-
Guillaume Chatelet authored
llvm-libc exhibits a C interface but its source is C++. This patch explicitly disables the use of exceptions and RTTI when compiling the entrypoints. Differential Revision: https://reviews.llvm.org/D118889
-
Fraser Cormack authored
This patch adds an optimization to splat-like operations where the splatted value is extracted from a identically-sized vector. On RVV we can splat that via vrgather.vx/vrgather.vi without dropping to scalar beforehand. We do have a similar VECTOR_SHUFFLE-specific optimization but that only works on fixed-length vector types and for those with a constant splat lane. This patch extends this optimization to make it work on scalable-vector types and on unknown extract indices. It is performed during fixed-vector BUILD_VECTOR lowering and during a new DAGCombine on SPLAT_VECTOR for scalable vectors. Reviewed By: craig.topper, khchen Differential Revision: https://reviews.llvm.org/D118456
-
Nikita Popov authored
Instead of pointer element type.
-
Nikita Popov authored
Use the type of the stored value instead.
-
Guillaume Chatelet authored
This is necessary to get llvm-libc compile with GCC. This patch is extracted from D119002. Differential Revision: https://reviews.llvm.org/D119142
-
David Green authored
-
Tres Popp authored
mlir::shape::ToExtentTensorOp::areCastCompatible didn't allow the input to have a static dimension, but that is allowed.
-
Cullen Rhodes authored
s/-affine-vectorize/-affine-super-vectorize/g Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D118892
-
Nikita Popov authored
Before walking all the callers, check whether we have a dereferenceable attribute directly on the argument. Also make it clearer that the code currently does not treat alignment correctly.
-
Nikita Popov authored
While we check dereferenceability of all callers, we don't check dereferenceability annotations on the callee.
-
Nikita Popov authored
We only support chunks <= 32 bits regardless of whether we're running on a 64-bit platform or not. Chunk size > 32 <= 64 would cause UB in the reading code.
-
Nikita Popov authored
-
Nikita Popov authored
This avoid shift larger than bitwidth UB.
-
Nikita Popov authored
Probably missed as part of some recent header cleanup.
-
Clement Courbet authored
The extra space causes the table to render incorrectly in doxygen.
-
Marek Kurdej authored
-
Marek Kurdej authored
-
Alex Zinenko authored
This makes it applicable to both ArrayAttr and its typed subclasses instead of only the latter. There is no good reason why ArrayAttr shouldn't be const-buildable while its typed subclasses are, this was likely just an omission. Depends On D119113 Reviewed By: rriddle, nicolasvasilache Differential Revision: https://reviews.llvm.org/D119114
-
Alex Zinenko authored
ODS provides a mechanism for defalut-valued attributes based on a wrapper TableGen class that is recognized by mlir-tblgen. Such attributes, if not set on the operaiton, can be construted on-the-fly in their getter given a constant value. In order for this construction to work, the attribute specificaiton in ODS must set the constBuilderCall field correctly. This has not been verified, which could lead to invalid C++ code being generated by mlir-tblgen. Closes #53588. Reviewed By: rriddle, mehdi_amini Differential Revision: https://reviews.llvm.org/D119113
-
Zi Xuan Wu authored
CSKYDisassembler tries to disassemble register MC operand from register num for different register class, and also handles immediate num and carry flag operand which is not encoded in instruction binary. Also enhance the printer of instruction to accept sub-option to control the print format. Sometimes, it prefers to print number in hex, especially when immediate number represents symbol address.
-
Zi Xuan Wu authored
Now we only support CSKY 800 series cpus and newer cpus in the future undering CSKYv2 ABI specification. There are 11 processor family enums for CK series cpus such as CK801, CK802, CK803, CK803S, CK804, CK805, CK807, CK810, CK810V, CK860, CK860V. The SchedMachineModels are not ready for different cpus, so only NoSchedModel is used.
-
Tres Popp authored
-
Rainer Orth authored
`CodeGen/Generic/ForceStackAlign.ll` `FAIL`s on SPARC like this: LLVM ERROR: Function "g" required stack re-alignment, but LLVM couldn't handle it (probably because it has a dynamic alloca). According to the comments in `llvm/lib/Target/Sparc/SparcFrameLowering.cpp` (`SparcFrameLowering::emitPrologue`) and `SparcRegisterInfo.cpp` (`SparcRegisterInfo::canRealignStack`) this isn't going to change any time soon, so this patch `XFAIL`s the test. Tested on `sparcv9-sun-solaris2.11`. Differential Revision: https://reviews.llvm.org/D119119
-
Jason Molenda authored
Reviewing some recent fixes to the platform packet implementations in lldb, I saw the docs were out of sync in a few spots. Updated them. Differential Revision: https://reviews.llvm.org/D118842
-
Mariusz Ceier authored
When LLVM_ENABLE_ZLIB is ON gdb-remote should link against ZLIB::ZLIB. This fixes ``` /mnt/b/yoe/master/build/tmp/hosttools/ld: lib/liblldbPluginProcessGDBRemote.a(GDBRemoteCommunication.cpp.o): in function `lldb_private::process_gdb_remote::GDBRemoteCommunication::DecompressPacket() [clone .localalias]': GDBRemoteCommunication.cpp:(.text._ZN12lldb_private18process_gdb_remote22GDBRemoteCommunication16DecompressPacketEv+0x59a): undefined reference to `inflateInit2_' /mnt/b/yoe/master/build/tmp/hosttools/ld: GDBRemoteCommunication.cpp:(.text._ZN12lldb_private18process_gdb_remote22GDBRemoteCommunication16DecompressPacketEv+0x5af): undefined reference to `inflate' ``` Reviewed By: JDevlieghere, MaskRay Differential Revision: https://reviews.llvm.org/D119186
-
Carl Ritson authored
Add a shouldHoist method to TargetInstrInfo which is queried by MachineLICM to override hoisting decisions for a given target. This mirrors functionality provided by shouldSink. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D118773
-
Lang Hames authored
-