- Jan 17, 2020
-
-
Hans Wennborg authored
-
Raphael Isemann authored
This test had been overwritten by accident in ff75262f. This just readds the test with the correct content.
-
Kadir Cetinkaya authored
Revert "[clangd][test] Disable a particular testcase in FindExplicitReferencesTest when LLVM_ENABLE_EXPENSIVE_CHECKS" This reverts commit 42b3c389. Should've been fixed by d54d71b6
-
Alex Langford authored
Target doesn't use ClangASTContext, it just needs PersistentExpressionState. Replace ClangASTContext.h with ExpressionVariable.h
-
Jonas Devlieghere authored
... and include it from the main CMakeLists.txt instead of including the utility subdirectories directly. This is consistent with the other subdirectories and limits the scope of future changes.
-
Jonas Devlieghere authored
The build configuration wasn't properly substituted for the config.lldb_executable variable. This broke when the variable was extracted from config.dotest_args_str which was properly substituted.
-
Lang Hames authored
-
Lang Hames authored
-
Craig Topper authored
[Transforms][RISCV] Remove a "using namespace llvm" from an include file. Fix a place that became dependent on it. This include file was created in October and has a "using namespace llvm". This seems to get exposed to other include files and finally onto cpp files. While this somewhat okay for llvm itself, its bad for other projects that use llvm as a library and includes a header file that picks this up. This was found by ISPC which has some class names at gloal scope with the same names as LLVM. It looks like RISCV accidentally became dependent on this. I fixed it by reordering some includes in the RISCV code, but maybe we want to change the TableGenEmitter to put "namespace llvm {" in the generated file instead? But we probably want to do the simplest thing first so we can merge it to 10.0. Differential Revision: https://reviews.llvm.org/D72895 -
Jonas Devlieghere authored
-
Lang Hames authored
This patch updates the formatting and language of the Features section of the ORCv2 design document. It also fixes a TBD by adding discussion of the absoluteSymbols, symbolAliases, and reexports utilities. Typos found during editing were also fixed.
-
Jonas Devlieghere authored
LLVMConfig doesn't export LLVM_HOST_TRIPLE, but it sets the TARGET_TRIPLE based on this variable. So use that again for the compiler invocations in the shell tests.
-
Cyndy Ishida authored
Summary: * enabling and disabling a breakpoint were missing. Reviewers: JDevlieghere Reviewed By: JDevlieghere Subscribers: merge_guards_bot, jingham, dexonsmith, ributzka, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D72898
-
Richard Smith authored
-
Matt Arsenault authored
-
Marcello Maggioni authored
Summary: In the DFAPacketizer we copy the Transitions array into a map in order to later access the transitions based on a "Current State/Action" pair as a key. This map lives in the Automaton object used by the DFAPacketizer. It is never changed during the life of the object after having been created during the creation of the Automaton itself. This map creation can make the creation of a DFAPacketizer quite expensive if the target contains a considerable amount of transition states. Considering that TableGen already generates a sorted list of transitions by State/Action pairs we could just use that directly in our Automaton and search entries with std::lower_bound instead of copying it in a map and paying the execution time and memory cost. Reviewers: jmolloy, ThomasRaoux Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D72682
-
Lei Zhang authored
SPV_MM_Vulkan can be enabled by the SPV_KHR_vulkan_memory_model extension. Differential Revision: https://reviews.llvm.org/D72764
-
Lei Zhang authored
By default, for an enum attribute, we will generate a list of equality comparisons for all supported cases inside it's predicate. This list can be fairly large for certain SPIR-V enum attributes. Instead, we already have such a list generated by EnumsGen in the symbolize functions. Leverage that to simplify the generated C++ code. Differential Revision: https://reviews.llvm.org/D72763
-
Lei Zhang authored
Certain SPIR-V capabilities are only available in certain SPIR-V versions or extensions. Also a SPIR-V capability may implicitly declares other capabilities. This commit updates gen_spirv_dialect.py to support generating such information into SPIRVBase.td. It requires us to topologically sort all capabilities because now a capability can refer to another one. This commits also registers a few extensions because their symbols are used by capability availability. Note that this commit hasn't updated SPIRVConversionTarget to take into consideration such relationship yet. That will be done in a following-up commit. Differential Revision: https://reviews.llvm.org/D72760
-
Steven Wan authored
Remove unused link components for PowerPC target unittest according to post commit comments. This is a redo for a previous commit "fc4e43ad" that removed a few components that are necessary when libraries are to be built shared (i.e., BUILD_SHARED_LIBS=ON).
-
Richard Smith authored
-
Steven Wan authored
Add all previous link components back to unblock bots for the moment. In the meantime, I'm investigating the BUILD_SHARED_LIBS=ON build to find out the minimal list of components needed.
-
Volodymyr Sapsai authored
Partially reverts 0a2be46c as it turned out to cause redundant module rebuilds in multi-process incremental builds. When a module was getting out of date, all compilation processes started at the same time were marking it as `ToBuild`. So each process was building the same module instead of checking if it was built by someone else and using that result. In addition to the work duplication, contention on the same .pcm file wasn't making builds faster. Note that for a single-process build this change would cause redundant module reads and validations. But reading a module is faster than building it and multi-process builds are more common than single-process. So I'm willing to make such a trade-off. rdar://problem/54395127 Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D72860
-
Adrian Prantl authored
and document the shortcomings of LLDB's partially defined DW_OP_piece handling. This would manifest as "DW_OP_piece for offset foo but top of stack is of size bar". rdar://problem/46262998 Differential Revision: https://reviews.llvm.org/D72880
-
Adrian Prantl authored
By switching to Scalars that are backed by explicitly-sized APInts we can avoid a bug that increases the buffer reserved for a small piece to the next-largest host integer type. This manifests as "DW_OP_piece for offset foo but top of stack is of size bar". Differential Revision: https://reviews.llvm.org/D72879
-
Jonas Devlieghere authored
This improves consistency among the related methods.
-
Max Sherman authored
This adds an additional cli flag for the llvm-xray extract tool. This is useful if you're more interested in consuming the mangled symbol name, instead of the default now which is demangled. Differential Revision: https://reviews.llvm.org/D72804
-
Davide Italiano authored
Summary: Instead of just dropping them. <rdar://problem/58657146> Reviewers: aprantl, vsk, ab, paquette, echristo Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D72877
-
Steven Wan authored
Add the link components back to unblock bots for the moment. In the meantime, I'm investigating the BUILD_SHARED_LIBS=ON build to find out the minimal list of components needed.
-
Eric Christopher authored
ODR violation and a clang-tidy warning about an unused function in a number of translation units.
-
Nico Weber authored
Previously, the gn build would create VCSRevision.h / VCSVersion.h files with some LLD_REVISION / LLVM_REVISION / CLANG_REVISION but by default wouldn't add a dependency on .git/logs/HEAD so that the step doesn't rerun after every branch switch or every pull. That's bad for deterministic builds, and having --version print some arbitrarily old revision isn't great either. Instead, move to the model that the cmake build (now) uses fairly consistently: If llvm_append_vc_rev is set, include the revision, else don't. Since the GN build is focused on developers, set llvm_append_vc_rev to false instead of true by default (different from the cmake build), so that things don't rebuild after every branch switch and every pull. While here, also remove some pre-monorepo code. Differential Revision: https://reviews.llvm.org/D72859
-
Nico Weber authored
When LLVM_APPEND_VC_REV=OFF is set, the current git hash is no longer embedded into binaries (mostly for --version output). Without it, most binaries need to relink after every single commit, even if they didn't change otherwise (due to, say, a documentation-only commit). LLVM_APPEND_VC_REV is ON by default, so this doesn't change the default behavior of anything. With this, all clients of GenerateVersionFromVCS.cmake honor LLVM_APPEND_VC_REV. Differential Revision: https://reviews.llvm.org/D72855
-
Geoffrey Martin-Noble authored
Differential Revision: https://reviews.llvm.org/D72821
-
David Blaikie authored
PointerLikeTypeTraits: Standardize NumLowBitsAvailable on static constexpr rather than anonymous enum This is (more?) usable by GDB pretty printers and seems nicer to write. There's one tricky caveat that in C++14 (LLVM's codebase today) the static constexpr member declaration is not a definition - so odr use of this constant requires an out of line definition, which won't be provided (that'd make all these trait classes more annoyidng/expensive to maintain). But the use of this constant in the library implementation is/should always be in a non-odr context - only two unit tests needed to be touched to cope with this/avoid odr using these constants. Based on/expanded from D72590 by Christian Sigg.
-
Eric Christopher authored
accordingly.
-
Jessica Paquette authored
Given the following situation: x = G_FCONSTANT (something that can't be materialized) G_STORE x, some_addr We know that x must be materialized as at least a single mov. However, at the time of selection, the G_STORE will have been regbankselected to a FPR store. So, as a result, you'll get an unnecessary fmov into the G_STORE. Storing a constant value in a GPR and a constant value in a FPR are the same. So, whenever you see a G_FCONSTANT that feeds into only G_STORES, so might as well make it a G_CONSTANT. This adds a target-specific combine which changes G_FCONSTANTs feeding into G_STOREs into G_CONSTANTs. Differential Revision: https://reviews.llvm.org/D72814
-
Alexey Bataev authored
Need to disable emission of RTTI descriptors for NVPTX devices to be able to use dynamic classes without unresolved symbols at link stage.
-
Matt Arsenault authored
-
Jan Korous authored
[clangd][test] Disable a particular testcase in FindExplicitReferencesTest when LLVM_ENABLE_EXPENSIVE_CHECKS The test is failing on our CI bots. Seems like the order of results for one target is undefined. (post-commit review) Differential Revision: https://reviews.llvm.org/D72883
-