- Nov 21, 2021
-
-
Arthur O'Dwyer authored
At this point, every supported compiler that claims a -std=c++17 mode should also support these features. Differential Revision: https://reviews.llvm.org/D113436
-
- Nov 20, 2021
-
-
Arnab Dutta authored
[MLIR] Simplify Semi-affine expressions by rule based matching and replacing "expr - q * (expr floordiv q)" with "expr mod q" expression. Add rule based matching for detecting and transforming "expr - q * (expr floordiv q)" to "expr mod q", where q is a symbolic exxpression, in simplifyAdd function. Reviewed By: bondhugula, dcaballe Differential Revision: https://reviews.llvm.org/D112985
-
Joseph Huber authored
A function with no definition was left in the old runtime, causing linker errors when trying to compile. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D114264
-
Dimitry Andric authored
Using the out-of-line LSE atomics helpers for AArch64 on FreeBSD also requires adding support for initializing __aarch64_have_lse_atomics correctly. On Linux this is done with getauxval(3), on FreeBSD with elf_aux_info(3), which has a slightly different interface. Differential Revision: https://reviews.llvm.org/D109330
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Arnab Dutta authored
Initially before appending the newly composed dimension and symbols to the dimension and symbol list whose size is to be passed in AffineMap::get(), the call to the AffineMap::get() was made, resulting in wrong dimCount and symbolCount being passed as argument. We move the call to the AffineMap::get() after the diimension and symbol list are updated. Differential Revision: https://reviews.llvm.org/D114237
-
Craig Topper authored
We have transform that tries turn a pmovmskb into movmskps/pd or movmskps to movmskpd. This transform isn't valid if the truncate discarded bits that might be set by the original movmsk. We could fix this by inserting an AND after the new movmsk to discard the equivalent of the truncated bits, but I've left that for later patch. Fixes PR52567. Differential Revision: https://reviews.llvm.org/D114306
-
Craig Topper authored
-
Lang Hames authored
This type does not need to be public
-
Kazu Hirata authored
-
RamNalamothu authored
The compiler was generating symbols in the final code object for local branch target labels. This bloats the code object, slows down the loader, and is only used to simplify disassembly. Use '--symbolize-operands' with llvm-objdump to improve readability of the branch target operands in disassembly. Fixes: SWDEV-312223 Reviewed By: scott.linder Differential Revision: https://reviews.llvm.org/D114273
-
Lang Hames authored
This will enable better error messages and debug logs in JITLink.
-
ksyx authored
The if-check above deleted part guarantees that StoreOffset <= LoadOffset and that StoreOffset + StoreSize >= LoadOffset + LoadSize, and given that LoadOffset + LoadSize > LoadOffset when LoadSize > 0. Thus, this shows StoreOffset + StoreSize > LoadOffset is guaranteed given LoadSize > 0, while it could be meaningless to have a type with nonpositive size, so that the check could be removed. The values are converted to signed types to avoid unsigned operation with negative offsets. Part of revision D100179 Reapply commit c35e8185 with fixing problem reported by mstorsjo
-
Nathan Lanza authored
This is just a few trivial changes -- change the interpreter and fix a few byte-vs-string issues. Differential Revision: https://reviews.llvm.org/D107944
-
James Nagurne authored
-
Sam McCall authored
The configuration may kick off indexing, which may involve sending LSP messages. The crash is fiddly to reproduce in a hermetic test (we need background indexing on without disk storage, and to handle server->client messages in LSPClient...) Fixes https://github.com/clangd/clangd/issues/926
-
Ellis Hoag authored
The `llvm.instrprof.increment` intrinsic uses `i32` for the index. We should use this same type for the index into the GEP instructions. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D114268
-
Krzysztof Drewniak authored
To perform some operations, such as sin() or printf(), code compiled for AMD GPUs must be linked to a series of device libraries. This commit adds support for linking in these libraries. However, since these device libraries are delivered as LLVM bitcode, raising the possibility of version incompatibilities, this commit only links in libraries when the functions from those libraries are called by the code being compiled. This code also sets the math flags to their most conservative values, as MLIR doesn't have a `-ffast-math` equivalent. Depends on D114114 Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D114117
-
Quinn Pham authored
[NFC] As part of using inclusive language within the llvm project, this patch replaces master with main in `Thumb2SizeReduction.cpp`. Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D114196
-
rdzhabarov authored
Bug fix. Stream must outlive the pass manager. Reviewed By: Chia-hungDuan Differential Revision: https://reviews.llvm.org/D114277
-
Wei Wang authored
`DeducedTemplateSpecializationTypes` is a `llvm::FoldingSet<DeducedTemplateSpecializationType>` [1], where `FoldingSetNodeID` is based on the values: {`TemplateName`, `QualType`, `IsDeducedAsDependent`}, those values are also used as `DeducedTemplateSpecializationType` constructor arguments. A `FoldingSetNodeID` created by the static `DeducedTemplateSpecializationType::Profile` may not be equal to`FoldingSetNodeID` created by a member `DeducedTemplateSpecializationType::Profile` of an instance created with the same {`TemplateName`, `QualType`, `IsDeducedAsDependent`}, which makes `DeducedTemplateSpecializationTypes` lookups nondeterministic. Specifically, while `IsDeducedAsDependent` value is passes to the constructor, `IsDependent()` method on the created instance may return a different value, because `IsDependent` is not saved as is: ```name=clang/include/clang/AST/Type.h DeducedTemplateSpecializationType(TemplateName Template, QualType DeducedAsType, bool IsDeducedAsDependent) : DeducedType(DeducedTemplateSpecialization, DeducedAsType, toTypeDependence(Template.getDependence()) | // <~ also considers `TemplateName` parameter (IsDeducedAsDependent ? TypeDependence::DependentInstantiation : TypeDependence::None)), ``` For example, if an instance A with key `FoldingSetNodeID {A, B, false}` is inserted. Then a key `FoldingSetNodeID {A, B, true}` is probed: If it happens to correspond to the same bucket in `FoldingSet` as the first key, and `A.Profile()` returns `FoldingSetNodeID {A, B, true}`, then it's a hit. If the bucket for the second key is different from the first key, instance A is not considered at all, and it's a no hit, even if `A.Profile()` returns `FoldingSetNodeID {A, B, true}`. Since `TemplateName`, `QualType` parameter values involve memory pointers, the lookup result depend on allocator, and may differ from run to run. When this is used as part of modules compilation, it may result in "module out of date" errors, if imported modules are built on different machines. This makes `ASTContext::getDeducedTemplateSpecializationType` consider `Template.isDependent()` similar `DeducedTemplateSpecializationType` constructor. Tested on a very big codebase, by running modules compilations from directories with varied path length (seem to affect allocator seed). 1. https://llvm.org/docs/ProgrammersManual.html#llvm-adt-foldingset-h Patch by Wei Wang and Igor Sugak! Reviewed By: bruno Differential Revision: https://reviews.llvm.org/D112481 -
Sanjay Patel authored
These are sibling transforms, but the test coverage was uneven and incomplete.
-
Stefan Pintilie authored
This patch only adds tests for PowerPC. The purpose of these tests is to track what code is generated for various vector reductions. Reviewed By: nemanjai, #powerpc Differential Revision: https://reviews.llvm.org/D113801
-
Louis Dionne authored
-
Becca Royal-Gordon authored
This change allows SwiftAttr to be used with #pragma clang attribute push to add Swift attributes to large regions of header files. We plan to use this to annotate headers with concurrency information. Patch by: Becca Royal-Gordon Differential Revision: https://reviews.llvm.org/D112773
-
Krzysztof Drewniak authored
Our current build assumes that the path to ROCm we find at build time will be the path at which ROCm is located when the built code is executed. This commit adds a --rocm-path option to SerializeToHsaco, and removes the HIP dependency that the SerializeToHsaco previously had. Depends on D114113 (though the dependency is to ensure the diffs apply cleanly and to capture the dependency on D114107) Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D114114
-
Stella Laurenzo authored
Differential Revision: https://reviews.llvm.org/D114271
-
David Blaikie authored
No need to use the dynamic fallback query when the name type is known statically at the call site.
-
Jon Chesterfield authored
Removes a +x/-x pair on the only store/load of a variable and deletes some nearby dead code. Also reduces the size of the implicit struct to reflect the code currently emitted by clang. Differential Revision: https://reviews.llvm.org/D114270
-
Arthur O'Dwyer authored
This is not mandated by the standard, so it goes in libcxx/test/libcxx/. It's certainly arguable that the algorithms changed here (`is_heap`, `is_sorted`, `min`, `max`) are harmless and we should just let them copy their comparators once. But at the same time, it's nice to have all our algorithms be 100% consistent and never copy a comparator, not even once. Differential Revision: https://reviews.llvm.org/D114136
-
Zarko Todorovski authored
Rewording of comments to avoid using `sanity test, sanity check`. Reviewed By: aaron.ballman, Quuxplusone Differential Revision: https://reviews.llvm.org/D114025
-
Louis Dionne authored
We would have been defining it in <utility> instead of <charconv>. For the time being, this doesn't change anything since we don't implement the feature test macro anyways. Also, as a fly-by, this removes obsolete feature test macro tests. There was a brief time back in the days when we wrote feature test macro tests manually. In particular, we had test files for __cpp_lib_to_chars and __cpp_lib_memory_resource. Since we now have a principled way of generating these tests with scripts, this commit removes the obsolete (and empty) tests for these two feature test macros. Differential Revision: https://reviews.llvm.org/D114243
-
Louis Dionne authored
We never noticed it because our CI doesn't actually build against a C library that doesn't have threading functionality, however building against a truly thread-free platform surfaces these issues. Differential Revision: https://reviews.llvm.org/D114242
-
Louis Dionne authored
One some platforms, -Wimplicit-int-conversion is enabled by default, which can lead to additional warnings being triggered in this test. Since we're only trying to test errors related to calling abs(), the assignment is superfluous. As a fly-by fix, correct one instance of ::abs to std::abs and made the test a .verify.cpp test instead. Differential Revision: https://reviews.llvm.org/D114244
-
Krzysztof Drewniak authored
- Adds hooks that allow SerializeTo* passes to arbitrarily transform the produced LLVM Module before it is passed to the code generation passes. - Uses these hooks within the SerializeToHsaco pass in order to run LLVM optimizations and to set the optimization level on the TargetMachine. - Adds an optLevel parameter to SerializeToHsaco Future work may include moving much of what's been added to SerializeToHsaco to SerializeToBlob, but that would require confirmation from the NVVM backend maintainers that it would be appropriate to do so. Depends on D114107 Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D114113
-
Thomas Raoux authored
Add up, down and idx modes to gpu shuffle ops, also change the mode from string to enum Differential Revision: https://reviews.llvm.org/D114188
-
Jay Foad authored
NFCI. Previously the implicit use was added to V_MOV_B32_indirect_read when building the instruction. V_MOV_B32_indirect_write didn't have an implicit use of M0 at all, but apparently it did not cause any problems. Differential Revision: https://reviews.llvm.org/D114239
-
Fangrui Song authored
Fix a null pointer dereference when .got.plt is discarded. This also adds a test for discarding `.plt`. Reviewed By: ikudrin Differential Revision: https://reviews.llvm.org/D114180
-
Jon Chesterfield authored
-