- Aug 12, 2022
-
-
Nikolas Klauser authored
Reviewed By: ldionne, Mordante, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D130848
-
Vir Narula authored
Add more tests with varied strides. Changes to lowering upcoming in https://reviews.llvm.org/D131125 Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D131444
-
Fangrui Song authored
Reviewed By: kazu Differential Revision: https://reviews.llvm.org/D131695
-
Walter Erquinigo authored
Pavel Labath taught me that clang-format sorts headers automatically using llvm's rules, and it's better not to have spaces between So in this diff I'm removing those spaces and formatting them as well. I used `clang-format -i` to format these files.
-
Alex Bradbury authored
As reported in <https://github.com/llvm/llvm-project/issues/57084>, under hard float ABIs there are issues with lowering structs that inherit from other structs. See <https://reviews.llvm.org/D131677> for a fix.
-
Aaron Ballman authored
Clang currently crashes when lowering a consteval list initialization of a temporary. This is partially working around an issue in the template instantiation code (TreeTransform::TransformCXXTemporaryObjectExpr()) that does not yet know how to handle list initialization of temporaries in all cases. However, it's also helping reduce fragility by ensuring we always have a valid QualType when trying to emit a constant expression during IR generation. Fixes #55871 Differential Revision: https://reviews.llvm.org/D131194
-
Fangrui Song authored
The function added by D9467 is unneeded. https://github.com/android/ndk/wiki/Changelog-r24 shows that the NDK has moved forward to at least a minimum target API of 19. Reviewed By: srhines Differential Revision: https://reviews.llvm.org/D131656
-
Fangrui Song authored
-
Brett Wilson authored
Struct/class data members did not have the comments associated with them. This adds that information to the MemberTypeInfo class and emits it in the YAML. This does not update the frontends yet. Reviewed By: paulkirth Differential Revision: https://reviews.llvm.org/D131298
-
Craig Topper authored
Instead of having separate implementations for RV32 and RV64, use the triple to control the Is64Bit parameter. Do the same for isValidTuneCPUName, fillValidCPUList, and fillValidTuneCPUList.
-
Marc Auberer authored
Removes duplicated names as recommended here: https://llvm.org/docs/CodingStandards.html#doxygen-use-in-documentation-comments Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D131193
-
Vitaly Buka authored
On most platforms it does nothing, so this eliminates a need for one #if.
-
Vitaly Buka authored
-
Simon Pilgrim authored
lowerShuffleWithVPMOV currently only matches shuffle(truncate(x)) patterns, but on VLX targets the truncate isn't usually necessary to make the VPMOV node worthwhile (as we're only targetting v16i8/v8i16 shuffles we're almost always ending up with a PSHUFB node instead). PACKSS/PACKUS are still preferred vs VPMOV due to their lower uop count. Fixes the remaining regression from the fixes in rG293899c6
-
Mike Rice authored
Previously a diagnostic was given if the expression was not strictly a DeclRef. Now also allow use of data members inside member functions. Differential Revision: https://reviews.llvm.org/D131222
-
Augusto Noronha authored
Differential Revision: https://reviews.llvm.org/D131531
-
Simon Pilgrim authored
-
Kevin P. Neal authored
My most recent change for D131607 had a formatting error that I didn't notice until after I committed it. Let me fix it now so changes to this file will be back-to-back from me.
-
- Aug 11, 2022
-
-
Sanjay Patel authored
We manage to iteratively achieve this result with no extra uses, and the reassociate pass can also do this, but this pattern falls through the cracks in the example from issue #57053.
-
Sanjay Patel authored
Extra uses inhibit more basic folds, so we miss the larger fold.
-
Uday Bondhugula authored
Fix hasNoInterveningEffect in the presence of ops from different affine scopes. Also, correctly check for dependence failures as well instead of just for the existence of a dependence. Differential Revision: https://reviews.llvm.org/D131641
-
Kevin P. Neal authored
Another ticket split out of D107285, this extends the optimization of 0.0 - -X to just X when using constrained intrinsics and the optimization is allowed. If the negation of X is done with fsub then the match fails because of the lack of IR Matcher support for constrained intrinsics. While I'm here, remove some TODO notices since the work is no longer planned. Differential Revision: https://reviews.llvm.org/D131607
-
Simon Pilgrim authored
As mentioned on D128934 - we weren't including the CPUID bit handling for the RDPRU instruction AMD's APMv3 (24594) lists it as CPUID Fn8000_0008_EBX Bit#4
-
Joe Nash authored
This test is already a subset of the autogenerated test lines, so truly auto-generate it to make it easier to update.
-
Johannes Doerfert authored
The problem is we create the call to __kmpc_kernel_parallel in the openmp-opt pass but while we optimize the code, the call is not there yet. Thus, we assume we never reach it from __kmpc_target_deinit. That allows us to remove the store in there (`ParallelRegionFn = nullptr`), which leads to bad results later on. This is a shortstop solution until we come up with something better. Fixes https://github.com/llvm/llvm-project/issues/57064
-
Simon Pilgrim authored
These were missed in D128934
-
Peter Waller authored
Discussed in D131503. Fix to D130782.
-
Eric Astor authored
This is believed to match behavior by ML.EXE and ML64.EXE. Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D131522
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D131588
-
Balazs Benics authored
This encapsulates 3 changes: - `DotDumpVisitor` now aggregates strings instead of *bytes* for both `python2` and `python3`. This difference caused crashes when it tried to write out the content as *strings*, similarly described at D71746. - `graphviz.pipe()` expects the input in *bytes* instead of unicode strings. And it results in *bytes*. Due to string concatenations and similar operations, I'm using unicode string as the default, and converting to *bytes* on demand. - `write_temp_file()` now appends the `egraph-` prefix and more importantly, it will create the temp file in the **current working directory** instead of in the *temp*. This change makes `Firefox` be able to open the file even if the `security.sandbox.content.level` is set to the (default) most restricting `4`. See https://support.mozilla.org/si/questions/1259285 An artifact of the bad byte handling was previously in the `HTML` produced by the script that it displayed the `b'` string at the top left corner. Now it won't anymore :) I've tested that the following command works on `Ubuntu 22.04`: ``` exploded-graph-rewriter my-egraph.dot ``` Both `python2` and `python3` works as expected. PS: I'm not adding tests, as the current test infra does not support testing HTML outputs for this script. Check the `clang/test/Analysis/exploded-graph-rewriter/lit.local.cfg`. We always pass the `--dump-dot-only` flag to the script. Along with that, the default invocation will not only create this HTML report but also try to open it. In addition to this, I'm not sure if the buildbots have `graphviz` installed and also if this package is installed on `pip`. Unless we change some of these, we cannot test this change. Given that D71746 had no tests, I'm not too worried about this either. Reviewed By: NoQ Differential Revision: https://reviews.llvm.org/D131553 -
Michael Buch authored
Add test cases for the possible function qualifiers that the `CPlusPlusNameParser` supports. Differential Revision: https://reviews.llvm.org/D131332
-
Anubhab Ghosh authored
Differential Revision: https://reviews.llvm.org/D131510
-
Jun Zhang authored
Signed-off-by:Jun Zhang <jun@junz.org>
-
Emmmer authored
Fixed an inconsistency between D130985 and D130342 This should be a follow-up of D130985 Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D131667
-
Tue Ly authored
Change sinf/cosf range reduction to mod pi/32 to be shared with tanf, since polynomial approximations for tanf on subintervals of length pi/16 do not provide enough accuracy. Reviewed By: orex Differential Revision: https://reviews.llvm.org/D131652
-
David Truby authored
The __ARM_FEATURE_SVE_VECTOR_OPERATORS macro should be changed to indicate that this feature is now supported on VLA vectors as well as VLS vectors. There is a complementary PR to the ACLE spec here https://github.com/ARM-software/acle/pull/213 Reviewed By: peterwaller-arm Differential Revision: https://reviews.llvm.org/D131573
-
David Truby authored
Previously the table in LanguageExtensions said that sizeof worked on SVE types but this is only correct for fixed-length vectors so a clarification has been added.
-
David Green authored
A bfloat select operation will currently crash, but is allowed from C. This adds handling for the operation, turning it into a FCSELHrrr if fullfp16 is present, or converting it to a FCSELSrrr if not. The FCSELSrrr is created via using INSERT_SUBREG/EXTRACT_SUBREG to convert the bf16 to a f32 and using the f32 pattern for FCSELSrrr. (I originally attempted to do this via a tablegen pattern, but it appears that the nzcv glue is places onto the wrong node, causing it to be forgotten and incorrect scheduling to be emitted). The FCSELSrrr can also be used for fp16 selects when +fullfp16 is not present, which helps avoid an unnecessary promotion to f32. Differential Revision: https://reviews.llvm.org/D131253
-
Simon Pilgrim authored
[X86] lowerShuffleWithVPMOV - remove oneuse constraints on shuffle(trunc(x),undef) -> vpmov(x) lowering These were added in rG057bdd63 but shuffle combining has gotten a lot better at folding different vector widths since then.
-
Sam Estep authored
This patch modifies `Environment`'s `pushCall` method to pass over arguments that are missing storage locations, instead of crashing. Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D131600
-