- Oct 22, 2021
-
-
Michał Górny authored
Use llvm::Optional<uint16_t> instead of int for port number in UriParser::Parse(), and use llvm::None to indicate missing port instead of a magic value of -1. Differential Revision: https://reviews.llvm.org/D112309
-
Pavel Labath authored
I missed windows and openbsd.
-
Roman Lebedev authored
This test is quite fragile WRT improvements to the interleaved load cost modelling. Let's bump the stride way up so that is no longer a concern.
-
Roman Lebedev authored
This reverts commit 8ae83a1b.
-
Simon Pilgrim authored
-
Roman Lebedev authored
The math here is: Cost of 1 load = cost of n loads / n Cost of live loads = num live loads * Cost of 1 load Cost of live loads = num live loads * (cost of n loads / n) Cost of live loads = cost of n loads * (num live loads / n) But, all the variables here are integers, and integer division rounds down, but this calculation clearly expects float semantics. Instead multiply upfront, and then perform round-up-division. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D112302
-
Roman Lebedev authored
-
Pavel Labath authored
-
Kristof Beyls authored
A new check was added in 3b93dc68, which seems to not be possible to get working correctly on windows systems: The test first "captures" the install directory of the clang toolchain running the test as follows: // CHECK-AARCH64-NO-HOST-INC: InstalledDir: [[INSTALLEDDIR:.+]] Then, in a check line a bit later, it uses this to check if a particular directory in the toolchain installation directory is included when targeting aarch64-none-elf: // CHECK-AARCH64-NO-HOST-INC-SAME: "-internal-isystem" "[[INSTALLEDDIR]]{{[/\\]+}}..{{[/\\]+}}lib{{[/\\]+}}clang-runtimes{{[/\\]+}}aarch64-none-elf{{[/\\]+}}include{{[/\\]+}}c++{{[/\\]+}}v1" Even though the test aims to take into account forward vs backward slash differences between Windows and Unix paths, it still fails on Windows. It seems that on Windows (this is based on the output log from a Windows bot), the INSTALLEDDIR variable has the following value: note: with "INSTALLEDDIR" equal to "c:\\\\b\\\\slave\\\\clang-x64-windows-msvc\\\\build\\\\stage1\\\\bin" However the actual "InstalledDir:" output produced by the clang toolchain on that Windows bot was: InstalledDir: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin It is unclear where the explosion of backslashes happens. Maybe this is a bug in FileCheck somewhere? Anyway, marking this test as not supported on Windows to make the bots green again.
-
Simon Pilgrim authored
parseFunctionName allowed a default null pointer, despite it being dereferenced immediately to be used as a reference and that all callers were taking the address of an existing reference. Fixes static analyzer warning about potential dereferenced nulls
-
Michał Górny authored
Optimize the iterator comparison logic to compare Current.data() pointers. Use std::tie for assignments from std::pair. Replace the custom class with a function returning iterator_range. Differential Revision: https://reviews.llvm.org/D110535
-
Florian Hahn authored
IRBuilder has been updated to support preserving metdata in a more general manner. This patch adds `LLVMAddMetadataToInst` and deprecates `LLVMSetInstDebugLocation` in favor of the more general function. Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D93454
-
Nicolas Vasilache authored
Differential Revision: https://reviews.llvm.org/D112301
-
Manas authored
Prior to this, the solver was only able to verify whether two symbols are equal/unequal, only when constants were involved. This patch allows the solver to work over ranges as well. Reviewed By: steakhal, martong Differential Revision: https://reviews.llvm.org/D106102 Patch by: @manas (Manas Gupta)
-
Fraser Cormack authored
This patch fixes a codegen bug, the test for which was introduced in D112223. When merging VSETVLIInfo across blocks, if the 'exit' VSETVLIInfo produced by a block is found to be compatible with the VSETVLIInfo computed as the intersection of the 'exit' VSETVLIInfo produced by the block's predecessors, that blocks' 'exit' info is discarded and the intersected value is taken in its place. However, we have one authority on what constitutes VSETVLIInfo compatibility and we are using it in two different contexts. Compatibility is used in one context to elide VSETVLIs between straight-line vector instructions. But compatibility when evaluated between two blocks' exit infos ignores any info produced *inside* each respective block before the exit points. As such it does not guarantee that a block will not produce a VSETVLI which is incompatible with the 'previous' block. As such, we must ensure that any merging of VSETVLIInfo is performed using some notion of "strict" compatibility. I've defined this as a full vtype match, but this is perhaps too pessimistic. Given that test coverage in this regard is lacking -- the only change is in the failing test -- I think this is a good starting point. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D112228
-
Kristof Beyls authored
-
Gabor Marton authored
Summary: `a % b != 0` implies that `a != 0` for any `a` and `b`. This patch extends the ConstraintAssignor to do just that. In fact, we could do something similar with division and in case of multiplications we could have some other inferences, but I'd like to keep these for future patches. Fixes https://bugs.llvm.org/show_bug.cgi?id=51940 Reviewers: noq, vsavchenko, steakhal, szelethus, asdenyspetrov Subscribers: Differential Revision: https://reviews.llvm.org/D110357
-
Gabor Marton authored
In this patch we store a reference to `RangedConstraintManager` in the `ConstraintAssignor`. This way it is possible to call back and reuse some functions of it. This patch is exclusively needed for its child patches, it is not intended to be a standalone patch. Differential Revision: https://reviews.llvm.org/D111640
-
Gabor Marton authored
In this patch we simply move the definition of RangeConstraintManager before the definition of ConstraintAssignor. This patch is exclusively needed for it's child patch, so in the child the diff would be clean and the review would be easier. Differential Revision: https://reviews.llvm.org/D110387
-
Pavel Labath authored
-
Raphael Isemann authored
aee49255 turns array names such as `int [1]` into `int[1]` (without the space). This probably breaks some user formatters, but let's first get this test running while this is being discussed.
-
Valentin Clement authored
This patch is extracted from D111337 to make is smaller. It introduce utility functions to the FIRBuilder and add the MutableBox files. - genShape - readCharLen - getExtents Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D112207 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Balázs Kéri authored
Fix for importing functions where the TypeSourceInfo is set and the exception specification information contains reference to the function declaration itself. Reviewed By: martong, steakhal Differential Revision: https://reviews.llvm.org/D112013
-
Kristof Beyls authored
Differential Revision: https://reviews.llvm.org/D111134
-
Chen Zheng authored
-
Chen Zheng authored
This is to improve compiling time. Differential Revision: https://reviews.llvm.org/D112196 Reviewed By: jsji
-
David Blaikie authored
-
Chuanqi Xu authored
When I playing with Coroutines, I found that it is possible to generate following IR: ``` %struct = alloca ... %sub.element = getelementptr %struct, i64 0, i64 index ; index is not %zero lifetime.marker.start(%sub.element) % use of %sub.element lifetime.marker.end(%sub.element) store %struct to xxx ; %struct is escaping! <suspend points> ``` Then the AllocaUseVisitor would collect the lifetime marker for sub.element and treat it as the lifetime markers of the alloca! So it judges that the alloca could be put on the stack instead of the frame by judging the lifetime markers only. The root cause for the bug is that AllocaUseVisitor collects wrong lifetime markers. This patch fixes this. Reviewed By: lxfind Differential Revision: https://reviews.llvm.org/D112216
-
LLVM GN Syncbot authored
-
Vitaly Buka authored
-
Vitaly Buka authored
Transformations may strip the attribute from the argument, e.g. for unused, which will result in shadow offsets mismatch between caller and callee. Stripping noundef for used arguments can be a problem, as TLS is not going to be set by caller. However this is not the goal of the patch and I am not aware if that's even possible. Differential Revision: https://reviews.llvm.org/D112197
-
Stanislav Mekhanoshin authored
In a kernel which does not have calls or AGPR usage we can allocate the whole vector register budget for VGPRs and have no AGPRs as long as VGPRs stay addressable (i.e. below 256). Differential Revision: https://reviews.llvm.org/D111764
-
Matthias Springer authored
This commit adds support for scf::IfOp to comprehensive bufferization. Support is currently limited to cases where both branches yield tensors that bufferize to the same buffer. To keep the analysis simple, scf::IfOp are treated as memory writes for analysis purposes, even if no op inside any branch is writing. (scf::ForOps are handled in the same way.) Differential Revision: https://reviews.llvm.org/D111929
-
Nico Weber authored
That way, the headers in llvm/utils/gn/secondary/compiler-rt/include are copied when running `ninja compiler-rt`. (Previously, they were only copied when running `check-hwasan` or when building the compiler-rt/include target.) (Since they should be copied only once, depend on the target in the host toolchain. I think default_toolchain should work just as well, it just needs to be a single fixed toolchain. check-hwasan depends through host_toolchain, so let's use that here too.) Prevents errors like testing/fuzzed_data_provider.h:8:10: fatal error: 'fuzzer/FuzzedDataProvider.h' file not found when building with locally-built clang. (For now, you still have to explicitly build the 'compiler-rt' target. Maybe we should make the clang target depend on that in the GN build?) Differential Revision: https://reviews.llvm.org/D112238 -
Luís Ferreira authored
This patch is a refactor to implement prepend afterwards. Since this changes a lot of files and to conform with guidelines, I will separate this from the implementation of prepend. Related to the discussion in https://reviews.llvm.org/D111414 , so please read it for more context. Reviewed By: #libc_abi, dblaikie, ldionne Differential Revision: https://reviews.llvm.org/D111947
-
Jonas Devlieghere authored
-
Jack Anderson authored
Some dwarf loaders in LLVM are hard-coded to only accept 4-byte and 8-byte address sizes. This patch generalizes acceptance into `DWARFContext::isAddressSizeSupported` and provides a common way to generate rejection errors. The MSP430 target has been given new tests to cover dwarf loading cases that previously failed due to 2-byte addresses. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D111953
-
Jonas Devlieghere authored
-
Tom Stellard authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D110377
-
Craig Topper authored
Zvamo is not part of the 1.0 V spec. Remove the intrinsics for now. This helps reduce clang binary size and lit test time. Reviewed By: HsiangKai Differential Revision: https://reviews.llvm.org/D111692
-