- Jun 15, 2021
-
-
Andrea Di Biagio authored
This patch fixes the logic that checks for variadic register definitions, Before llvm-svn 348114 (commit 4cf35b4a), it was not possible to explicitly mark variadic operands as definitions. By default, variadic operands of an MCInst were always assumed to be uses. A number of had-hoc checks were introduced in the InstrBuilder to fix the processing of variadic register operands of ARM ldm/stm variants. This patch simply replaces those old (and buggy) checks with a much simpler (and correct) check for MCID::Flag::VariadicOpsAreDefs.
-
Alex Richardson authored
Apparently __builtin_abort() is not supported when targetting Windows. This should fix the following builder errors: clang_rt.builtins-x86_64.lib(int_util.c.obj) : error LNK2019: unresolved external symbol __builtin_abort referenced in function __compilerrt_abort_impl
-
Valeriy Savchenko authored
Differential Revision: https://reviews.llvm.org/D104046
-
Valeriy Savchenko authored
Differential Revision: https://reviews.llvm.org/D103961
-
Valeriy Savchenko authored
Differential Revision: https://reviews.llvm.org/D103917
-
Valeriy Savchenko authored
One interesting problem was discovered here. When we do interrupt Tracker's track flow, we want to interrupt only it and not all the other flows recursively. Differential Revision: https://reviews.llvm.org/D103914
-
Valeriy Savchenko authored
Differential Revision: https://reviews.llvm.org/D103902
-
Valeriy Savchenko authored
Differential Revision: https://reviews.llvm.org/D103677
-
Valeriy Savchenko authored
After this patch, custom StoreHandlers will also work as expected. Differential Revision: https://reviews.llvm.org/D103644
-
Krasimir Georgiev authored
https://github.com/llvm/llvm-project/commit/21c18d5a04316891110cecc2bf37ce51533decba improved the detection of multiplication in function call argument lists, but unintentionally regressed the handling of function type casts (there were no tests covering those). This patch improves the detection of function type casts and adds a few tests. Reviewed By: HazardyKnusperkeks Differential Revision: https://reviews.llvm.org/D104209
-
Matthias Springer authored
Fold PadTensorOp to source if source type and result type have static shape and are equal. Differential Revision: https://reviews.llvm.org/D103778
-
Jay Foad authored
This has been unnecessary since r352353 removed GraphTraits specializations for Type, except that a couple of other headers were accidentally relying on this declaration. Differential Revision: https://reviews.llvm.org/D104119
-
Alex Richardson authored
When compiled with -ffreestanding, we should not assume that headers declaring functions such as abort() are available. While the compiler may still emit calls to those functions [1], we should not require the headers to build compiler-rt since that can result in a cyclic dependency graph: The compiler-rt functions might be required to build libc.so, but the libc headers such as stdlib.h might only be available once libc has been built. [1] From https://gcc.gnu.org/onlinedocs/gcc/Standards.html: GCC requires the freestanding environment provide memcpy, memmove, memset and memcmp. Finally, if __builtin_trap is used, and the target does not implement the trap pattern, then GCC emits a call to abort. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D103876
-
Guillaume Chatelet authored
This reverts commit 454d92ac.
-
Guillaume Chatelet authored
Resubmission of D100646 now making sure that we handle cases were `__builtin_memcpy_inline` is not available. Original commit message: Each of these elementary operations can be assembled to support higher order constructs (Overlapping access, Loop, Aligned Loop). The patch does not compile yet as it depends on other ones (D100571, D100631) but it allows to get the conversation started. A self-contained version of this code is available at https://godbolt.org/z/e1x6xdaxM
-
Tres Popp authored
This doesn't add any canonicalizations, but executes the same simplification on bufferSemantic linalg.generic ops by using linalg::ReshapeOp instead of linalg::TensorReshapeOp. Differential Revision: https://reviews.llvm.org/D103513
-
LLVM GN Syncbot authored
-
CarlosAlbertoEnciso authored
This patch is to address https://bugs.llvm.org/show_bug.cgi?id=50459. YAML:455:28: error: GUID strings are 38 characters long The valid format for a GUID is {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} where X is a hex digit (0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F). The length of the individual components must be: 8, 4, 4, 4, 12. For some cases, the converted string generated by obj2yaml, does not comply with those lengths. yaml2obj checks that the GUID string must be 38 characters including the dashes and braces. Reviewed By: amccarth Differential Revision: https://reviews.llvm.org/D103089
-
Lang Hames authored
Handlers returning void previously caused compile errors. Fix that by substituting SPSEmpty placeholder values.
-
CarlosAlbertoEnciso authored
This reverts commit b4d40e19.
-
Pushpinder Singh authored
This patch includes some changes which deletes the code accessing g_atl_machine global. Some accesses related to memory_pools are still remaining. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D103813
-
Carlos Alberto Enciso authored
Add full stop at the end of comment.
-
Craig Topper authored
Changing vector element type doesn't work for v6i32->v6i16 now that v6i32 is an MVT and v6i16 is not. I would like to fix this in changeVectorElementType, but you need a LLVMContext to call getVectorVT which we can't get from an MVT. Fixes PR50709.
-
Vitaly Buka authored
-
Vitaly Buka authored
ubsan detected: lld/MachO/SyntheticSections.cpp:636:15: runtime error: null pointer passed as argument 2, which is declared to never be null
-
Yaxun (Sam) Liu authored
A lambda in a function template may be recursively instantiated. The recursive lambda will cause a lambda function instantiated multiple times, one inside another. The inner LocalInstantiationScope should not be marked as MergeWithParentScope since it already has references to locals properly substituted, otherwise it causes assertion due to the check for duplicate locals in merged LocalInstantiationScope. Reviewed by: Richard Smith Differential Revision: https://reviews.llvm.org/D98068
-
Louis Dionne authored
The runtimes build has assertions enabled, which is necessary to catch some of the modules-related issues we've been seeing recently. This patch enables testing with modules in the runtimes build so as to cover those cases. In the future, a better solution would be to systematically use versions of Clang that have assertions enabled. However, the Clangs we release currently don't have assertions enabled by default, which causes a challenge for the CI (we could try to build our own Clang from ToT with assertions in the CI, but that poses some problems). Differential Revision: https://reviews.llvm.org/D104252
-
Alexander Shaposhnikov authored
Add first bits for emitting LC_DATA_IN_CODE. Test plan: make check-lld-macho Differential revision: https://reviews.llvm.org/D103006
-
Kai Luo authored
Export `lq`, `stq`, `lqarx` and `stqcx.` in preparation for implementing 16-byte lock free atomic operations on AIX. Add a new register class `g8prc` for these instructions, since these instructions require even-odd register pair. Reviewed By: nemanjai, jsji, #powerpc Differential Revision: https://reviews.llvm.org/D103010
-
Vitaly Buka authored
-
Sean Silva authored
This is useful for "build tuple" type ops. In my case, in npcomp, I have an op: ``` // Result type is `!torch.tuple<!torch.tensor, !torch.tensor>`. torch.prim.TupleConstruct %0, %1 : !torch.tensor, !torch.tensor ``` and the context is required for the `Torch::TupleType::get` call (for the case of an empty tuple). The handling of these FmtContext's in the code is pretty ad-hoc -- I didn't attempt to rationalize it and just made a targeted fix. As someone unfamiliar with the code I had a hard time seeing how to more broadly fix the situation. Differential Revision: https://reviews.llvm.org/D104274
-
Leonard Chan authored
If SymbolizePC failes, it's possible for the newline to not be emitted. Differential Revision: https://reviews.llvm.org/D103845
-
Jacob Hegna authored
If the flag is not set, the script saved_model_aot_compile.py in tensorflow will default it to the correct value. However, in TF 2.5, the way the value is set in TensorFlowCompile.cmake file triggers a build error. Reviewed By: mtrofin Differential Revision: https://reviews.llvm.org/D103972
-
Adrian Prantl authored
One nice feature of the os_signpost API is that format string substitutions happen in the consumer, not the logging application. LLVM's current Signpost class doesn't take advantage of this though and instead always uses a static "Begin/End %s" format string. This patch uses variadic macros to allow the API to be used as intended. Unfortunately, the primary use-case I had in mind (the LLDB_SCOPED_TIMER() macro) does not get much better from this, because __PRETTY_FUNCTION__ is *not* a macro, but a static string, so signposts created by LLDB_SCOPED_TIMER() still use a static "%s" format string. At least LLDB_SCOPED_TIMERF() works as intended. This reapplies the previously reverted patch with additional include order fixes for non-modular builds of LLDB. Differential Revision: https://reviews.llvm.org/D103575
-
Huihui Zhang authored
Currently, Loop strengh reduce is not handling loops with scalable stride very well. Take loop vectorized with scalable vector type <vscale x 8 x i16> for instance, (refer to test/CodeGen/AArch64/sve-lsr-scaled-index-addressing-mode.ll added). Memory accesses are incremented by "16*vscale", while induction variable is incremented by "8*vscale". The scaling factor "2" needs to be extracted to build candidate formula i.e., "reg(%in) + 2*reg({0,+,(8 * %vscale)}". So that addrec register reg({0,+,(8*vscale)}) can be reused among Address and ICmpZero LSRUses to enable optimal solution selection. This patch allow LSR getExactSDiv to recognize special cases like "C1*X*Y /s C2*X*Y", and pull out "C1 /s C2" as scaling factor whenever possible. Without this change, LSR is missing candidate formula with proper scaled factor to leverage target scaled-index addressing mode. Note: This patch doesn't fully fix AArch64 isLegalAddressingMode for scalable vector. But allow simple valid scale to pass through. Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D103939 -
Adrian Prantl authored
This reverts commit 03841edd. Unfortunately this still breaks the LLDB standalone bot.
-
Krzysztof Parzyszek authored
-
Siva Chandra Reddy authored
-
Matt Morehouse authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D104265
-
Adrian Prantl authored
One nice feature of the os_signpost API is that format string substitutions happen in the consumer, not the logging application. LLVM's current Signpost class doesn't take advantage of this though and instead always uses a static "Begin/End %s" format string. This patch uses variadic macros to allow the API to be used as intended. Unfortunately, the primary use-case I had in mind (the LLDB_SCOPED_TIMER() macro) does not get much better from this, because __PRETTY_FUNCTION__ is *not* a macro, but a static string, so signposts created by LLDB_SCOPED_TIMER() still use a static "%s" format string. At least LLDB_SCOPED_TIMERF() works as intended. This reapplies the previsously reverted patch with additional MachO.h macro #undefs. Differential Revision: https://reviews.llvm.org/D103575
-