- Jan 08, 2021
-
-
Jan Svoboda authored
This patch introduces additional infrastructure necessary to accommodate DiagnosticOptions. DiagnosticOptions are unique in that they are parsed by the same function in cc1 AND in the Clang driver. The call to the parsing function from the driver occurs early on in the compilation process, where no proper DiagnosticEngine exists, because the diagnostic options (passed through command line) are not known yet. To preserve the current behavior, we need to be able to selectively parse: * all options (for -cc1), * only diagnostic options (for driver). This patch achieves that in the following way: * new MacroPrefix field is added to the Option TableGen class, * new IsDiag TableGen mixin sets MacroPrefix to "DIAG_", * TableGen backend serializes option records into a macro with the prefix, * CompilerInvocation parse/generate methods define the [DIAG_]OPTION_WITH_MARSHALLING macros to handle diagnostic options separately. Depends on D93700, D93701 & D93702. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D84673
-
Sjoerd Meijer authored
This factors out code from MachineLICM that determines whether an instruction is loop-invariant, which is a generally useful function. Thus this allows to use that helper elsewhere too. Differential Revision: https://reviews.llvm.org/D94082
-
David Sherwood authored
Add functionality to permit lowering of the abs and neg intrinsics using the passthru variants. Differential Revision: https://reviews.llvm.org/D94160
-
Martin Storsjö authored
As the actual windows unwinder doesn't support this case, don't pretend that it is supported when dumping the generated unwind info either, even if it would be possible to interpret it as something sensible. This should reduce the risk of us emitting such a case in code (although it's unlikely as long as the unwind info is generated through the SEH opcodes, as the opcodes can't describe this case). Differential Revision: https://reviews.llvm.org/D91529
-
Wang, Pengfei authored
-
Arthur Eubanks authored
This currently blocks --print-before/after with a legacy PM pass, for example when we use the new PM for the optimization pipeline but the legacy PM for the codegen pipeline. Also in the future when the codegen pipeline works with the new PM there will be multiple places to specify passes, so even when everything is using the new PM, there will still be multiple places that can accept different pass names. Reviewed By: hoy, ychen Differential Revision: https://reviews.llvm.org/D94283
-
Raul Tambre authored
When `BUILD_WITH_INSTALL_RPATH` is enabled it prevents using a custom rpath only for the build tree as the install rpath will be used. This makes it impossible to run a runtimes build when compiling with Clang and wanting the installed rpath to be empty (i.e. `-DCMAKE_BUILD_RPATH="<some path>" -DCMAKE_SKIP_INSTALL_RPATH=ON`). Disable `BUILD_WITH_INSTALL_RPATH` when `CMAKE_BUILD_RPATH` is non-empty to allow for such build scenarios. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D93177
-
Christudasan Devadasan authored
-
Jonas Devlieghere authored
DoReadMemory is LLDB's internal implementation and shouldn't be called directly. Differential revision: https://reviews.llvm.org/D94284
-
Jonas Devlieghere authored
Replace uses of GetModuleAtIndexUnlocked and GetModulePointerAtIndexUnlocked with the ModuleIterable and ModuleIterableNoLocking where applicable. Differential revision: https://reviews.llvm.org/D94271
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
The last use of the function was removed on Oct 20, 2018 in commit 8d6ff4c0.
-
LLVM GN Syncbot authored
-
Artem Dergachev authored
Revert "Revert "Revert "Revert "[analyzer] NFC: Move path diagnostic consumer implementations to libAnalysis."""" This reverts commit b12f2673. Fix dead include that looked like another missed circular dependency.
-
David Blaikie authored
-
David Blaikie authored
Fix print-dot-ddg.ll so it doesn't try to write to the source tree (& uses the test temp paths instead)
-
David Blaikie authored
Seems consistent with the way other tests in this directory do linking
-
Alexandre Ganea authored
-
Mehdi Amini authored
The ODSOperand indexing should ignore the attributes. Differential Revision: https://reviews.llvm.org/D94281
-
Nico Weber authored
I noticed __availability was missing, so I manually diffed the file lists and put all recently(ish) added headers: * __availability from 2eadbc86 * concepts from 601f7631 * execution from 0a06eb91 * numbers from 4f6c4b47 Also remove libcxx_install_support_headers like the CMake build did in 6706342f, and unconditionally copy support/win32/{limits_msvc_win32.h,locale_win32.h} like the CMake build always did as far as I can tell.
-
LLVM GN Syncbot authored
-
David Blaikie authored
Revert "Revert "Revert "[analyzer] NFC: Move path diagnostic consumer implementations to libAnalysis.""" This reverts commit d2ddc694. This still contains a circular dependency between Analysis and CrossTU: $ grep -r include.*Analysis clang/include/clang/CrossTU clang/include/clang/CrossTU/CrossTranslationUnit.h: #include "clang/Analysis/CrossTUAnalysisHelper.h" $ grep -r include.*CrossTU clang/lib/Analysis clang/lib/Analysis/PlistHTMLPathDiagnosticConsumer.cpp: #include "clang/CrossTU/CrossTranslationUnit.h" clang/lib/Analysis/PlistPathDiagnosticConsumer.cpp: #include "clang/Analysis/CrossTUAnalysisHelper.h"
-
Ryan Prichard authored
On Android, when the builtins are linked into a binary, they are typically linked using -Wl,--exclude-libs so that the symbols aren't reexported. For the NDK, compiler-rt's default behavior (build the builtins archive with -fvisibility=hidden) is better so that builtins are hidden even without -Wl,--exclude-libs. Android needs the builtins with non-hidden symbols only for a special case: for backwards compatibility with old binaries, the libc.so and libm.so DSOs in the platform need to export some builtins for arm32 and 32-bit x86. See D56977. Control the behavior with a new flag, `COMPILER_RT_BUILTINS_HIDE_SYMBOLS`, that behaves similarly to the `*_HERMETIC_STATIC_LIBRARY` in libunwind/libcxx/libcxxabi, so that Android can build a special builtins variant for libc.so/libm.so. Unlike the hermetic flags for other projects, this new flag is enabled by default. Reviewed By: compnerd, MaskRay Differential Revision: https://reviews.llvm.org/D93431
-
clementval authored
While trying to compile clang and openmp with a freshly built clang with the gcc/7.4.0 toolchain on the Summit supercomputer I face some error because of the triple under which the GCC toolchain is installed was not present in for PPC64LE triples. This patch add the powerpc64le-none-linux-gnu used on system like Summit and Ascent. Reviewed By: jdenny Differential Revision: https://reviews.llvm.org/D94261
-
Ruiling Song authored
We have modules with metadata on declarations, and out-of-tree passes use that metadata, and we need to clone those modules. We really expect such metadata is kept during the clone operation. Reviewed by: arsenm, aprantl Differential Revision: https://reviews.llvm.org/D93451
-
Alexandre Ganea authored
-
Evandro Menezes authored
Define the `vfsqrt` IR intrinsics for the respective V instructions. Authored-by:
Roger Ferrer Ibanez <rofirrim@gmail.com> Co-Authored-by:
Evandro Menezes <evandro.menezes@sifive.com> Differential Revision: https://reviews.llvm.org/D93745
-
Roman Lebedev authored
No actual changes needed, invoke can't have the same block as an unwind destination and a normal destination.
-
Roman Lebedev authored
No actual changes needed, Catchswitch cannot unwind to one of its catchpads.
-
Roman Lebedev authored
No actual changes needed, normal and unwind destinations of an invoke can never be identical.
-
Roman Lebedev authored
No actual changes needed, DetatchDeadBlocks() was already doing the right thing.
-
Roman Lebedev authored
... which requires not deleting edges that were just deleted already, by not processing the same successor more than once. -
Roman Lebedev authored
... which requires not deleting edges that were just deleted already, by not processing the same predecessor more than once. -
Roman Lebedev authored
-
Roman Lebedev authored
... which requires not deleting edges that were just deleted already, by not processing the same predecessor more than once. -
Roman Lebedev authored
-
Roman Lebedev authored
... which requires not deleting edges that were just deleted already, by not processing the same predecessor more than once. -
Roman Lebedev authored
[SimplifyCFG] ConstantFoldTerminator(): switch to non-permissive DomTree updates in `indirectbr` handling ... which requires not deleting edges that were just deleted already.
-
Roman Lebedev authored
-