- Apr 02, 2020
-
-
Ed Maste authored
--script-language python and --script-language lua are both valid now. Reviewed by: JDevlieghere Differential Revision: https://reviews.llvm.org/D77241
-
Raul Tambre authored
In standalone builds the cxxabi_shared and cxxabi_static targets don't exist. We need to link against the library itself. Differential Revision: https://reviews.llvm.org/D77294
-
Sanjay Patel authored
This reverts commit f2fbdf76. As noted in the post-commit thread: https://reviews.llvm.org/rGf2fbdf76d8d0 ...this can obscure a min/max pattern where the components have extra uses. We can show that the problem is independent of this change with a slightly modified source example, so this revert just delays/reduces the need to fix the real problem. We need to improve our analysis of negation or -- more generally -- subtraction using patches like D77230 or D68408.
-
Tyker authored
Summary: Splitting Knowledge retention into Queries in Analysis and Builder into Transform/Utils allows Queries and Transform/Utils to use Analysis. Reviewers: jdoerfert, sstefan1 Reviewed By: jdoerfert Subscribers: mgorny, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77171
-
Jonas Paulsson authored
This patch adds - New arguments to getMinPrefetchStride() to let the target decide on a per-loop basis if software prefetching should be done even with a stride within the limit of the hw prefetcher. - New TTI hook enableWritePrefetching() to let a target do write prefetching by default (defaults to false). - In LoopDataPrefetch: - A search through the whole loop to gather information before emitting any prefetches. This way the target can get information via new arguments to getMinPrefetchStride() and emit prefetches more selectively. Collected information includes: Does the loop have a call, how many memory accesses, how many of them are strided, how many prefetches will cover them. This is NFC to before as long as the target does not change its definition of getMinPrefetchStride(). - If a previous access to the same exact address was 'read', and the current one is 'write', make it a 'write' prefetch. - If two accesses that are covered by the same prefetch do not dominate each other, put the prefetch in a block that dominates both of them. - If a ConstantMaxTripCount is less than ItersAhead, then skip the loop. - A SystemZ implementation of getMinPrefetchStride(). Review: Ulrich Weigand, Michael Kruse Differential Revision: https://reviews.llvm.org/D70228 -
Kang Zhang authored
-
Pavel Labath authored
The function takes ownership of the object. This makes that explicit, and avoids unowned pointers floating around.
-
Alexey Bataev authored
Added basic parsing/semantic analysis/(de)serialization support for iterator expression introduced in OpenMP 5.0.
-
Oliver Stannard authored
This is causing buildbot failures on 32-bit hosts, for example: http://lab.llvm.org:8011/builders/clang-cmake-armv8-lld/builds/3636 This reverts commit 03f43b3a.
-
Sven van Haastregt authored
Add the sub-group builtin functions from the OpenCL Extension specification. This patch excludes the sub_group_barrier builtins that take argument types not yet handled by the `-fdeclare-opencl-builtins` machinery. Co-authored-by:Pierre Gondois <pierre.gondois@arm.com>
-
Sanjay Patel authored
See discussion in D76983.
-
Sanjay Patel authored
-
Stefanos Baziotis authored
Differential Revision: https://reviews.llvm.org/D77151
-
LLVM GN Syncbot authored
-
Djordje Todorovic authored
Add an option to llvm-dwarfdump to calculate the bytes within the debug sections. Dump this numbers when using --statistics option as well. This is an initial patch (e.g. we should support other units, since we only support 'bytes' now). Differential Revision: https://reviews.llvm.org/D74205
-
Simon Pilgrim authored
The shift of 1 by an amount that is never more than 31 means that the warning is a false positive but is safe and fixes Werror builds.
-
Lucas Prates authored
[Clang][CodeGen] Fixing mismatch between memory layout and const expressions for oversized bitfields Summary: The construction of constants for structs/unions was conflicting the expected memory layout for over-sized bit-fields. When building the necessary bits for those fields, clang was ignoring the size information computed for the struct/union memory layout and using the original data from the AST's FieldDecl information. This caused an issue in big-endian targets, where the field's contant was incorrectly misplaced due to endian calculations. This patch aims to separate the constant value from the necessary padding bits, using the proper size information for each one of them. With this, the layout of constants for over-sized bit-fields matches the ABI requirements. Reviewers: rsmith, eli.friedman, efriedma Reviewed By: efriedma Subscribers: efriedma, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D77048
-
Daniel Kiss authored
Summary: As defined by Arm C Language Extensions (ACLE) these macro defines should be set to specific values depending on -mbranch-protection. Reviewers: chill Reviewed By: chill Subscribers: danielkiss, cfe-commits, kristof.beyls Tags: #clang Differential Revision: https://reviews.llvm.org/D77134
-
Alex Zinenko authored
Summary: LLVM IR functions can have arbitrary attributes attached to them, some of which affect may affect code transformations. Until we can model all attributes consistently, provide a pass-through mechanism that forwards attributes from the LLVMFuncOp in MLIR to LLVM IR functions during translation. This mechanism relies on LLVM IR being able to recognize string representations of the attributes and performs some additional checking to avoid hitting assertions within LLVM code. Differential Revision: https://reviews.llvm.org/D77072
-
Simon Pilgrim authored
This removes some includes/forward-declarations that don't seem to be necessary in the MCA core headers Based off a cppclean report Differential Revision: https://reviews.llvm.org/D77073
-
Dmitry Vyukov authored
This check fails on FreeBSD: https://github.com/golang/go/issues/14481#issuecomment-607471193 It is meant to prevent regressions, so disable it on FreeBSD.
-
LLVM GN Syncbot authored
-
LLVM GN Syncbot authored
-
Nico Weber authored
Having the sync script work for this file seems better than matching the order of headers in the cmake file. Also, not having to manually sort the list is nice, even if gn's automated sorting doesn't quite match the artisanal order in the cmake file.
-
Kang Zhang authored
-
David Green authored
This adds MVE vmull patterns, which are conceptually the same as mul(vmovl, vmovl), and so the tablegen patterns follow the same structure. For i8 and i16 this is simple enough, but in the i32 version the multiply (in 64bits) is illegal, meaning we need to catch the pattern earlier in a dag fold. Because bitcasts are involved in the zext versions and the patterns are a little different in little and big endian. I have only added little endian support in this patch. Differential Revision: https://reviews.llvm.org/D76740
-
David Green authored
The unpredictable/hasSideEffects flag is usually inferred by tablegen from whether the instruction has a tablegen pattern (and that pattern only has a single output instruction). Now that the MVE intrinsics are all committed and producing code, the remaining instructions still marked as unpredictable need to be specially handled. This adds the flag directly to instructions that need it, notably the V*MLAL instructions and some of the MOV's. Differential Revision: https://reviews.llvm.org/D76910
-
Pavel Labath authored
This patch was reverted because it introduced a failure in TestHelloWorld.py. The reason for that was running "ls" shell command failed as it was evaluated in an environment with an empty path. This has now been fixed with D77123, which ensures that all shell commands inherit the host environment, so this patch should be safe to recommit. The original commit message was: A defensive check in ProcessLauncherWindows meant that we would never attempt to launch a process with a completely empty environment -- the host environment would be used instead. Instead, I make the function add an extra null wchar_t at the end of an empty environment. The documentation on this is a bit fuzzy, but it seems to be what is needed to make windows accept these kinds of environments. Reviewers: amccarth, friss Differential Revision: https://reviews.llvm.org/D76835
-
Kang Zhang authored
Summary: In the patch: https://reviews.llvm.org/D42654 De-duplicate utils/update_{llc_,}test_checks.py, Some common part has been move to common.py. The SCRUB_LOOP_COMMENT_RE has been moved to common.py, but forgetting to remove from asm.py. This patch is to remove the redundant SCRUB_LOOP_COMMENT_RE in asm.py and use common.SCRUB_LOOP_COMMENT_RE.
-
Guillaume Chatelet authored
-
Clement Courbet authored
Summary: This allows doing `memcmp(p, q, 7)` with 2 loads instead of a call to memcmp. This fixes part of PR45147. Reviewers: spatel Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76133
-
Florian Hahn authored
As pointed out by @thakis, currently CallSiteSplitting bails out after checking the first PHI node. We should check all PHI nodes, until we find one where call site splitting is beneficial. This patch also slightly simplifies the code using BasicBlock::phis(). Reviewers: davidxl, junbuml, thakis Reviewed By: davidxl Differential Revision: https://reviews.llvm.org/D77089
-
Guillaume Chatelet authored
Summary: This is patch is part of a series to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this patch for the introduction of the type: https://reviews.llvm.org/D64790 Reviewers: courbet Subscribers: MatzeB, qcolombet, arsenm, sdardis, jvesely, nhaehnle, hiraditya, jrtc27, atanasyan, kerbowa, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77291
-
OCHyams authored
When compiling AMDGPUDisassembler.cpp in a stage 1 trunk build with CMAKE_BUILD_TYPE=RelWithDebInfo LLVM_USE_SANITIZER=Address LiveDebugVariables accounts for 21.5% wall clock time. This fix reduces that to 1.2% by switching out a linked list lookup with a map lookup. Note that the linked list is still used to group UserValues by vreg. The vreg lookups don't cause any problems in this pathological case. This is the same idea as D68816, which was reverted, except that it is a less intrusive fix. Reviewed By: vsk Differential Revision: https://reviews.llvm.org/D77226
-
Djordje Todorovic authored
Different file formats have different naming style for the debug sections. The method is implemented for ELF, COFF and Mach-O formats. Differential Revision: https://reviews.llvm.org/D76276
-
Kristof Beyls authored
-
Daniel Kiss authored
Summary: Reason: the option has an effect on preprocessing. Also see thread: http://lists.llvm.org/pipermail/cfe-dev/2020-March/065014.html Reviewers: chill, efriedma Reviewed By: efriedma Subscribers: efriedma, danielkiss, cfe-commits, kristof.beyls Tags: #clang Differential Revision: https://reviews.llvm.org/D77131
-
Julian Lettner authored
This work prepares us for the overall goal of clean shutdown on user keyboard interrupt [Ctrl+C].
-
WangTianQing authored
Summary: For more details about this instruction, please refer to the latest ISE document: https://software.intel.com/en-us/download/intel-architecture-instruction-set-extensions-programming-reference Reviewers: craig.topper, RKSimon, LuoYuanke Reviewed By: craig.topper Subscribers: mgorny, hiraditya, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D77193
-
Shengchen Kan authored
This reverts commit a157cde0.
-