- Mar 07, 2020
-
-
Petr Hosek authored
This change has two components. The moves the generated file for a namespace to the directory named after the namespace in a file named 'index.<format>'. This greatly improves the browsing experience since the index page is shown by default for a directory. The second improves the markdown output by adding the links to the referenced pages for children objects and the link back to the source code. Patch By: Clayton Differential Revision: https://reviews.llvm.org/D72954
-
Raphael Isemann authored
Summary: Compiling ObjC++ with Clang modules is usually not working well and compiling the small debugserver with modules is not worth the trouble. Reviewers: JDevlieghere Reviewed By: JDevlieghere Subscribers: mgorny, JDevlieghere, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D74891
-
Raphael Isemann authored
Summary: This is currently hidden in the Host CMakeLists but we should also use this macro in other parts of LLDB where we have ObjC++ sources (see D74891) Reviewers: JDevlieghere Reviewed By: JDevlieghere Subscribers: mgorny, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D75164
-
Raphael Isemann authored
Summary: Provide a list of Unix signals for the tap completion for command "process signal". Reviewers: teemperor Subscribers: labath, jingham, JDevlieghere, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D75418
-
Akira Hatanaka authored
__builtin_os_log_format This is needed to keep all the objects, including temporaries returned by function calls, written to the buffer alive until os_log_pack_send is called. rdar://problem/60105410
-
Stephen Neuendorffer authored
Goal is also to document best naming practices from here: https://llvm.discourse.group/t/rfc-canonical-file-paths-to-dialects/621 Differential Revision: https://reviews.llvm.org/D75762
-
Raphael Isemann authored
Summary: This patch inlines all the single-line functions that we only use once in the test and replaces the assertTrue with an assertEquals to improve the error message when this test fails. Reviewers: JDevlieghere Reviewed By: JDevlieghere Subscribers: lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D75497
-
Stephen Neuendorffer authored
This line was inadvertantly left off, which results in missing dependencies and a potentially broken build
-
Andrew Monshizadeh authored
With the addition of the LLD time tracing it made sense to include coverage for LLVM's various passes. Doing so ensures that ThinLTO is also covered with a time trace. Before: {F11333974} After: {F11333928} Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D74516 -
Andrew Monshizadeh authored
Added a write method for TimeTrace that takes two strings representing file names. The first is any file name that may have been provided by the user via `time-trace-file` flag, and the second is a fallback that should be configured by the caller. This method makes it cleaner to write the trace output because there is no longer a need to check file names at the caller and simplifies future TimeTrace usages. Reviewed By: modocache Differential Revision: https://reviews.llvm.org/D74514
-
Thomas Lively authored
Summary: Although SIMD integer min/max operations can be expressed using the ?: operator in C++, that operator is disallowed for vectors in C. As a workaround, this change introduces new WebAssembly-specific builtin functions that lower to the desired vector icmp/select sequences. Reviewers: aheejin, dschuff, kripken Subscribers: sbc100, jgravelle-google, sunfish, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D75770
-
River Riddle authored
[mlir][SideEffects] Enable specifying side effects directly on the arguments/results of an operation. Summary: New classes are added to ODS to enable specifying additional information on the arguments and results of an operation. These classes, `Arg` and `Res` allow for adding a description and a set of 'decorators' along with the constraint. This enables specifying the side effects of an operation directly on the arguments and results themselves. Example: ``` def LoadOp : Std_Op<"load"> { let arguments = (ins Arg<AnyMemRef, "the MemRef to load from", [MemRead]>:$memref, Variadic<Index>:$indices); } ``` Differential Revision: https://reviews.llvm.org/D74440 -
River Riddle authored
This revision introduces the infrastructure for defining side-effects and attaching them to operations. This infrastructure allows for defining different types of side effects, that don't interact with each other, but use the same internal mechanisms. At the base of this is an interface that allows operations to specify the different effect instances that are exhibited by a specific operation instance. An effect instance is comprised of the following: * Effect: The specific effect being applied. For memory related effects this may be reading from memory, storing to memory, etc. * Value: A specific value, either operand/result/region argument, the effect pertains to. * Resource: This is a global entity that represents the domain within which the effect is being applied. MLIR serves many different abstractions, which cover many different domains. Simple effects are may have very different context, for example writing to an in-memory buffer vs a database. This revision defines uses this infrastructure to define a set of initial MemoryEffects. The are effects that generally correspond to memory of some kind; Allocate, Free, Read, Write. This set of memory effects will be used in follow revisions to generalize various parts of the compiler, and make others more powerful(e.g. DCE). This infrastructure was originally proposed here: https://groups.google.com/a/tensorflow.org/g/mlir/c/v2mNl4vFCUM Differential Revision: https://reviews.llvm.org/D74439
-
Fangrui Song authored
-
Shivam Gupta authored
Summary: Bjarne Stroustrup's C++ Page link pointing to wrong AT&T page. Reviewers: jyknight, sanjoy, silvas, hubert.reinterpretcast Reviewed By: hubert.reinterpretcast Subscribers: hubert.reinterpretcast, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D75709
-
Michael Spencer authored
arm_acle.h relied on `_MSC_VER` to determine if a given function was already defined as a builtin. This was incorrect because `-fms-extensions` enables these builtins, but is not responsible for defining `_MSC_VER` on any target. The next closest thing is `_MSC_EXTENSIONS`, which is only defined on Windows targets, but even this is suboptimal. What this conditional is actually trying to determine is if the given functions are defined as builtins, so just check that directly. I also attempted to do this for `__nop`, but in that case intrin.h, which is only includable if `_MSC_VER` is defined, has its own definition. So in that case `_MSC_VER` is correct. Differential Revision: https://reviews.llvm.org/D75719 rdar://60102353
-
Fangrui Song authored
-
Reid Kleckner authored
In 172eee9c, we tried to avoid these by modelling the callee as internally resetting the stack pointer. However, for the majority of functions with reserved stack frames, this would lead LLVM to emit extra SP adjustments to undo the callee's internal adjustment. This lead us to fix the problem further on down the pipeline in eliminateCallFramePseudoInstr. In 5b79e603, I added use a heuristic to try to detect when the adjustment would be unreachable. This heuristic is imperfect, and when exception handling is involved, it fails to fire. The new test is an example of this. Simply throwing an exception with an active cleanup emits dead SP adjustments after the throw. Not only are they dead, but if they were executed, they would be incorrect, so they are confusing. This change essentially reverts 172eee9c and makes the 5b79e603 heuristic responsible for preventing unreachable stack adjustments. This means we may emit unreachable stack adjustments for functions using EH with unreserved call frames, but that is not very many these days. Back in 2016 when this change was added, we were focused on 32-bit, which we observed to have fewer reserved frames. Fixes PR45064 Reviewed By: hans Differential Revision: https://reviews.llvm.org/D75712
-
Anna Thomas authored
As mentioned in the comments, extractelement is special since we actually want a scalar base for that element we extracted from the vector (i.e. not a vector base). This same logic should apply to uses of the extractelement such as phis and selects which have the same BDV as the extractelement. Howeber, for these uses we conservatively mark the BDV state as conflict, since setting the EE's new base BDV does not always dominate these uses. Added testcase showcases the problem where the BDV identification chokes on the incorrect cast from vector to scalar for the phi use of extractelement. Tests-Run: make check, internal fuzzer testing Reviewers: reames, skatkov, dantrushin Reviewed-By: dantrushin Differential Revision: https://reviews.llvm.org/D75704
-
Sterling Augustine authored
Summary: This further cleans up the control flow and makes it easier to optimize and replace portions in a subsequent patch. This should be NFC, but given the amount of #ifdeffing here, it may not be. So will watch the buildbots closely. Also, as this is purely moving existing code around, I plan to ignore the lint errors. Reviewers: compnerd, miyuki, mstorsjo Subscribers: libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D75705
-
Benjamin Barenblat authored
Reviewed By: jhenderson, MaskRay Differential Revision: https://reviews.llvm.org/D72360
-
Stephen Neuendorffer authored
Differential Revision: https://reviews.llvm.org/D75308
-
Valentin Churavy authored
Putting this up mainly for discussion on how this should be done. I am interested in MLIR from the Julia side and we currently have a strong preference to dynamically linking against the LLVM shared library, and would like to have a MLIR shared library. This patch adds a new cmake function add_mlir_library() which accumulates a list of targets to be compiled into libMLIR.so. Note that not all libraries make sense to be compiled into libMLIR.so. In particular, we want to avoid libraries which primarily exist to support certain tools (such as mlir-opt and mlir-cpu-runner). Note that the resulting libMLIR.so depends on LLVM, but does not contain any LLVM components. As a result, it is necessary to link with libLLVM.so to avoid linkage errors. So, libMLIR.so requires LLVM_BUILD_LLVM_DYLIB=on FYI, Currently it appears that LLVM_LINK_LLVM_DYLIB is broken because mlir-tblgen is linked against libLLVM.so and and independent LLVM components. Previous version of this patch broke depencies on TableGen targets. This appears to be because it compiled all libraries to OBJECT libraries (probably because cmake is generating different target names). Avoiding object libraries results in correct dependencies. (updated by Stephen Neuendorffer) Differential Revision: https://reviews.llvm.org/D73130
-
Stephen Neuendorffer authored
add_llvm_library and add_llvm_executable may need to create new targets with appropriate dependencies. As a result, it is not sufficient in some configurations (namely LLVM_BUILD_LLVM_DYLIB=on) to only call add_dependencies(). Instead, the explicit TableGen dependencies must be passed to add_llvm_library() or add_llvm_executable() using the DEPENDS keyword. Differential Revision: https://reviews.llvm.org/D74930
-
Richard Smith authored
deduction guides. Previously if an implicit deduction guide had a default argument with a cleanup, we'd leave the 'pending cleanup' flag set after declaring the implicit guide. But it turns out that there's no reason to even substitute into the default argument when declaring an implicit deduction guide: we only need to record that the default argument exists, not what it is, since we never actually form a call to a deduction guide.
-
Matt Arsenault authored
This reverts commit 737394c4. The fp-model test was failing on platforms that enable denormal flushing based on -ffast-math. This needs to reset to IEEE, not the default in these cases. Change-Id: Ibbad32f66d0d0b89b9c1173a3a96fb1a570ddd89
-
Adrian Prantl authored
-
Raphael Isemann authored
Summary: Otherwise this code won't run on the Release+Asserts builds we have on the CI. Fixes rdar://problem/59867885 (partly) Reviewers: aprantl Reviewed By: aprantl Subscribers: JDevlieghere, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D75493
-
Gongyu Deng authored
Summary: Fix a bug that tab completions won't synchronous the current execution context. ( Thanks for Jim's explanation! ) Reviewers: teemperor, labath, jingham Reviewed By: jingham Subscribers: jingham, labath Tags: #lldb Differential Revision: https://reviews.llvm.org/D75597
-
Roman Lebedev authored
Summary: This is potentially more friendly for further optimizations, analysies, e.g.: https://godbolt.org/z/G24anE This resolves phase-ordering bug that was introduced in D75145 for https://godbolt.org/z/2gBwF2 https://godbolt.org/z/XvgSua Reviewers: spatel, nikic, dmgreen, xbolva00 Reviewed By: nikic, xbolva00 Subscribers: hiraditya, zzheng, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D75757
-
Alexey Lapshin authored
llvm::call_once(initDwarfLine, [this]() { initializeDwarf(); }); Though it is not used in all places. I need that patch for implementing "Remove obsolete debug info" feature (D74169). But this caching mechanism is useful by itself, and I think it would be good to use it without connection to "Remove obsolete debug info" feature. So this patch changes inplace creation of DWARFContext with its cached version. Depends on D74308 Reviewed By: ruiu Differential Revision: https://reviews.llvm.org/D74773 -
Adrian Prantl authored
Starting with iOS 13 simulator binaries are identified with an explicit platform in the new LC_BUILD_VERSION load command. On older deployment targets using the LC_VERSION_MIN load commands, this patch detects when an ios process runs on a macOS host and updates the target triple with the "simulator" environment accordingly. (Patch re-applied with bugfix this time). This is part of https://bugs.swift.org/browse/SR-11971 rdar://problem/58438125 Differential Revision: https://reviews.llvm.org/D75696
-
Adrian Prantl authored
This reverts commit 59d816d8. It broke TestGDBRemoteClient.
-
Craig Topper authored
There was a noop bitconvert in the load pattern. While there also make all the sources refer to src_v.RC even though its the same as _.RC, but its consistent.
-
Stephen Neuendorffer authored
In cmake, it is redundant to have a target list under target_link_libraries() and add_dependency(). This patch removes the redundant dependency from add_dependency(). Differential Revision: https://reviews.llvm.org/D74929
-
Adrian Prantl authored
-
Adrian Prantl authored
Starting with iOS 13 simulator binaries are identified with an explicit platform in the new LC_BUILD_VERSION load command. On older deployment targets using the LC_VERSION_MIN load commands, this patch detects when an ios process runs on a macOS host and updates the target triple with the "simulator" environment accordingly. (Patch re-applied without modifications, the bot failure was unrelated). This is part of https://bugs.swift.org/browse/SR-11971 rdar://problem/58438125 Differential Revision: https://reviews.llvm.org/D75696
-
Adrian Prantl authored
This reverts commit 59d816d8. It broke TestGDBRemoteClient.
-
Adrian Prantl authored
Starting with iOS 13 simulator binaries are identified with an explicit platform in the new LC_BUILD_VERSION load command. On older deployment targets using the LC_VERSION_MIN load commands, this patch detects when an ios process runs on a macOS host and updates the target triple with the "simulator" environment accordingly. This is part of https://bugs.swift.org/browse/SR-11971 rdar://problem/58438125 Differential Revision: https://reviews.llvm.org/D75696
-
Saar Raz authored
[Concepts] Add null check for TemplateTypeParmType::getDecl() in GetContainedInventedTypeParmVisitor GetContainedInventedTypeParmVisitor would not account for the case where TemplateTypeParmType::getDecl() is nullptr, causing bug #45102. Add the nullptr check.
-