- Apr 25, 2022
-
-
Florian Hahn authored
This is to ensure we produce the same code when switching to SimpleLoopUnswitch.
-
Adrian Kuegel authored
When building with layering_check enabled, there needs to be a dependency for each header include.
-
Jean Perier authored
The lowering code was mistakenly assuming that the second argument in the signature provided by semantics is the DIM argument. This caused calls with a KIND argument but no DIM to be lowered as if the KIND argument was DIM. Differential Revision: https://reviews.llvm.org/D124243
-
Markus Böck authored
This is likely preferable to having it crash if one were to specify an opaque pointer type, and the actual element type is unused either way. Differential Revision: https://reviews.llvm.org/D124334
-
Jun Zhang authored
I think the author renamed the function but forgot to update the comment. Signed-off-by:Jun Zhang <jun@junz.org>
-
Shraiysh Vaishay authored
This patch addresses the comment about unexecuted test in D122371. Reviewed By: probinson Differential Revision: https://reviews.llvm.org/D123920
-
Chenbing Zheng authored
This patch add a function foldSelectWithFCmpToFabs, and do more combine for fneg-of-fabs. With 'nsz': fold (X < +/-0.0) ? X : -X or (X <= +/-0.0) ? X : -X to -fabs(x) fold (X > +/-0.0) ? X : -X or (X >= +/-0.0) ? X : -X to -fabs(x) Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D123830
-
Brad Smith authored
Reviewed By: ldionne, emaste, dim Differential Revision: https://reviews.llvm.org/D122628
-
sstwcw authored
There was some duplicate code in determineStarAmpUsage and determinePlusMinusCaretUsage Now a `-` or `+` following `;`, `sizeof`, `co_await`, or `delete` is regarded as a unary operator. Now a `*` or `&` following `case` is also a unary operator. Reviewed By: curdeius, MyDeveloperDay, HazardyKnusperkeks Differential Revision: https://reviews.llvm.org/D121754
-
Aaron Puchert authored
It was probably accidentally added there, see the discussion on change D97625. It is certainly without effect, to quote gitattributes(5): When deciding what attributes are assigned to a path, Git consults [...], `.gitattributes` file in the same directory as the path in question, and its parent directories up to the toplevel of the work tree [...] Running `git check-attr -a` on the files in question shows that now the settings are indeed effective whereas before they were not. Lastly, lit ignores the file like any dotfile, see getTestsInDirectory of FileBasedTest in llvm/utils/lit/lit/formats/base.py. This can be verified with `llvm-lit --show-tests clang-tools-extra/test`. -
Valentin Clement (バレンタイン クレメン) authored
In some case the lowering of `ichar` is generating an `arith.extui` operation with the same from/to type. This operation do not accept from/to types to be the same. If the from/to types are identical, we do not generate the extra operation. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D124107
-
- Apr 24, 2022
-
-
Jonas Toth authored
`find_compilation_database` checked only for "/" as exit point, but on Windows, this root is impossible. Fixes #53642 Authored By: Febbe Reviewed By: JonasToth Differential Revision: https://reviews.llvm.org/D119481
-
Matt Arsenault authored
Removing these is extremely unhelpful and just adds extra hassle. This is really finding out whether your test script uses -mtriple or not. You can't meaningfully delete these fields, and the resulting module defaults to the host.
-
Petr Hosek authored
Avoid repeating CMake checks across runtimes by unifying names of variables used for results to leverage CMake caching. Differential Revision: https://reviews.llvm.org/D110005
-
Chenbing Zheng authored
Add more tests with differert predicates.
-
Vince Bridgers authored
This change adds an option to detect all null dereferences for non-default address spaces, except for address spaces 256, 257 and 258. Those address spaces are special since null dereferences are not errors. All address spaces can be considered (except for 256, 257, and 258) by using -analyzer-config core.NullDereference:DetectAllNullDereferences=true. This option is false by default, retaining the original behavior. A LIT test was enhanced to cover this case, and the rst documentation was updated to describe this behavior. Reviewed By: steakhal Differential Revision: https://reviews.llvm.org/D122841 -
wangpc authored
To fix llvm-mca's error of 'found an unsupported instruction in the input assembly sequence.' caused by the lack of scheduling info. Pseudo function call instructions will be expanded to `auipc` and `jalr`, so their scheduling info are the combination of two. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D123578
-
Senran Zhang authored
Reviewed By: beanz Differential Revision: https://reviews.llvm.org/D124339
-
Vaivaswatha Nagaraj authored
This patch extends https://reviews.llvm.org/D90831 with a few more functions added to the OCaml debuginfo bindings. Differential Revision: https://reviews.llvm.org/D123914
-
Nico Weber authored
Before this, clang empty.cc -target x86_64-apple-ios13.1-macabi \ -framework CoreServices -fuse-ld=lld would error out with ld64.lld: error: path/to/MacOSX.sdk/System/Library/Frameworks/ CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/ Versions/A/CarbonCore.tbd( /System/Library/Frameworks/ CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/ Versions/A/CarbonCore) is incompatible with x86_64 (macCatalyst) Now it works, like with ld64. Differential Revision: https://reviews.llvm.org/D124336 -
Jun Ma authored
This patch set LastCallToStaticBonus based on check, it has no noticeable size reduction on an internal workload and linux kernel with Os/Oz. Differential Revision: https://reviews.llvm.org/D124233
-
Nick Kreeger authored
Revert "[mlir][sparse] Expose SpareTensor passes as enums instead of opaque numbers for vectorization and parallelization options." This reverts commit d59cf901. Build fails on NVIDIA Sparse tests: https://lab.llvm.org/buildbot/#/builders/61/builds/25447
-
Nick Kreeger authored
Revert "Revert "Revert "Revert "[Concepts] Fix overload resolution bug with constrained candidates"""" This reverts commit cfc2c590.
-
Nick Kreeger authored
Revert "Revert "Revert "[Concepts] Fix overload resolution bug with constrained candidates""" This reverts commit a0636b58.
-
Nick Kreeger authored
Revert "Revert "[Concepts] Fix overload resolution bug with constrained candidates"" This reverts commit f6af446b.
-
Nick Kreeger authored
This reverts commit a0636b58.
-
Nick Kreeger authored
This reverts commit f6af446b.
-
Nick Kreeger authored
This reverts commit 807e4184.
-
Nick Kreeger authored
[mlir][sparse] Expose SpareTensor passes as enums instead of opaque numbers for vectorization and parallelization options. The SparseTensor passes currently use opaque numbers for the CLI, despite using an enum internally. This patch exposes the enums instead of numbered items that are matched back to the enum. Fixes GitHub issue #53389 Reviewed by: aartbik, mehdi_amini Differential Revision: https://reviews.llvm.org/D123876
-
Roy Jacobson authored
When doing overload resolution, we have to check that candidates' parameter types are equal before trying to find a better candidate through checking which candidate is more constrained. This revision adds this missing check and makes us diagnose those cases as ambiguous calls when the types are not equal. Fixes GitHub issue https://github.com/llvm/llvm-project/issues/53640 Reviewed By: erichkeane Differential Revision: https://reviews.llvm.org/D123182
-
Fangrui Song authored
With the -enable-new-pm defaulting to true, the two forms have the same effect, but the previous form uses the legacy pass manager syntax which is being phased out.
-
Fangrui Song authored
The Bazel layering_check feature compiles libraries with `-fmodule-name=X -fmodules-strict-decluse` which require #include to be in deps.
-
Fangrui Song authored
-
Vince Bridgers authored
A recent review emphasized the preference to use DefaultBool instead of bool for checker options. This change is a NFC and cleans up some of the instances where bool was used, and could be changed to DefaultBool. Reviewed By: steakhal Differential Revision: https://reviews.llvm.org/D123464
-
Joseph Huber authored
When we do LTO we consider ourselves to have whole program visibility if every single input file we have contains LLVM bitcode. If we have whole program visibliity then we can create a single image and utilize CUDA's non-RDC mode by not passing `-c` to `ptxas` and ignoring the `nvlink` job. This should be faster for some situations and also saves us the time executing `nvlink`. Reviewed By: tra Differential Revision: https://reviews.llvm.org/D124292
-
Mark de Wever authored
D123182 fixes a bug in Clang's overload resolution. After it landed it was discovered `basic_format_arg`'s constructors contains this bug. This fixes the bug in libc++, unblocking D123182. The code has been tested in combination with D123182. Reviewed By: royjacobson, #libc Differential Revision: https://reviews.llvm.org/D124103
-
Amir Ayupov authored
Refactor nested conditions. NFC Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D123861
-
- Apr 23, 2022
-
-
Iain Sandoe authored
When the -fdirectives-only option is used together with -E, the preprocessor output reflects evaluation of if/then/else directives. Thus it preserves macros that are still live after such processing. This output can be consumed by a second compilation to produce a header unit. We automatically invoke this (with -E) when we know that the job produces a header unit so that the preprocessed output reflects the macros that will be defined when the binary HU is emitted. Differential Revision: https://reviews.llvm.org/D121591
-
Eric Schweitz authored
Remove redundant code. Differential Revision: https://reviews.llvm.org/D124310