- Sep 20, 2022
-
-
Nikita Popov authored
-
Blue Gaston authored
[Sanitizer] Bump macOS deployment target for sanitizer unit test binary to support C++17 requirements. This patch fixes a test failure on Apple caused by changing standard to c++17. sanitizer_allocator_test.cpp requires language features introducied in 10.13 for c++17. After initial investigation, it was not clear how to add this flag to a single file: https://reviews.llvm.org/D133878 Becuase of this, we have upped the min version of this test suite to 10.13, the min version necessary to support necessary language features. We felt this was a better option than upping the min version of the product to support a single test. We are raising deployment target for a single test suite, rather than the product. Differential Revision: https://reviews.llvm.org/D134091 rdar://98737270
-
Tim Northover authored
AArch64 MachO has a compact unwind format where most functions' unwind info can be represented in just 4 bytes. But this cannot represent any asynchronous CFI function, so it's essentially disabled when that's used. This is a large code-size hit that we'd rather not take unless explicitly requested.
-
Tim Northover authored
-
Martin Storsjö authored
This was missed in 365d0a5c.
-
Simon Pilgrim authored
-
Dmitri Gribenko authored
-
David Spickett authored
This happens if the type is described elsewhere in target xml as a <flags> or <struct>. Also hardcode the function names into the log messages because if you use __FUNCTION__ in a lambda you just get "operator()". Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D134043
-
David Spickett authored
This is the first step to being able to handle non trivial types in the union. info_type effects the lifetime of the objects in the union, so making it private means we know you have to call one of the Set<...> functions to change it. Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D134039
-
Dmitry Polukhin authored
Update ReleaseNotes about a crash fix (Issue 53628) Test Plan: none Differential Revision: https://reviews.llvm.org/D134112
-
David Spickett authored
So that the XML isn't one giant line. Which wasn't a problem for lldb but was for me trying to troubleshoot it using the logs. It now looks like: ``` <?xml version="1.0"?> <target version="1.0"> <architecture>aarch64</architecture> <feature> <...> <reg name="fpcr" .../> </feature> </target> ``` Reviewed By: labath Differential Revision: https://reviews.llvm.org/D134035 -
Caroline Concatto authored
Remove from the function name the predicate type and pointer type, because: The predicate type in the name(nxvNi1) can be deduced from the overloaded element count(nxvNEltTy). The pointer type(p0EltTy) can be deduced from the overloaded element type. Differential Revision: https://reviews.llvm.org/D133023
-
John McIver authored
The package distutils is deprecated and removal is planned for Python 3.12. All calls to distutils.spawn.find_executable are replaced with shutil.which. Differential Revision: https://reviews.llvm.org/D134015
-
Jean Perier authored
Allocatable assignments were triggering lowering to clean-up any WHERE mask temporaries, even if some assignments where left in the WHERE construct. This is because allocatable assignments lowering was being passed the wrong statement context. Fix this by selecting the where/forall statement context instead of a local one when there is one. Differential Revision: https://reviews.llvm.org/D134197
-
eopXD authored
When the IV is only used by the terminating condition (say IV-A) and the loop has a predictable back-edge count and we have another IV (say IV-B) that is an affine add recursion, we will be able to calculate the terminating value of IV-B in the loop pre-header. This patch adds attempts to replace IV-B as the new terminating condition and remove IV-A. It is safe to do so since IV-A is only used as the terminating condition. This transformation is suitable to be appended after LSR as it may optimize the loop into the situation mentioned above. The transformation can reduce number of IV-s in the loop by one. A cli option `lsr-term-fold` is added and default disabled. Reviewed By: mcberg2021, craig.topper Differential Revision: https://reviews.llvm.org/D132443
-
Jean Perier authored
The TARGET argument of ASSOCIATED has a special lowering to deal with POINTER and ALLOCATABLE optional actual arguments because they may be dynamically absent. The previous code was doing a ternary (mlir::SelectOp) to deal with this case, but generated invalid code for the unused argument (loading a nullptr fir.ref<fir.box>). This was not detected until D133779 was merged and modified how fir.load are lowered to LLVM for fir.box types. Replace the select by a proper if to prevent the fir.load from being reachable in context where it should not. Differential Revision: https://reviews.llvm.org/D134174
-
LLVM GN Syncbot authored
-
Nikolas Klauser authored
It's been one and a half months now and nobody said anything, so I guess this code can be removed. Reviewed By: ldionne, #libc Spies: Mordante, libcxx-commits, mgorny, mstorsjo Differential Revision: https://reviews.llvm.org/D132943
-
Nikolas Klauser authored
Using the `enable_if_t<..., int> = 0` style has the benefit that it works in all cases and makes function declarations easier to read because the function arguments and return type and SFINAE are separated. Unifying the style also makes it easier for people not super familiar with SFINAE to make sense of the code. Reviewed By: Mordante, var-const, #libc, huixie90 Spies: huixie90, libcxx-commits Differential Revision: https://reviews.llvm.org/D131868
-
Mateusz Mikuła authored
Otherwise LLVM will optimise strrchr into memrchr on Windows resulting in linker error: ``` $ cat memrchr_test.c int main(int argc, char **argv) { return (long)strrchr("KkMm", argv[argc-1][0]); } $ clang memrchr_test.c -O memrchr_test.c:3:12: warning: cast to smaller integer type 'long' from 'char *' [-Wpointer-to-int-cast] return (long)strrchr("KkMm", argv[argc-1][0]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. ld.lld: error: undefined symbol: memrchr >>> referenced by D:/msys64/tmp/memrchr_test-e7aabd.o:(main) clang: error: linker command failed with exit code 1 (use -v to see invocation) ``` Example taken from MSYS2 Discord and tested with windows-gnu target. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D134134 -
Alvin Wong authored
Control Flow Guard requires specific flags and VA's be included in the load config directory to be functional. In case CFGuard is enabled via linker flags, we can check to make sure this is the case and give the user a warning if otherwise. MSVC provides a proper `_load_config_used` by default, so this is more relevant for the MinGW target in which current versions of mingw-w64 does not provide this symbol. The checks (only if CFGuard is enabled) include: - The `_load_config_used` struct shall exist. - Alignment of the `_load_config_used` struct (shall be aligned to pointer size.) - The `_load_config_used` struct shall be large enough to contain the required fields. - The values of the following fields are checked against the expected values: - GuardCFFunctionTable - GuardCFFunctionCount - GuardFlags - GuardAddressTakenIatEntryTable - GuardAddressTakenIatEntryCount - GuardLongJumpTargetTable - GuardLongJumpTargetCount - GuardEHContinuationTable - GuardEHContinuationCount Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D133099
-
Alvin Wong authored
Import thunks themselves contain a jump or branch, which is code by nature. Therefore the import thunk symbol should be marked as function type in the symbol table to help with debugging. The `__imp_` import symbol associated to the import thunk is also useful for debugging. However, when the import symbol isn't directly referenced outside of the import thunk, it doesn't normally get added to the symbol table. This change teaches LLD to add the import symbol explicitly. Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D134169
-
Martin Storsjö authored
When invoking the preprocessor, llvm-windres produces a mingw triple; if the llvm default target triple is a mingw target, it is used as is - if not, a mingw style triple is generated. Relax the testcase, to not strictly require "w64" as vendor (allow the vendor field to be missing entirely), and allow both "mingw32" and "windows-gnu" as OS/environment (where both forms are common, while the latter is the normalized form). Differential Revision: https://reviews.llvm.org/D134148
-
Michał Górny authored
Disable transformations (e.g. attempting to replace target architecture) in the config filename that is passed explicitly via `--config`. This behavior is surprising and confusing -- if user passes an explicit config filename, Clang should use it as is. The transformations are still applied when the name is deduced from filename. Update the tests accordingly. This primarily ensures that full filename with .cfg suffix is passed to --config (appending `.cfg` implicitly is not documented, and would collide with use of filenames with other suffixes). The config-file2.c suite is removed entirely as it tested the transformations on the argument to --config. However, the aspects of that that were not tested as part of config-file3.c are now added there (based on config filename deduced from executable). This change streamlines the code in Driver::loadConfigFile(), opening the possibility of further changes, including support for handling multiple --config options and refactoring of filename deduction. Differential Revision: https://reviews.llvm.org/D134208
-
wlei authored
-
Jonas Devlieghere authored
In January, Greg put up a patch (D117382) to support, among other things, more than 32 log categories. That led to a bunch of nice cleanups, but categories remained constrained because different parts of the code were still using uint32_t. This patch fixes the remaining issues and makes it possible to add a 32nd log category. Differential revision: https://reviews.llvm.org/D134245
-
Serge Pavlov authored
The change add support for the cases when return value is passed in memory rathen than in registers. Differential Revision: https://reviews.llvm.org/D134181
-
Jonathon Penix authored
Currently, the FORT_CONVERT environment variable has the highest priority when setting the endianness conversion for unformatted files. In discussing the appropriate priority for the fconvert option, convert specifiers were decided to take highest priority. This patch also initializes the open statement convert state to unknown to disambiguate cases where the convert specifier was not provided from cases where convert=native was set. This makes it possible to defer to the environment setting where appropriate. Differential Revision: https://reviews.llvm.org/D133237
-
luxufan authored
Differential Revision: https://reviews.llvm.org/D134160
-
luxufan authored
Differential Revision: https://reviews.llvm.org/D134162
-
eopXD authored
Pre-commit test for D132443 Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D132452
-
Ron Lieberman authored
breaks amdgpu buildbot
-
Phoebe Wang authored
When passing arguments with `__fastcall` or `__vectorcall` in 32-bit MSVC, the following arguments have chance to be passed by register if the current one failed. `__regcall` from ICC is on the contrary: https://godbolt.org/z/4MPbzhaMG All the three calling conversions are not supported in GCC. Fixes: #57737 Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D133920
-
Vitaly Buka authored
Origin handling is not implemented yet. Reviewed By: kda Differential Revision: https://reviews.llvm.org/D133682
-
Jonas Devlieghere authored
Fix error C2027: use of undefined type 'llvm::MemoryBuffer'.
-
Jennifer Yu authored
This is for the change of Differential Revision: https://reviews.llvm.org/D134186
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
-