- Jun 05, 2020
-
-
Alexandre Ganea authored
Before this patch, llvm-pdbutil supported only --type-stats to dump stats about a PDB TPI stream. Adding --id-stats for completion.
-
Matt Arsenault authored
-
Adrian Prantl authored
instead of preferring the one chosen with xcode-select. <rdar://problem/64000666> Differential Revision: https://reviews.llvm.org/D81210
-
Adrian Prantl authored
These functions really don't belong into PlatformDarwin, since they actualy query state of the Host and not of the remote platform.
-
Matt Arsenault authored
Just computing the alignment makes sense without caring about the general known bits, such as for non-integral pointers. Separate the two and start calling into the TargetLowering hooks for frame indexes. Start calling the TargetLowering implementation for FrameIndexes, which improves the AMDGPU matching for stack addressing modes. Also introduce a new hook for returning known alignment of target instructions. For AMDGPU, it would be useful to report the known alignment implied by certain intrinsic calls. Also stop using MaybeAlign.
-
Matt Arsenault authored
Immediate legalize fields were added for G_SEXT_INREG. Simiarly, these are likely not legal except for certain offsets.
-
Dan Gohman authored
It broke clang-check. This reverts commit 931fcd3b.
-
Jay Foad authored
Related to https://reviews.llvm.org/D80916 Differential Revision: https://reviews.llvm.org/D81271
-
Fangrui Song authored
-
Nico Weber authored
-
Yaxun (Sam) Liu authored
-
Matt Arsenault authored
There were additional standalone patterns for these nodes which were missing the subtarget predicate.
-
Matt Arsenault authored
-
Craig Topper authored
Shifts are supposed to always shift in zeros or sign bits regardless of their inputs. It's possible the input value may have been replaced with undef by SimplifyDemandedBits, but the shift in zeros are still demanded. This issue was reported to me by ispc from 10.0. Unfortunately their failing test does not fail on trunk. Seems to be because the shl is optimized out earlier now and doesn't become VSHLI. ispc bug https://github.com/ispc/ispc/issues/1771 Differential Revision: https://reviews.llvm.org/D81212
-
Dan Gohman authored
This patch addresses the review comments on r352930: - Removes redundant diagnostic checking code - Removes errnoneous use of diag::err_alias_is_definition, which turned out to be ineffective anyway since functions can be defined later in the translation unit and avoid detection. - Adds a test for various invalid cases for import_name and import_module. Differential Revision: https://reviews.llvm.org/D59520
-
Evgenii Stepanov authored
Summary: Non-zero malloc fill is causing way too many hard to debug issues. Reviewers: kcc, pcc, hctim Subscribers: #sanitizers, llvm-commits Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D81284
-
Marco Elver authored
Summary: This makes -fsanitize=kernel-address emit the correct globals constructors for the kernel. We had to do the following: - Disable generation of constructors that rely on linker features such as dead-global elimination. - Only emit constructors for globals *not* in explicit sections. The kernel uses sections for special globals, which we should not touch. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203493 Tested: 1. With 'clang/test/CodeGen/asan-globals.cpp'. 2. With test_kasan.ko, we can see: BUG: KASAN: global-out-of-bounds in kasan_global_oob+0xb3/0xba [test_kasan] Reviewers: glider, andreyknvl Reviewed By: glider Subscribers: cfe-commits, nickdesaulniers, hiraditya, llvm-commits Tags: #llvm, #clang Differential Revision: https://reviews.llvm.org/D80805
-
Nikita Popov authored
This should dump to the provided Out, rather than dbgs(), though they coincide in current usage.
-
Nikita Popov authored
PendingInLocs ends up having the same value as InLocs, just computed a bit more indirectly. It is a leftover of a previous implementation approach. This patch drops PendingInLocs, as well as the Diff and Removed calulations, which are no longer needed. Differential Revision: https://reviews.llvm.org/D80868
-
Matt Arsenault authored
Different tools seem to be more or less strict with the markers between different functions.
-
Matt Arsenault authored
Match SelectionDAG's behavior of adding nofpexcept to out instructions that may raise fp exceptions that are selected from instructions that do not.
-
Alex Lorenz authored
The in-process CC1 currently doesn't interoperate with the macOS crash analytics, which we would like to keep enabled for Apple clang. This commit restores the out-of-process CC1 to the Apple clang CMake configuration for now. Differential Revision: https://reviews.llvm.org/D80849
-
Sameer Arora authored
Reorder `DumpSection` under `handleArgs` in file `MachOObjcopy.cpp`. The operation to dump a section is now performed before both add and remove section operations for MachO file format. Change for the ELF format at D81097. Together fixes https://bugs.llvm.org/show_bug.cgi?id=44283 Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D81123
-
Nicolas Vasilache authored
Two tests regularly show up on the long tail when testing MLIR. This revision reduces their size.
-
Sameer Arora authored
Reorder `DumpSection` under `handleArgs` in file `ELFObjcopy.cpp`. `DumpSection` is placed before `replaceAndRemoveSections` and is therefore now the first operation under `handleArgs`. Thus, it is now performed before both `add` and `remove` section operations. Change for the MachO format at D81123. Together fixes https://bugs.llvm.org/show_bug.cgi?id=44283. Reviewed By: alexshap, jhenderson, MaskRay Differential Revision: https://reviews.llvm.org/D81097
-
Louis Dionne authored
Otherwise, if %{flags} contain other files like static libraries, those files are treated as C++ source files instead of object files, and the compiler gets all confused.
-
David Green authored
Similar to VMOVN, a VQMOVN will only demand the top/bottom lanes of it's first input. However unlike VMOVN it will need access to the entire second argument, as that value is saturated not just moved in place. Differential Revision: https://reviews.llvm.org/D80515
-
Sameer Arora authored
It updates two error messages under `performOperation` in the file llvm-ar.cpp. Furthermore, it also updates tests that print out these error messages: `llvm/test/Object/ar-create.test` and `llvm/test/tools/llvm-ar/print.test`. Reviewed By: jhenderson, MaskRay Differential Revision: https://reviews.llvm.org/D80846
-
Sameer Arora authored
Add 2 more tests for the function performOperation under llvm-ar.cpp. It tests the scenario when the archive could not be opened for reasons other than `no_such_file_or_directory` In particular, it tests for the cases `permission_denied` and `is_a_directory` for the target archive. Reviewed By: alexshap, jhenderson, smeenai, MaskRay Differential Revision: https://reviews.llvm.org/D80838
-
Nicolas Vasilache authored
Summary: This revision adds a common folding pattern that starts appearing on vector_transfer ops. Differential Revision: https://reviews.llvm.org/D81281
-
LLVM GN Syncbot authored
-
Yaxun (Sam) Liu authored
-
Sander de Smalen authored
This reverts commit 9bcef270.
-
Louis Dionne authored
Since <unwind.h> is in the SDK, not in /usr/include, the XFAILs must be predicated on the compiler version (ideally even on the SDK version) instead of the target system version.
-
Nicolas Vasilache authored
-
Jacques Pienaar authored
This allows verifying op-indepent attributes (e.g., attributes that do not require the op to have been created) before constructing an operation. These include checking whether required attributes are defined or constraints on attributes (such as I32 attribute). This is not perfect (e.g., if one had a disjunctive constraint where one part relied on the op and the other doesn't, then this would not try and extract the op independent from the op dependent). The next step is to move these out to a trait that could be verified earlier than in the generated method. The first use case is for inferring the return type while constructing the op. At that point you don't have an Operation yet and that ends up in one having to duplicate the same checks, e.g., verify that attribute A is defined before querying A in shape function which requires that duplication. Instead this allows one to invoke a method to verify all the traits and, if this is checked first during verification, then all other traits could use attributes knowing they have been verified. It is a little bit funny to have these on the adaptor, but I see the adaptor as a place to collect information about the op before the op is constructed (e.g., avoiding stringly typed accessors, verifying what is possible to verify before the op is constructed) while being cheap to use even with constructed op (so layer of indirection between the op constructed/being constructed). And from that point of view it made sense to me. Differential Revision: https://reviews.llvm.org/D80842
-
Louis Dionne authored
On Apple platforms, linking against libSystem.dylib is sufficient, and some Apple platforms don't provide libm.dylib. On those platforms, adding -lm to CMAKE_REQUIRED_LIBRARIES causes all subsequent compile-flag checks to fail due to the missing library. Differential Revision: https://reviews.llvm.org/D81265
-
Yaxun (Sam) Liu authored
To support std::complex and some other standard C/C++ functions in HIP device code, they need to be forced to be __host__ __device__ functions by pragmas. This is done by some clang standard C++ wrapper headers which are shared between cuda-clang and hip-Clang. For these standard C++ wapper headers to work properly, specific include path order has to be enforced: clang C++ wrapper include path standard C++ include path clang include path Also, these C++ wrapper headers require device version of some standard C/C++ functions must be declared before including them. This needs to be done by including a default header which declares or defines these device functions. The default header is always included before any other headers are included by users. This patch adds the the default header and include path for HIP. Differential Revision: https://reviews.llvm.org/D81176
-
Simon Pilgrim authored
ScalarEvolutionNormalization.h - reduce ScalarEvolutionExpressions.h include to forward declaration. NFC.
-
Simon Pilgrim authored
Move implicit include dependencies down to source file.
-