- Aug 18, 2022
-
-
Fabian Parzefall authored
Functions that do not contain any code still have to be emitted. This occurs on AArch64 where functions can consist only of a constant island. To support fragment semantics in code emission, this commits adds a guaranteed main fragment to function layout. This fragment might be empty, but allows us omit checks whether the function is empty in most places. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D130051
-
Daniil Fukalov authored
TragetLowering had two last InstructionCost related `getTypeLegalizationCost()` and `getScalingFactorCost()` members, but all other costs are processed in TTI. E.g. it is not comfortable to use other TTI members in these two functions overrided in a target. Minor refactoring: `getTypeLegalizationCost()` now doesn't need DataLayout parameter - it was always passed from TTI. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D117723
-
Paul Kirth authored
_HAS_EXCEPTIONS=0 allows disabling the exception parts of the MS STL and vcruntime, and e.g. compiler-rt/lib/fuzzer sets this define (to work around issues with MS STL). If using libc++ instead of MS STL, this define previously broke the libc++ headers. If _HAS_EXCEPTIONS is set to 0, the vcruntime_exception.h header doesn't define the ABI base class std::exception. If no exceptions are going to be thrown, this probably is fine (although it also breaks using subclasses of it as regular objects that aren't thrown), but it requires ifdeffing out all subclasses of all exception/error derived objects (which are sprinkled throughout the headers). Instead, libc++ will supply an ABI compatible definition when _HAS_EXCEPTIONS is set to 0, which will make the class hierarchies complete. In this build configuration, one can still create instances of exception subclasses, and those objects will be ABI incompatible with the ones from when _HAS_EXCEPTIONS isn't defined to 0 - but one may argue that's a pathological/self-imposed problem in that case. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D103947
-
Shafik Yaghmour authored
The restrictions added in D131704 were not sufficient to avoid all non-constant expression contexts. In particular constant initialization cases. We need to check EvaluatingDecl to detect if the variable we are initializing is constexpr or not. At this point it looks like this is the remaining case affecting various projects with this diagnostic. Differential Revision: https://reviews.llvm.org/D131874
-
Philip Reames authored
-
Jakub Kuderski authored
The `arith.addi_carry` op implements integer addition with overflows. The carry is returned via the second result, as `i1`. Reviewed By: antiagainst, bondhugula Differential Revision: https://reviews.llvm.org/D131893
-
Vitaly Buka authored
-
Slava Zakharin authored
The current code may not always work correctly, e.g.: https://github.com/llvm/llvm-project/issues/57201 I added 'enable-experimental' pass option so that SUM simplification may be enabled in LIT tests, but it is not enabled when the pass is added to the passes pipeline. Differential Revision: https://reviews.llvm.org/D131640
-
Zequan Wu authored
Before, NativePDB uses scoped range as a workaround for value range, that causes problems (e.g. a variable's value can only have one range, but usually a variable's value is located at different address ranges, each at different locations, in optimized build). This patch let NativePDB switch to DWARFLocationList so a variable's value can be described at multiple non-overlapped address ranges and each range maps to a location. Because overlapping ranges exists, here's peference when choosing ranges: 1. Always prefer whole value locations. Suppose a variable size is 8 bytes, one record is that for range [1, 5) first 4 bytes is at ecx, and another record is that for range [2, 8) the 8 bytes value is at rdx. This results: [1, 2) has first 4 bytes at ecx, [2, 8) has the whole value at rdx. 2. Always prefer the locations parsed later. Suppose first record is that for range [1, 5) value is at ecx, second record is that for range [2, 6) value is at eax. This results: [1, 2) -> ecx, [2, 6) -> eax. Differential Revision: https://reviews.llvm.org/D130796
-
Sanjay Patel authored
This is a potentially better alternative to D131452 that also should avoid the infinite loop bug from: issue #56403 This is again a minimal fix to reduce merging pain for the release. But if this makes sense, then we might want to guard all of the RTLIB generation (and other libcalls?) with a similar name check. Differential Revision: https://reviews.llvm.org/D131521
-
Markus Böck authored
These are useful in builders of Ops taking DenseArrayAttrs or for use in Rewriter, to create constant instances. Differential Revision: https://reviews.llvm.org/D132067
-
Matthias Braun authored
Improve copy statistics: - Count copies from or to physical registers: They are used to model function parameters and calling conventions and the register allocator optimizes for them. - Check physical registers assigned to virtual registers and stop counting "identity" `COPY`s where source and destination is the same physical registers; they will be removed in the `virtregmap` pass anyway. Differential Revision: https://reviews.llvm.org/D131932
-
Archit Saxena authored
The current machine function splitter is reliant on profile data to do profile summary analysis to split blocks into cold section. This may sometimes limit the usage of machine function splitter especially in cases where we could do some form of static analysis to split out cold blocks if profile data is absent or profile data which may be faulty (Consider Sample PGO). Of all code that could statically be marked cold Exception handling blocks are one of them (In fact BFI framework also tends to mark them as cold), and the most in size contribution. In my experiments I found out Exception handling pads and all code reachable from there account for up to 6-8% of the .text section on modern production binaries. This patch introduces a flag to split out all Exception handling blocks and blocks only reachable from Exceptional Handling pad to cold section. This flag has shown to give a performance win of up to 0.1% in terms of average cycles and instructions executed on internal facebook search service. Reviewed By: snehasish Differential Revision: https://reviews.llvm.org/D131824
-
Nico Weber authored
For now, this only builds the dylib, so using `-fsanitize=undefined` with `-static-libsan` or `fsanitize-minimal-runtime` still won't work -- but the common case does work. Differential Revision: https://reviews.llvm.org/D131969
-
Ellis Hoag authored
Add the `-enable-post-pgo-loop-rotation` option to enable or disable the loop rotation transformation [1]. With some instrumentations, e.g., function entry coverage [2], loop rotation is not necessary and can lead to some surprise differences in codegen, even for functions where instrumentation is blocked with `noprofile` or `skipprofile`. The default value is `true` so the default behavior does not change. [1] https://www.llvm.org/docs/LoopTerminology.html#loop-terminology-loop-rotate [2] https://reviews.llvm.org/D116180 Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D131817
-
Slava Gurevich authored
* Fix broken option parsing in SetOptionValue() Differential Revision: https://reviews.llvm.org/D131983
-
Kent Ross authored
Previously the specification was in a table in paragraph 14 of [container.requirements.general] but it has since been given its own sub section header, 24.2.2.4 [container.opt.reqmts]. This happened in https://github.com/cplusplus/draft/commit/93ff092d1cd2b335f372b9546365b3d495caf2d8 This update also includes misc. other cleanups of the spaceship projects sheet. Reviewed By: Mordante, avogelsgesang, #libc Differential Revision: https://reviews.llvm.org/D131928
-
Sanjay Patel authored
Issue #56403
-
Nirvedh Meshram authored
Adding more supported storage classes in pointer type Removing support for arithmetic ops as this is not available on the tensor hardware Reviwed By: antiagainst Differential Revision: https://reviews.llvm.org/D132039
-
Vladimir Plyashkun authored
[clang-tidy] hicpp-signed-bitwise - Return location of the operand (and not of the operator beginning) Currently, the "hicpp/signed-bitwise" check returns the beginning of the binary/unary operator as location, which sometimes confuses users in the IDE due to incorrect [[ https://youtrack.jetbrains.com/issue/CPP-12445/Clang-Tidy-highlighting-for-binary-operators-applied-to-wrong-operand | highlighting ]]. Yes, the offset from Ranges can be used for this particular check, but i suppose better solution is to return begin location of the problematic operand instead of operator. Reviewed By: njames93 Differential Revision: https://reviews.llvm.org/D131678
-
Markus Böck authored
The kind of attribute required has changed in 58a47508 but the comment was not updated to reflect it.
-
Vladislav Dzhidzhoev authored
Use generic lowering of G_CTPOP for s32 and s64 scalars when noimplicitfloat is specified. Differential Revision: https://reviews.llvm.org/D131454
-
Louis Dionne authored
An issue I often see in codebases compiled for unusual platforms is that header search paths are specified manually and are subtly wrong. For example, people will manually add `-isystem <some-toolchain>/usr/include`, which ends up messing up the layering of header search paths required by libc++ (because the C Standard Library now appears *before* libc++ in the search paths). Without this patch, this will end up causing compilation errors that are pretty inscrutable. This patch aims to improve the user experience by diagnosing this issue explicitly. In all cases I can think of, I would expect that a compilation error occur if these header search paths are not layered properly. This should only provide an explicit diagnostic instead of failing due to seemingly unrelated compilation errors. Differential Revision: https://reviews.llvm.org/D131441
-
Peiming Liu authored
Reviewed By: aartbik, bixia Differential Revision: https://reviews.llvm.org/D132040
-
Dominic Chen authored
This reverts commit 774c3931.
-
Dominic Chen authored
These warning were identified while debugging modules with Wsystem-headers. Differential Revision: https://reviews.llvm.org/D131999
-
Nico Weber authored
llvm-objdump takes foo-bar style flags, while llvm-otool takes foo_bar style flags. dyld_info was the only exception to that. Add a -dyld_info flag to llvm-otool instead. (Both in llvm-objdump and llvm-otool, the flag doesn't really do anything yet.) Differential Revision: https://reviews.llvm.org/D131897
-
Prabhu Karthikeyan Rajasekaran authored
[llvm-readelf] Render messages similar to that of `GNU binutils readelf` when no sections and/or no headers. When there are no section headers section information printed by llvm-readelf is not useful and unnecessarily verbose. When there are no program headers there's a similar verbose output shown when section mapping is requested. Simplifying the message shown in these cases to match the behavior of `GNU binuntils readelf`. Reviewed By: jhenderson, MaskRay Differential Revision: https://reviews.llvm.org/D130670
-
Craig Topper authored
Extracted from D131729 where we handled C==0. It's now generalized to more constants. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D132000
-
Craig Topper authored
This refactors the code into a separate function with early returns. D132000 adds an additional operation to the if/else that selects NewLHS, but can otherwise share the rest of the code. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D132002
-
Chelsea Cassanova authored
This commit adds tests to ensure that queue-specific breakpoints work as expected, as this feature wasn't being tested before. Differential Revision: https://reviews.llvm.org/D131605
-
Argyrios Kyrtzidis authored
[FindGRPC.cmake] Use `llvm_add_library()` for the custom proto target instead of `add_llvm_library()` `add_llvm_library()` would cause the proto target to be added in `LLVMExports.cmake` and could fail an external configuration of compiler-rt with error "The following imported targets are referenced, but are missing: grpc++ protobuf::libprotobuf" Differential Revision: https://reviews.llvm.org/D132033
-
John Ericson authored
Done according to @phosek's comments in D117537, but not done then to separate pure refactor (that) from possible behavior change (this). Wasn't working before, but I think that was due to an issue of mismatched variable names fixed in D110005. Reviewed By: phosek, #libunwind, #libc_abi Differential Revision: https://reviews.llvm.org/D117833
-
Nick Desaulniers authored
As part of re-architecting callbr to no longer use blockaddresses (https://reviews.llvm.org/D129288), we don't really need them in MIR. They make comparing MachineBasicBlocks of indirect targets during MachineVerifier a PITA. Suggested by @efriedma from the discussion: https://reviews.llvm.org/D130290#3669531 Reviewed By: efriedma, void Differential Revision: https://reviews.llvm.org/D130316
-
David Penry authored
This reverts commit 8c4aea43. Needed because buildbot failures (warnings) gave a clue that there was a functional bug in the ARM rejection logic. Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D132037
-
Jim Kitchen authored
Implement the new sparse_tensor.reduce operation which accepts a starting identity value and a code block describing how to perform the reduction. Reviewed by: aartbik Differential Revision: https://reviews.llvm.org/D130573
-
Sotiris Apostolakis authored
Remove a test that relied on the underlying instruction latency modeling. Such dependency blocks efforts such as D79483 to improve this cost modeling. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D132029
-
Arthur Eubanks authored
To speedup builds/tests.
-
Mats Petersson authored
There are some of this supported in various places, but the basic conversion of single operations to LLVM was not supported. Adding this to allow Flang to use these. Reviewed By: bondhugula Differential Revision: https://reviews.llvm.org/D131912
-
- Aug 17, 2022
-
-
Mark de Wever authored
While working on D129964 I noticed some code hadn't been uglyfied, this rectifies the issue. Depends on D129964 Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D131834
-