- May 14, 2021
-
-
David Spickett authored
Since 5de2d189 this particular warning hasn't had the location of the source file containing the inline assembly. Fix this by reporting via LLVMContext. Which means that we no longer have the "instantiated into assembly here" lines but they were going to point to the start of the inline asm string anyway. This message is already tested via IR in llvm. However we won't have the required location info there so I've added a C file test in clang to cover it. (though strictly, this is testing llvm code) Reviewed By: ychen Differential Revision: https://reviews.llvm.org/D102244
-
Alexey Bader authored
Fix was implemented in the ittap repo to solve an error about cross-compiling ITTAPI in LLVM with mingw. The problem occurred in the cross-compilation environment for Julia's dependencies. The corresponding issue item in ittapi repo: https://github.com/intel/ittapi/issues/19 A new tag was created in ittapi repo for that fix. This patch contains changes to update the ittapi tag in LLVM. Reviewed By: bader Differential Revision: https://reviews.llvm.org/D102471
-
dfukalov authored
Use offsets stored in `AliasResult` implemented in D98718. Updated with fix of issue reported in https://reviews.llvm.org/D95543#2745161 Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D95543
-
David Green authored
This moves the isOverwrite function into the DSEState so that it can share the analyses and members from the state. A few extra loop tests were also added to test stores in and around multi block loops for D100464.
-
Lang Hames authored
This aims to fix the failure at https://lab.llvm.org/buildbot/#/builders/61/builds/9590.
-
LLVM GN Syncbot authored
-
Lang Hames authored
This is separate from (but builds on) the support added in ec6b71df for emitting LinkGraphs in the context of an active materialization. This commit makes LinkGraphs a first-class data structure with features equivalent to object files within ObjectLinkingLayer.
-
Lang Hames authored
-
Fangrui Song authored
Intended to be NFC. D102046 relies on the refactoring for stack boundaries.
-
Carl Ritson authored
To ensure correct behaviour NSA instructions should not be claused. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D102211
-
Reid Kleckner authored
Clang's coverage data for auto-generated switch cases is really, really large. Before this change, when I enable code coverage, SemaDeclAttr.obj is 4.0GB. Naturally, this fails to link. Replacing the RISCV builtin id check with a comparison reduces object file size from 4.0GB to 330MB. Replacing the AArch64 SVE range check reduces the size again down to 17MB, which is reasonable. I think the RISCV switch is larger in coverage data because it uses more levels of macro expansion, while the SVE intrinsics only use one. In any case, please try to avoid switches with 1000+ cases, they usually don't optimize well.
-
Reid Kleckner authored
LLD already produces a nice error message when sections exceed 4GB, and this setRVA assertion causes LLD to crash instead of diagnosing the error properly. No test because we don't want slow tests that create 4GB files.
-
Matthias Springer authored
Group functions/structs in namespaces for better code readability. Depends On D102123 Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D102124
-
Rahul Joshi authored
Differential Revision: https://reviews.llvm.org/D102458
-
Lang Hames authored
-
Lang Hames authored
-
Lang Hames authored
This code was used to test ORCv1, which has been removed. It is not useful for testing ORCv2.
-
Matthias Springer authored
Make "target rank" a pass option of VectorToSCF. Depends On D102101 Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D102123
-
Chen Zheng authored
Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D102207
-
Peter Collingbourne authored
With zero-sized allocations we don't actually end up storing the address tag to the memory tag space, so store it in the first byte of the chunk instead so that we can find it later in getInlineErrorInfo(). Differential Revision: https://reviews.llvm.org/D102442
-
Peter Collingbourne authored
It's more likely that we have a UAF than an OOB in blocks that are more than 1 block away from the fault address, so the UAF should appear first in the error report. Differential Revision: https://reviews.llvm.org/D102379
-
Arthur Eubanks authored
https://lab.llvm.org/buildbot/#/builders/119/builds/3775/steps/8/logs/FAIL__LLVM__new-pm-lto-defaults_ll Followup to D102345.
-
H.J. Lu authored
On x32 size_t == unsigned int, not unsigned long int: ../../../../../src-master/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cpp: In function ??void __sanitizer::InitTlsSize()??: ../../../../../src-master/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cpp:209:55: error: invalid conversion from ??__sanitizer::uptr*?? {aka ??long unsigned int*??} to ??size_t*?? {aka ??unsigned int*??} [-fpermissive] 209 | ((void (*)(size_t *, size_t *))get_tls_static_info)(&g_tls_size, &tls_align); | ^~~~~~~~~~~ | | | __sanitizer::uptr* {aka long unsigned int*} by using size_t on g_tls_size. This is to fix: https://bugs.llvm.org/show_bug.cgi?id=50332 Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D102446 -
Chen Zheng authored
Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D101024
-
Amara Emerson authored
The legalization rule for scalar-same-as doesn't handle vectors. Until we implement custom legalization for this, at least fall back properly.
-
Valentin Clement authored
Add missing anonymous namespace around LegalizeDataOpForLLVMTranslation class . Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D102380
-
Reid Kleckner authored
Avoids a warning from the linker. The user still has to put the resource directory on the linker search path, and I can't find a clean way to do that automatically in gn.
-
Matt Arsenault authored
-
Matt Arsenault authored
Or at least the sibling call cases which the DAG already handles.
-
Nicolas Vasilache authored
Differential revision: https://reviews.llvm.org/D102395
-
Nicolas Vasilache authored
This is the first step towards upstreaming comprehensive bufferization following the discourse post: https://llvm.discourse.group/t/rfc-linalg-on-tensors-update-and-comprehensive-bufferization-rfc/3373/6. This first commit introduces a basic pass for bufferizing within function boundaries, assuming that the inplaceable function boundaries have been marked as such. Differential revision: https://reviews.llvm.org/D101693
-
Weston Carvalho authored
Differential Revision: https://reviews.llvm.org/D102185
-
Arthur Eubanks authored
The opaque pointer type is essentially just a normal pointer type with a null pointee type. This also adds support for the opaque pointer type to the bitcode reader/writer, as well as to textual IR. To avoid confusion with existing pointer types, we disallow creating a pointer to an opaque pointer. Opaque pointer types should not be widely used at this point since many parts of LLVM still do not support them. The next steps are to add some very simple use cases of opaque pointers to make sure they work, then start pretending that all pointers are opaque pointers and see what breaks. https://lists.llvm.org/pipermail/llvm-dev/2021-May/150359.html Reviewed By: dblaikie, dexonsmith, pcc Differential Revision: https://reviews.llvm.org/D101704
-
Michael Kruse authored
The Pascal architecture supports the page migration engine required for unified_shared_memory, as indicated by NVIDIA: * https://developer.nvidia.com/blog/unified-memory-cuda-beginners/ * https://developer.nvidia.com/blog/beyond-gpu-memory-limits-unified-memory-pascal/ * https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#um-requirements The limitation was introduced in D54493 which justified the cut-off by the requirement for unified addressing. However, Unified Virtual Addressing (UVA) is already available with sm20 (Fermi, Kepler, Maxwell): * https://docs.nvidia.com/cuda/gpudirect-rdma/index.html#basics-of-uva-cuda-memory-management Unified shared memory might even be possible with these, but with migration of entire allocations on kernel startup. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D101595
-
cynecx authored
Fixes buildbot failure (https://lab.llvm.org/buildbot/#/builders/16/builds/10825). Reviewed By: Amanieu Differential Revision: https://reviews.llvm.org/D102433
-
Arthur Eubanks authored
Reviewed By: dblaikie, dexonsmith Differential Revision: https://reviews.llvm.org/D102292
-
Lang Hames authored
This test is failing on some builders (see [1]) with the following error: error: Added modules have incompatible data layouts: e-m:e-i64:64-n32:64-S128-v256:256:256-v512:512:512 (module) vs E-m:a-i64:64-n32:64-S128-v256:256:256-v512:512:512 (jit) The JIT layout is correct, but some IR module added to the JIT is using a little-endian layout instead. This commit disables the test on ppc64 until we can investigate further and fix the bug. [1] https://lab.llvm.org/staging/#/builders/126/builds/371
-
Nikita Popov authored
These conditions together exactly match isIdentifiedFunctionLocal(), and this is also what we logically want to check for here.
-
Nikita Popov authored
This condition is equivalent to isIdentifiedFunctionLocal(), and this is also what we semantically want to check here.
-
Roman Lebedev authored
As reported in post-commit feedback, this has issues with e.g. <16 x i1>: https://llvm.godbolt.org/z/jxPvdGEW4 This reverts commit c02476f3.
-