- Sep 01, 2022
-
-
Dong-hee Na authored
Differential Revision: https://reviews.llvm.org/D133022
-
Mark de Wever authored
This defines a new policy for removal of transitive includes. The goal of the policy it to make it relatively easy to remove headers when needed, but avoid breaking developers using and vendors shipping libc++. The method used is to guard transitive includes based on the C++ language version. For the upcoming C++23 we can remove headers when we want, but for other language versions we try to keep it to a minimum. In this code the transitive include of `<chrono>` is removed since D128577 introduces a header cycle between `<format>` and `<chrono>`. This cycle is indirectly required by the Standard. Our cycle dependency tool basically is a grep based tool, so it needs some hints to ignore cycles. With the input of our transitive include tests we can create a better tool. However that's out of the scope of this patch. Note the flag `_LIBCPP_REMOVE_TRANSITIVE_INCLUDES` remains unchanged. So users can still opt-out of transitives includes entirely. Reviewed By: #libc, ldionne, philnik Differential Revision: https://reviews.llvm.org/D132284
-
Michael Jones authored
The libc.src.__support.FPUtil.fputil target encompassed many unrelated files, and provided a lot of hidden dependencies. This patch splits out all of these files into component parts and cleans up the cmake files that used them. It does not touch any source files for simplicity, but there may be changes made to them in future patches. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D132980
-
Wei Yi Tee authored
Printing support enables the production of more useful error messages in unit testing e.g. when using matchers such as `UnorderedElementsAre()` to inspect the contents of a `StringMap`. Reviewed By: gribozavr2, sgatev, ymandel Differential Revision: https://reviews.llvm.org/D132747
-
Fangrui Song authored
-
Mark de Wever authored
Formatting the alternate form for the general categories should keep the trailing zeros. This was reported by @fsb4000 in D131336. The default format uses general formatting but this should not keep the trailing zeros so the default format is not passed to the formatter. While testing I found an off by one error; finding the exponent character `e` in 1e+03 will start at after the `1` so a size of `4` can contain an exponent. Reviewed By: fsb4000, ldionne, #libc Differential Revision: https://reviews.llvm.org/D131417
-
Arthur Eubanks authored
To trigger some bots. Differential Revision: https://reviews.llvm.org/D133033
-
Mark de Wever authored
Move the concept to the concepts header and uses a name in the style of P2286. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D131176
-
Mark de Wever authored
Implements: - LWG3721 Allow an arg-id with a value of zero for width in std-format-spec Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D130649
-
Mark de Wever authored
This was discovered as an issue in D131317. Depends on D131835 Reviewed By: #libc, var-const, ldionne, philnik Differential Revision: https://reviews.llvm.org/D131836
-
Mark de Wever authored
A followup of D132534 with C++03 enabled after fixing the experimental PMR issues. Depends on D132582 Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D132584
-
Mark de Wever authored
While working on D132534 it appeared the experimental PMR code doesn't have version guards and fails to compile on C++03. This adds the guards for that version. It seems the tests already were only disabled for C++03. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D132582
-
Mark de Wever authored
This version is build without support for the experimental library but the code still wants to link this function. Inlining the function solves the issue. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D132667
-
LLVM GN Syncbot authored
-
Wei Yi Tee authored
[clang][dataflow] Generalise match switch utility to other AST types and add a `CFGMatchSwitch` which currently handles `CFGStmt` and `CFGInitializer`. `MatchSwitch` currently takes in matchers and functions for the `Stmt` class. This patch generalises the match switch utility (renamed to `ASTMatchSwitch`) to work for different AST node types by introducing a template argument which is the base type for the AST nodes that the match switch will handle. A `CFGMatchSwitch` is introduced as a wrapper around multiple `ASTMatchSwitch`s for different base types. It works by unwrapping `CFGElement`s into their contained AST nodes and passing the nodes to the relevant `ASTMatchSwitch`. The `CFGMatchSwitch` currently only handles `CFGStmt` and `CFGInitializer`. Reviewed By: gribozavr2, sgatev Differential Revision: https://reviews.llvm.org/D131616
-
Mingming Liu authored
- Use linux little endian data layout string. Differential Revision: https://reviews.llvm.org/D132889
-
Daniel Thornburgh authored
This adds support for backtrace generation to the llvm-symbolizer markup filter, which is likely the largest use case. Reviewed By: peter.smith Differential Revision: https://reviews.llvm.org/D132706
-
Ben Langmuir authored
Attempt to fix the test failures observed in CI: * Add Option dependency, which caused BUILD_SHARED_LIBS builds to fail * Adapt tests that accidentally depended on the host platform: platforms that don't use an integrated assembler (e.g. AIX) get a different set of commands from the driver. Most dependency scanner tests can use -fsyntax-only or -E instead of -c to avoid this, and in the rare case we want to check -c specifically, set an explicit target so the behaviour is independent of the host. Original commit message follows. --- Instead of trying to "fix" the original driver invocation by appending arguments to it, split it into multiple commands, and for each -cc1 command use a CompilerInvocation to give precise control over the invocation. This change should make it easier to (in the future) canonicalize the command-line (e.g. to improve hits in something like ccache), apply optimizations, or start supporting multi-arch builds, which would require different modules for each arch. In the long run it may make sense to treat the TU commands as a dependency graph, each with their own dependencies on modules or earlier TU commands, but for now they are simply a list that is executed in order, and the dependencies are simply duplicated. Since we currently only support single-arch builds, there is no parallelism available in the execution. Differential Revision: https://reviews.llvm.org/D132405
-
Egor Zhdan authored
`CXString createRef(StringRef String)` used to return an invalid string when invoked with some empty strings: If a `StringRef` holds a non-nullptr pointer, for instance, pointing into contents of a larger string, and has a zero length, `createRef` previously returned the entire larger string, ignoring the fact that the actual string passed to it as a param is empty. This was discovered when invoking `c-index-test` to dump the contents of documentation comments, in case the comment contains an empty HTML attribute, such as `src=""`. Differential Revision: https://reviews.llvm.org/D133009
-
Simon Pilgrim authored
Account for double-pumping on early AVX1/AVX2 targets
-
- Aug 31, 2022
-
-
Peixin Qiao authored
As Fortran 2018 18.2.3.5, the intrinsic c_funloc(x) gets the C address of argument x. It returns the scalar of type C_FUNPTR. As defined in iso_c_binding in flang/module/__fortran_builtins.f90, C_FUNPTR is the derived type with only one component of integer 64. This follows the implementation of https://reviews.llvm.org/D129659. The argument is lowered as ProcBox and the address is generated using fir.box_addr. Reviewed By: jeanPerier, clementval Differential Revision: https://reviews.llvm.org/D132273
-
Florian Hahn authored
Add extra FMA tests with missing or partial fast-math flags.
-
Daniel Bertalan authored
This flag instructs dyld to make the segment read-only after fixups have been performed. I'm not sure why this flag is needed, as on macOS 13 beta at least, __DATA_CONST is read-only even without this flag; but ld64 sets it as well. Differential Revision: https://reviews.llvm.org/D133010
-
Simon Pilgrim authored
We feed the result from the first extractShiftForRotate call into the second, and that result might no longer be a shift op (usually due to constant folding). NOTE: We REALLY need to stop creating nodes on the fly inside extractShiftForRotate! Fixes Issue #57474
-
Jon Chesterfield authored
-
Jez Ng authored
No significant perf diff, as expected. base diff difference (95% CI) sys_time 1.722 ± 0.030 1.727 ± 0.027 [ -0.6% .. +1.2%] user_time 5.081 ± 0.032 5.087 ± 0.030 [ -0.2% .. +0.4%] wall_time 6.008 ± 0.056 6.029 ± 0.053 [ -0.1% .. +0.8%] samples 25 37 Reviewed By: #lld-macho, oontvoo, thakis, BertalanD Differential Revision: https://reviews.llvm.org/D133014 -
Siva Chandra Reddy authored
Reviewed By: gchatelet Differential Revision: https://reviews.llvm.org/D133004
-
Aaron Ballman authored
https://reviews.llvm.org/D131255 (82afc9b1) began warning about conversion causing data loss for a single-bit bit-field. However, after landing the changes, there were reports about significant false positives from some code bases. This alters the approach taken in that patch by introducing a new warning group (-Wsingle-bit-bitfield-constant-conversion) which is grouped under -Wbitfield-constant-conversion to allow users to selectively disable the single-bit warning without losing the other constant conversion warnings. Differential Revision: https://reviews.llvm.org/D132851
-
Florian Hahn authored
Test case mentioned in the discussion for D115261.
-
Aaron Ballman authored
While discussing diagnostic format strings with a GSoC mentee, it became clear there was some confusion regarding how to use them. Specifically, the documentation for %select caused confunsion because it was using %select{}2 and talking about how the integer value must be in the range [0..2], which made it seem like the positional argument was actually specifying the range of acceptable values. I clarified several of the examples similarly, moved some documentation to a more appropriate place, and added some additional information to the %s modifier to point out that %plural exists. -
Hassnaa Hamdi authored
Differential Revision: https://reviews.llvm.org/D132573 skip custom-lowering for v1f64 to be expanded instead, because it has only one lane Differential Revision: https://reviews.llvm.org/D132959
-
Florian Hahn authored
It looks like the vector loops in the modified test cases unintentionally never get executed. Update the exit condition to ensure it does to avoid them getting optimized away in upcoming changes.
-
Nikita Popov authored
-
Nikita Popov authored
Zero-input phi nodes are accepted by the verifier and bitcode reader, but currently rejected by the IR parser. Allow them there as well. Because phi nodes must have one entry for each predecessor, such phis can only occur in blocks without predecessors, aka unreachable code. Usually, when removing the last predecessor from a block, we also remove phi nodes in it. However, this is not possible for invalidation reasons sometimes, which is why we ended up allowing zero-entry phis at some point in the past. See 9eb2c011, D92247 and PR48296 for context. I've dropped the verifier unit test, because this is now covered by the regular IR test. This fixes at least part of https://github.com/llvm/llvm-project/issues/57446. Differential Revision: https://reviews.llvm.org/D133000
-
Alvin Wong authored
This also modifies llvm-readobj to be more future-proof when printing the guard FIDs table by calculating the entry size correctly according to MS docs. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D132924
-
Alvin Wong authored
Print flags as documented in MS docs. https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#load-configuration-layout https://docs.microsoft.com/en-us/windows/win32/secbp/pe-metadata EH_CONTINUATION_TABLE_PRESENT is not mentioned in the docs but is instead taken from Windows SDK headers. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D132823
-
Martin Storsjö authored
This fixes the following warning: In file included from ../tools/clang/lib/Tooling/Transformer/Transformer.cpp:9: ../tools/clang/include/clang/Tooling/Transformer/Transformer.h: In instantiation of ‘llvm::Error clang::tooling::detail::populateMetadata(const clang::transformer::RewriteRuleWith<MetadataT>&, size_t, const clang::ast_matchers::MatchFinder::MatchResult&, clang::tooling::TransformerResult<T>&) [with T = void; size_t = long unsigned int]’: ../tools/clang/include/clang/Tooling/Transformer/Transformer.h:179:34: required from ‘void clang::tooling::detail::WithMetadataImpl<T>::onMatchImpl(const clang::ast_matchers::MatchFinder::MatchResult&) [with T = void]’ ../tools/clang/include/clang/Tooling/Transformer/Transformer.h:156:8: required from here ../tools/clang/include/clang/Tooling/Transformer/Transformer.h:120:25: warning: parameter ‘SelectedCase’ set but not used [-Wunused-but-set-parameter] 120 | size_t SelectedCase, | ~~~~~~~^~~~~~~~~~~~ The issue is fixed in GCC 10 and later, but this silences the noisy warning in older versions. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85827 for more details about the bug. Differential Revision: https://reviews.llvm.org/D132920 -
Hassnaa Hamdi authored
change vscale_range<2,0> to vscale_range<1,0> for 64/128-bit vectors of fadda tests
-
Benjamin Kramer authored
[bazel] Drop ConversionPassDetail, it shouldn't be needed after 67d0d7ac
-
Valentin Clement authored
Apply lower bounds before call to the ubound runtime function. This is similary done in genLBound. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D133001
-