- Mar 16, 2022
-
-
Sam McCall authored
This reverts commit 049f4e4e. The problem was a stray dependency in CLANG_TEST_DEPS which caused cmake to fail if clang-pseudo wasn't built. This is now removed.
-
Sam McCall authored
This reverts commit b97856c4. Breaks a bunch of bots: https://lab.llvm.org/buildbot/#/builders/193/builds/8513
-
Michael Jones authored
previously the support_standalone_cpp target contained all of the files in the __support/cpp folder. This change splits these out so that only what is needed is included. In addition, this change adds the new support files that previously didn't have targets. Reviewed By: lntue, gchatelet Differential Revision: https://reviews.llvm.org/D121314
-
Philip Reames authored
This initial patch adds code to preserve MemorySSA through a run of SLP vectorizer. The eventual plan is to use MemorySSA to accelerate SLP's memory dependence checking, but we're a ways from that. In particular, this patch is correct, but really slow. It's being landed so that we can work incrementally in tree, not because it's expected to be useful to anyone just yet. The broader effort is being tracked in https://github.com/llvm/llvm-project/issues/54256. Its worth noting expicitly that this may not work out, and if not, we will be reverting all of the MSSA support in SLP at some point in the next few weeks. Differential Revision: https://reviews.llvm.org/D117926
-
Sam McCall authored
This should make clearer that: - it's not part of clang proper - there's no expectation to update it along with clang (beyond green tests) - clang should not depend on it This is intended to be expose a library, so unlike other tools has a split between include/ and lib/. The main renames are: clang/lib/Tooling/Syntax/Pseudo/* => clang-tools-extra/pseudo/lib/* clang/include/clang/Tooling/Syntax/Pseudo/* => clang-tools-extra/pseudo/include/clang-pseudo/* clang/tools/clang/pseudo/* => clang-tools-extra/pseudo/tool/* clang/test/Syntax/* => clang-tools-extra/pseudo/test/* clang/unittests/Tooling/Syntax/Pseudo/* => clang-tools-extra/pseudo/unittests/* #include "clang/Tooling/Syntax/Pseudo/*" => #include "clang-pseudo/*" namespace clang::syntax::pseudo => namespace clang::pseudo check-clang => check-clang-pseudo clangToolingSyntaxPseudo => clangPseudo The clang-pseudo and ClangPseudoTests binaries are not renamed. See discussion around: https://discourse.llvm.org/t/rfc-a-c-pseudo-parser-for-tooling/59217/50 Differential Revision: https://reviews.llvm.org/D121233
-
Nico Weber authored
-
Bixia Zheng authored
PyTACO DSL doesn't support the use of index values as in A[i] = B[i]+ i. We extend the DSL to support such a use in MLIR-PyTACO. Remove an obsolete unit test. Add unit tests and PyTACO tests. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D121716
-
Sam Clegg authored
This is a new mode for handling unresolved symbols that allows all symbols to be imported in the same that they would be in the case of `-fpie` or `-shared`, but generting an otherwise fixed/non-relocatable binary. Code linked in this way should still be compiled with `-fPIC` so that data symbols can be resolved via imports. This essentially allows the building of static binaries that have dynamic imports. See: https://github.com/emscripten-core/emscripten/issues/12682 As with other uses of the experimental dynamic linking ABI, this behaviour will produce a warning unless run with `--experimental-pic`. Differential Revision: https://reviews.llvm.org/D91577
-
Valentin Clement authored
This is a fix for failing buildbot https://lab.llvm.org/buildbot/#/builders/172/builds/9652
-
River Riddle authored
FuncOp is being moved out of the builtin dialect, and defining a custom toy operation showcases various aspects of defining function-like operation (e.g. inlining, passes, etc.). Differential Revision: https://reviews.llvm.org/D121264
-
River Riddle authored
Defining our own function operation allows for the PDL interpreter to be more self contained, and also removes any dependency on FuncOp; which is moving out of the Builtin dialect. Differential Revision: https://reviews.llvm.org/D121253
-
Siva Chandra Reddy authored
-
Ian Bearman authored
During MLIR translation to LLVMIR if an inlineable call has an UnkownLoc we get this error message: ``` inlinable function call in a function with debug info must have a !dbg location call void @callee() ``` There is code that checks for this case and strips debug information to avoid this situation. I'm expanding this code to handle the case where an debug location points at a UnknownLoc. For example, a NamedLoc whose child location is an UnknownLoc. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D121633
-
Fangrui Song authored
-
Jonas Devlieghere authored
The log channel was changed from Types to Commands in a007a6d8: - Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_PROCESS | LIBLLDB_LOG_TYPES)); + Log *log = GetLog(LLDBLog::Process | LLDBLog::Commands);
-
Valentin Clement authored
-
Valentin Clement authored
Thsi patch add the infrastructure to lower the random related intrinsics: - `random_init` - `random_number` - `random_seed` This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld, schweitz Differential Revision: https://reviews.llvm.org/D121704 Co-authored-by:
V Donaldson <vdonaldson@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com>
-
Tavian Barnes authored
When regcomp() fails, the same regex_t* should be passed to regerror() for potentially better error messages. But doing that with msan would report a use-of-uninitialized-value. Fixes https://github.com/google/sanitizers/issues/1496 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D120591
-
Valentin Clement authored
This patch adds lowering for the following intrinsics: - `max` - `maxloc` - `maxval` - `minloc` - `minval` This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D121701 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com> Co-authored-by:
mleair <leairmark@gmail.com>
-
Matthias Braun authored
Optimize a pattern where a sequence of 8/16 or 32 bits is tested for zero: LLVM normalizes this towards and `AND` with mask which is usually good, but does not work well on X86 when the mask does not fit into a 64bit register. This DagToDAG peephole transforms sequences like: ``` movabsq $562941363486720, %rax # imm = 0x1FFFE00000000 testq %rax, %rdi ``` to ``` shrq $33, %rdi testw %di, %di ``` The result has a shorter encoding and saves a register if the tested value isn't used otherwise. Differential Revision: https://reviews.llvm.org/D121320
-
Matthias Braun authored
Differential Revision: https://reviews.llvm.org/D121319
-
Louis Dionne authored
This should make CI consistent on all the compilers we support. Most of this patch is working around various warnings emitted by GCC in our code base, which are now being shown when we compile the tests. After this patch, the whole test suite should be warning free on all compilers we support and test, except for a few warnings on GCC that we silence explicitly until we figure out the proper fix for them. Differential Revision: https://reviews.llvm.org/D120684
-
Valentin Clement authored
This patch adds lowering for the following character related intrinsics: - `len` - `len_trim` - `lge`, `lgt`, `lle` and `llt` This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D121703 Co-authored-by:
V Donaldson <vdonaldson@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Sam McCall authored
This replaces a bunch of duplicate logic to set up environment variables and a few substitutions. It does a little more than we were doing previously: - searching for clang and setting up substitutions for it - setting up some substitutions for target triples, which are potentially useful but not actually used clangd has been happily using this for its tests for a while. Differential Revision: https://reviews.llvm.org/D121422
-
Valentin Clement authored
This patch adds lowering for the `allocated` intrinsic. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: jeanPerier, PeteSteinfeld Differential Revision: https://reviews.llvm.org/D121702 Co-authored-by:
Jean Perier <jperier@nvidia.com>
-
Aleksandr Platonov authored
-
Sam McCall authored
A version of this logic appears in ~every lit.site.cfg.in (28 copies total). This patch just removes two, but I'll update the rest of llvm-project next. Differential Revision: https://reviews.llvm.org/D121427
-
Zequan Wu authored
`UdtRecordCompleter` shouldn't complete static members' types. static members' types are going to be completed when the types are called in `SymbolFile::CompleteType`. Reviewed By: labath Differential Revision: https://reviews.llvm.org/D121030
-
Valentin Clement authored
This patch adds the lowering infrastructure for the lowering of alternat returns. This patch is part of the upstreaming effort from fir-dev branch. Depends on D121698 Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D121699 Co-authored-by:
V Donaldson <vdonaldson@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Valentin Clement authored
This patch add the lowering for the entry statement. This patch is part of the upstreaming effort from fir-dev branch. Depends on D121697 Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D121698 Co-authored-by:
V Donaldson <vdonaldson@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Valentin Clement authored
This patch lowers more cases of pointer assignments and disassociations. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld, schweitz Differential Revision: https://reviews.llvm.org/D121697 Co-authored-by:
V Donaldson <vdonaldson@nvidia.com> Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
mleair <leairmark@gmail.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Keith Smiley authored
This fixes a bug that happens when using -fdebug-prefix-map to remap an absolute path to a relative path. Since the path was absolute before remapping, it is safe to assume that concatenating the remapped working directory would be wrong. This was originally submitted as https://reviews.llvm.org/D113718, but reverted because when testing with dwarf 5 enabled, the tests were too strict. Differential Revision: https://reviews.llvm.org/D121663
-
Björn Schäpers authored
Fixes https://github.com/llvm/llvm-project/issues/54367 Fixes https://github.com/llvm/llvm-project/issues/54368 Differential Revision: https://reviews.llvm.org/D121596
-
Louis Dionne authored
Back in 3a208c68, we implemented the range-based constructor for <span>. However, in doing so, we removed a previous non-standard constructor that we provided before shipping <ranges>. Unfortunately, that breaks code that was relying on a range-based constructor until we ship all of <ranges>. This patch reintroduces the old non-conforming constructors and tests that were removed in 3a208c68 and uses them whenever <ranges> is not provided (e.g. in LLVM 14). This is only a temporary workaround until we enable <ranges> by default in C++20, which should hopefully happen by LLVM 15. The goal is to cherry-pick this workaround back to the LLVM 14 release branch, since I suspect the constructor removal may otherwise cause breakage out there, like the breakage I saw internally. We could have avoided this situation by waiting for C++20 to be finalized before shipping std::span. For example, we could have guarded it with something like _LIBCPP_HAS_NO_INCOMPLETE_RANGES to prevent users from accidentally starting to depend on it before it is stable. We did not have these mechanisms when std::span was first implemented, though. Differential Revision: https://reviews.llvm.org/D121626
-
Vitaly Buka authored
If sanitizer cannot determine name of the module it will use "<unknown module>". Then it can be suppressed if needed. Reviewed By: kda Differential Revision: https://reviews.llvm.org/D121674
-
Louis Dionne authored
-
Roy Jacobson authored
function candidates See: https://github.com/llvm/llvm-project/issues/54379 I tried to see if I can reuse ResolveAddressOfOverloadedFunction for explicit function instantiation and so I managed to hit this ICE. Bug was the diagnostic required an argument (%0) and specific code path didn't pass an argument. Differential Revision: https://reviews.llvm.org/D121646
-
Sterling Augustine authored
Differential Revision: https://reviews.llvm.org/D121732
-
Jonas Devlieghere authored
Add synchronization to the IOHandler to prevent multiple threads from writing concurrently to the output or error stream. A scenario where this could happen is when a thread (the default event thread for example) is using the debugger's asynchronous stream. We would delegate this operation to the IOHandler which might be running on another thread. Until this patch there was nothing to synchronize the two at the IOHandler level. Differential revision: https://reviews.llvm.org/D121500
-
Maksim Panchenko authored
Reviewed By: yota9 Differential Revision: https://reviews.llvm.org/D121729
-