- Mar 12, 2022
-
-
Richard authored
-
Fangrui Song authored
The opt-out from rL236267 (2015) is untested and seems no longer needed (or not needed when rL236267 was committed): there is nothing special with uncompressed alignment. This brings us in line with GCC which compresses .debug_frame . Checked that -g -fno-asynchronous-unwind-tables + objcopy --decompress-debug-sections output is identical to -g -fno-asynchronous-unwind-tables -gz + objcopy --decompress-debug-sections output.
-
Dave Lee authored
`ReadMemoryFromFileCache` can be called at a high rate, and has fast execution. Signposts for high rate & brief duration can have a negative impact on tracing; emitting a high volume signposts can lead to blocking, affecting performance, and total volume makes human review of the trace harder because of the noise. Differential Revision: https://reviews.llvm.org/D121226
-
Dave Lee authored
-
Jonas Devlieghere authored
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D121411
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D121234
-
Jonas Devlieghere authored
-
Ivan Butygin authored
* It doesn't required by OpenCL/Intel Level Zero and can be set programmatically. * Add GPU to spirv lowering in case when attribute is not present. * Set higher benefit to WorkGroupSizeConversion pattern so it will always try to lower first from the attribute. Differential Revision: https://reviews.llvm.org/D120399
-
Fangrui Song authored
Early adoption of new technologies or adjusting certain code generation/IR optimization thresholds is often available through some cl::opt options (which have unstable surfaces). Specifying such an option twice will lead to an error. ``` % clang -c a.c -mllvm -disable-binop-extract-shuffle -mllvm -disable-binop-extract-shuffle clang (LLVM option parsing): for the --disable-binop-extract-shuffle option: may only occur zero or one times! % clang -c a.c -mllvm -hwasan-instrument-reads=0 -mllvm -hwasan-instrument-reads=0 clang (LLVM option parsing): for the --hwasan-instrument-reads option: may only occur zero or one times! % clang -c a.c -mllvm --scalar-evolution-max-arith-depth=32 -mllvm --scalar-evolution-max-arith-depth=16 clang (LLVM option parsing): for the --scalar-evolution-max-arith-depth option: may only occur zero or one times! ``` The option is specified twice, because there is sometimes a global setting and a specific file or project may need to override (or duplicately specify) the value. The error is contrary to the common practice of getopt/getopt_long command line utilities that let the last option win and the `getLastArg` behavior used by Clang driver options. I have seen such errors for several times. I think the error just makes users inconvenient, while providing very little value on discouraging production usage of unstable surfaces (this goal is itself controversial, because developers might not want to commit to a stable surface too early, or there is just some subtle codegen toggle which is infeasible to have a driver option). Therefore, I suggest we drop the diagnostic, at least before the diagnostic gets sufficiently better support for the overridding needs. Removing the error is a degraded error checking experience. I think this error checking behavior, if desirable, should be enabled explicitly by tools. Users preferring the behavior can figure out a way to do so. Reviewed By: jhenderson, rnk Differential Revision: https://reviews.llvm.org/D120455
-
Jonas Devlieghere authored
This patch adds a getter for the process' system architecture. I went with Process::GetSystemArchitecture to match Platform::GetSystemArchitecture. Differential revision: https://reviews.llvm.org/D121443
-
Jez Ng authored
... since BumpPtrAllocator isn't thread-safe. Reviewed By: #lld-macho, Roger Differential Revision: https://reviews.llvm.org/D121458
-
Ivan Butygin authored
* reinterpret_cast(reinterpret_cast(x)) -> reinterpret_cast(x) * reinterpret_cast(cast(x)) -> reinterpret_cast(x) * reinterpret_cast(subview(x)) -> reinterpret_cast(x) if subview offsets are 0 Differential Revision: https://reviews.llvm.org/D120242
-
Benjamin Kramer authored
-
Florian Hahn authored
The recipe only uses the first lane of its operands. Suggested & split off D120827.
-
Craig Topper authored
We already do this for RISCVISD::VFMV_S_F_VL and the vfmv.v.f intrinsic. Reviewed By: kito-cheng Differential Revision: https://reviews.llvm.org/D121429
-
Jean Perier authored
Following post-review feedback on https://reviews.llvm.org/D120804 and https://reviews.llvm.org/D120801 about type descriptor changes, fix typos in comments and rename IsKindParameterizedDerivedType to IsDerivedTypeWithKindParameter. Remove a useless `;`. Reviewed By: clementval, PeteSteinfeld Differential Revision: https://reviews.llvm.org/D121470
-
Greg Clayton authored
64 bit mach-o files have sections that only have 32 bit file offsets. If dsymutil tries to produce an invalid mach-o file, then error out with a good error string. Differential Revision: https://reviews.llvm.org/D121398
-
Valentin Clement authored
This patch adds couple of tests for allocatable globals and missing lowering for them This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D121473 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Valentin Clement authored
This patch adds tests and missing lowering code to lower elemental function/subroutine calls in array expression This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D121474 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Akira Hatanaka authored
more files Differential Revision: https://reviews.llvm.org/D121135
-
Jonas Devlieghere authored
Don't overwrite the host architecture (obtained from qHostInfo) with the process info (obtained from qProcessInfo). Differential revision: https://reviews.llvm.org/D121442
-
Kirill Stoimenov authored
This is a part of optimized callback reverts. This is needed to export the callbacks from the rt-asan libraries. Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D121464
-
Simon Pilgrim authored
This inverts the flags result compared to the original PR38960 comieqss test case
-
Nikita Popov authored
We should not be using APIs here that try to fetch the attribute from both the call attributes and the function attributes. Otherwise we'll try to upgrade a non-existent sret attribute on the call using the attribute on the function.
-
Nikita Popov authored
While we don't need to check the element type in this case, we do need to make sure that the pointers have the same address space, otherwise RAUW will assert.
-
Andrzej Warzynski authored
https://reviews.llvm.org/D120568 broke builds that set both `LLVM_BUILD_LLVM_DYLIB` and `LLVM_LINK_LLVM_DYLIB`. This patch fixes that. The build failure was caused by the fact that some LLVM libraries (which are also LLVM components) were listed directly as link-time dependencies instead of using `LINK_COMPONENTS` in CMake files. This lead to a linker invocation like this (simplified version to demonstrate the problem): ``` ld lib/libLLVM.so lib/libLLVMAnalysis.a lib/libLLVMTarget.a ``` That's problematic and unnecessary because `libLLVM.so` incorporates `libLLVMAnalysis` and `libLLVMTarget`. A correct invocation would look like this (`LLVM_LINK_LLVM_DYLIB` _is not_ set): ``` ld lib/libLLVMAnalysis.a lib/libLLVMTarget.a ``` or this (`LLVM_LINK_LLVM_DYLIB` _is_ set): ``` ld lib/libLLVM.so ``` Differential Revision: https://reviews.llvm.org/D121461
-
Johannes Doerfert authored
In an attempt to remove the memory leak we introduced a double free. The problem was that we allowed a plain copy of the state and it was actually used. The use was useless, so it is gone now. The copy constructor is gone as well. The move constructor ensures the Accesses pointers are owned by a single state, I hope. Reported by: https://lab.llvm.org/buildbot/#/builders/16/builds/25820
-
Bixia Zheng authored
Add operations -, abs, ceil and floor to the index notation. Add test cases. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D121388
-
David Truby authored
This fixes failing tests where aarch64 isn't available.
-
- Mar 11, 2022
-
-
Johannes Doerfert authored
The leak was introduced when we made things deterministic. It was reported by the sanitizer buildbot: https://lab.llvm.org/buildbot/#/builders/168
-
Nikita Popov authored
Bitcode currently cannot encode these. Throw a more obvious error in this case, rather than failing an operand count assertion.
-
David Truby authored
This patch implements support for the +, -, *, / and % operators on sizeless SVE types. Support for these operators on svbool_t is excluded. Differential Revision: https://reviews.llvm.org/D120323
-
Nikita Popov authored
The constexpr source element type was enumerated if the GEP was used as part of an instruction. However, things like global initializers go through a different code path, and we need to enumerate the type there as well.
-
Balazs Benics authored
-
Nikita Popov authored
Since D101045, allocas are no longer required to be part of the default alloca address space. There may be allocas in multiple different address spaces. However, the bitcode reader would simply assume the default alloca address space, resulting in either an error or incorrect IR. Add an optional record for allocas which encodes the address space.
-
serge-sans-paille authored
-
serge-sans-paille authored
-
Benjamin Kramer authored
-
Louis Dionne authored
We don't need preprocessor logic to exclude those declarations when compiling for the Windows App Store, because that is handled by using_if_exists now. Differential Revision: https://reviews.llvm.org/D108632
-