- May 03, 2022
-
-
David Green authored
This adds fptosi_sat and fptoui_sat to the list of trivially vectorizable functions, mainly so that the loop vectorizer can vectorize the instruction. Marking them as trivially vectorizable also allows them to be SLP vectorized, and Scalarized. The signature of a fptosi_sat requires two type overrides (@llvm.fptosi.sat.v2i32.v2f32), unlike other intrinsics that often only take a single. This patch alters hasVectorInstrinsicOverloadedScalarOpd to isVectorIntrinsicWithOverloadTypeAtArg, so that it can mark the first operand of the intrinsic as a overloaded (but not scalar) operand. Differential Revision: https://reviews.llvm.org/D124358
-
Pavel Labath authored
The entries in the input map need to be sorted as well, as there's no guarantee that the entries (ConstStrings) will be inserted in the proper order.
-
Ivan Murashko authored
The documentation has an incorrect example of PCH files usage via `-include` option. The possibility has not been available since [llvm-svn: 174385](https://reviews.llvm.org/rG48b72d81c8968f3d342557582db986a60aef2c54). Differential Revision: https://reviews.llvm.org/D124719
-
Luo, Yuanke authored
-
Vitaly Buka authored
https://lab.llvm.org/buildbot/#/builders/70/builds/21206 hangs. This reverts commit 2fec52a4.
-
Vitaly Buka authored
To fix msan report like https://reviews.llvm.org/P8284 Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D124575
-
Jonas Devlieghere authored
Make GetSharedModuleWithLocalCache consider the device support directory. In the past we only needed the device support directory to debug remote processes. Since the introduction of Apple Silicon and Rosetta this stopped being true. When debugging a Rosetta process on macOS we need to consider the Rosetta expanded shared cache. This patch and it dependencies move that logic out of PlatfromRemoteDarwinDevice into a new abstract class called PlatfromDarwinDevice. The new platform sit in between PlatformDarwin and PlatformMacOSX and PlatformRemoteDarwinDevice and has all the necessary logic to deal with the device support directory. Technically I could have moved everything in PlatfromDarwinDevice into PlatfromDarwin but decided that this logic is sufficiently self contained that it warrants its own abstraction. rdar://91966349 Differential revision: https://reviews.llvm.org/D124801
-
Hsiangkai Wang authored
Differential Revision: https://reviews.llvm.org/D124602
-
Hsiangkai Wang authored
Follow-up to D122933. Differential Revision: https://reviews.llvm.org/D124374
-
Craig Topper authored
Reviewed By: arcbbb Differential Revision: https://reviews.llvm.org/D123972
-
hsmahesha authored
so that the stack access is avoided. Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D124734
-
hsmahesha authored
by moving around the code and by adding more comments, which would later help during any required clean-up. Differential Revision: https://reviews.llvm.org/D124733
-
Zakk Chen authored
The result was totally wrong. We could use mask undisturbed result to emulate the mask agnostic result. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D124684
-
LLVM GN Syncbot authored
-
Jonas Devlieghere authored
Refactoring in preparation of D124801. Differential revision: https://reviews.llvm.org/D124800
-
Jonas Devlieghere authored
Refactoring in preparation of D124801. Differential revision: https://reviews.llvm.org/D124799
-
Jonas Devlieghere authored
As far as I can tell this function is unused both upstream and downstream.
-
Jonas Devlieghere authored
There's no reason PlatformRemoteMacOSX has to override GetFileWithUUID.
-
Weverything authored
The majority of tests omit testing "clang" for -cc1 command lines. In addition, some distributions symlink %clang to an executable with a content hash based filename so clang{{.*}} check won't work. With this change, we can remove many -no-canonical-prefixes whose purpose was to make the tests pass on such distributions. -
Craig Topper authored
When looking for memory uses, reassociationCanBreakAddressingModePattern should check uses of the outer ADD rather than the inner ADD. We want to know if the two ops we're reassociating are used by a load/store. In practice, the existing check usually works because CodeGenPrepare will make one of the load/stores have an offset of 0 relative to split GEP. That will make the inner add have a memory use. To test this, I've manually split the GEPs so there is no 0 offset store. This issue was recently discussed in the original review D60294. Reviewed By: luismarques Differential Revision: https://reviews.llvm.org/D124644
-
Tanya Lattner authored
-
Min-Yih Hsu authored
This patch add supports for translating FCmp and more kinds of FP constants in addition to 32 & 64-bit ones. However, we can't express ppc_fp128 constants right now because the semantics for its underlying APFloat is `S_PPCDoubleDouble` but mlir::FloatType doesn't support such semantics right now. Differential Revision: https://reviews.llvm.org/D124630
-
Chris Bieneman authored
This silences warnings encountered on some bots.
-
Nicolai Hähnle authored
Refactor to simplify a follow-up change. No functional change intended. However, there is a rather subtle logic change: the subsequent combines (e.g. reassociation) are skipped *always* when one of the operands of the add is a mul, instead of only when additionally mad64_32 etc. are available. This change makes sense because the subsequent combines should never apply when one of the operands is a mul. Differential Revision: https://reviews.llvm.org/D123833
-
LLVM GN Syncbot authored
-
Vitaly Buka authored
Breaks bots, see https://reviews.llvm.org/D124699 This reverts commit e547a333.
-
Chris Bieneman authored
This adds support to llvm::identify_magic to detect DXBC and classify it as the dxcontainer format.
-
Bardia Mahjour authored
-
Evgenii Stepanov authored
These "new" syscalls have been added in 2.6.16, more than 16 years ago. Surely that's enough time to migrate. Glibc 2.33 is using them on both i386 and x86_64. Android has an selinux filter to block the legacy syscalls in the apps. Differential Revision: https://reviews.llvm.org/D124212
-
Bardia Mahjour authored
Reviewed By: congzhe, etiotto Differential Revision: https://reviews.llvm.org/D123400
-
Teresa Johnson authored
We don't need to insert a load of the dynamic shadow address unless there are interesting memory accesses to profile. Split out of D124703. Differential Revision: https://reviews.llvm.org/D124797
-
Chris Bieneman authored
Some versions of GCC don't implicitly move Error to Expected.
-
Emil Kieri authored
The RETURN statement is allowed in functions and subroutines, but not in main programs. It is however a common extension, which we also implement, to allow RETURN from main programs -- we only issue a portability warning when -pedantic or -std=f2018 are set. This patch fixes false positives for this portability warning, where it was triggered also when RETURN was present in functions or subroutines. Fixexs #55080 Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D124732
-
Chris Bieneman authored
-
Alexey Bataev authored
-
Tobias Ribizel authored
Add a & prefix to all parameter inlay hints that refer to a non-const l-value reference. That makes it easier to identify them even if semantic highlighting is not used (where this is already available) Reviewed By: nridge Differential Revision: https://reviews.llvm.org/D124359
-
Sheng authored
Since now we are able to handle both fixed length & variable length instructions. Reviewed By: myhsu Differential Revision: https://reviews.llvm.org/D123451
-
Sheng authored
To support variable length instructions, I think of them as fixed length instructions with the "maximum length". For example, if there're three instructions with 2, 6 and 9 bytes, we can fit them into the algorithm by treating them all as 9 bytes. Also, since we can't know the length of the instruction in advance, there is a function object with type `void(APInt &, uint64_t)` added in the parameter list of `decodeInstruction` and `fieldFromInstruction`. We can use this to supply the additional bits the decoder needs after we know the opcode of the instruction. Finally, `InstrLenTable` is added to let the decoder know the length of the instructions. See D120960 for its usage. Reviewed By: myhsu Differential Revision: https://reviews.llvm.org/D120958
-
Teresa Johnson authored
Suppress instrumentation of PGO counter accesses, which is unnecessary and costly. Also suppress accesses to other compiler inserted variables starting with "__llvm". This is a slightly expanded variant of what is done for tsan in shouldInstrumentReadWriteFromAddress. Differential Revision: https://reviews.llvm.org/D124703
-