- Apr 11, 2023
-
-
Valentin Clement authored
After the extraction of the TypeConverter, move the header files to the include dir so the shared library build is fine. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D147979
-
Nathan James authored
Remove calls to the `allOf` matcher in all matchers that are derived from the `VariadicDynCastAllOfMatcher`.
-
Caslyn Tonelli authored
Swab implementation is added to libc/src/unistd. Differential Revision: https://reviews.llvm.org/D147970
-
Haowei Wu authored
This patch makes llvm-ifs print an error when the arch string from '--arch' flag or the IFS file 'Arch' field is unknown. Differential Revision: https://reviews.llvm.org/D146672
-
Craig Topper authored
Not all paths through this function require the reference count to be incremened. Pass by reference so we don't increase the count unnecessarily.
-
Valentin Clement authored
Add missing pieces to translate handle OpenACC dialect in the translation. Depends on D147825 Reviewed By: PeteSteinfeld, razvanlupusoru Differential Revision: https://reviews.llvm.org/D147828
-
Martin Storsjö authored
Previously, all the output from the tests were placed directly in the build directory. The tests produce a couple directories named `__config_{exec,cache,src}__` which are easy to distinguish, and the output from the individual tests were placed directly in a directory named `Output`. This is the same change as 736c6e24, but for the libcxxabi and libunwind test suites. Differential Revision: https://reviews.llvm.org/D147628 -
Balaji V. Iyer authored
Floorf are pushed directly to libm. This is problematic for situations where libm is not available. This patch will break down a floorf function to truncate followed by an increment for negative values, if necessary. Reviewed By: rsuderman Differential Revision: https://reviews.llvm.org/D147966
-
Martin Storsjö authored
Don't hardcode the vendor field in the triples to "pc"; for mingw environments the triple is often "<arch>-w64-windows-gnu". Differential Revision: https://reviews.llvm.org/D147862
-
Martin Storsjö authored
This fixes linker errors in mingw configurations, where the ubsan runtime needs the C++ standard library when instrumenting C++ code. Differential Revision: https://reviews.llvm.org/D147861
-
Martin Storsjö authored
When instrumenting C++ code, ubsan ends up referencing the ubsan_type_hash_* object files, which require linking against the C++ ABI library. When building with "clang -x c++", the code is handled as C++, but the compiler still only links as if it was C. Change all cases of "%clang -x c++" into "%clangxx -x c++". This fixes a lot of ubsan tests in mingw mode. Differential Revision: https://reviews.llvm.org/D147687
-
Martin Storsjö authored
The x86 assembly is entirely skipped for MSVC build configurations, since the assembly uses GAS syntax (which MSVC proper can't assemble, but clang-cl can). But for mingw configurations, the assembly is used. On x86_64 Windows, the general calling convention is entirely different than on other platforms (passing arguments in different registers), so we can't use this assembly for mingw targets (unless adapted to handle that calling convention). Thus skip these few assembly routines for Windows targets. (For i386, we can keep using the assembly functions.) This fixes the builtins tests that test these routines. They aren't used in practice though, as LLVM expands code inline for doing such conversions anyway. Differential Revision: https://reviews.llvm.org/D147685
-
Martin Storsjö authored
With current versions of mingw-w64, TLS destructors that are registered while executing TLS destructors are lost and leaked. The root cause does get fixed further upstream in mingw-w64 in https://github.com/mingw-w64/mingw-w64/commit/71eddccd746c56d9cde28bb5620d027d49259de9 though, but mark the test as unsupported for now. The marking can be removed later when the version used in the CI runner has been updated to include the fix. Differential Revision: https://reviews.llvm.org/D147859
-
Martin Storsjö authored
Mark it as unsupported on x86_64, arm and aarch64. On i686, DWARF is used as the default unwinding format, and there, the CFI directives are supported. Differential Revision: https://reviews.llvm.org/D147858
-
Martin Storsjö authored
This fixes the libcxxabi test force_unwind3.pass.cpp when run on native Windows. When unwinding past the main thread function into the system functions that brought up the thread, we can hit functions whose personality functions return ExceptionContinueExecution (instead of the regular ExceptionContinueSearch). Interpret this as a signal to stop the unwind. Curiously, in this case, it does return ExceptionContinueSearch if running within a debugger. Differential Revision: https://reviews.llvm.org/D147739
-
Martin Storsjö authored
For normal C++ unwinding, we get _dispContext initialized by the prepopulated DISPATCHER_CONTEXT in _GCC_specific_handler, which we set with __unw_seh_set_disp_ctx. When doing force unwinding, we step and populate the unw_proc_info_t struct _info with getInfoFromSEH, but when we execute the handler via the __libunwind_seh_personality wrapper function, we execute the handler set in DISPATCHER_CONTEXT. Whenever updating these fields in either _info or _dispContext, sync them to the other one too. This fixes one aspect of the libcxxabi force_unwind*.pass.cpp tests on x86_64. Differential Revision: https://reviews.llvm.org/D147637
-
Martin Storsjö authored
For x86_64 Windows targets (that use SEH), _LIBUNWIND_CURSOR_SIZE is 204; this fixes corruption in test cases that include libunwind.h without manually defining _LIBUNWIND_IS_NATIVE_ONLY. If the libunwind.h header is included without defining _LIBUNWIND_IS_NATIVE_ONLY (like in the libunwind test cases), the sizes are set to accommodate the maximum possible cursors and contexts. (Alternatively, __libunwind_config.h should be changed to default to native unwinding unless cross unwinding has been requested. Cross unwinding isn't implemented as far as I know anyway.) Differential Revision: https://reviews.llvm.org/D147634
-
Alex Langford authored
Also added some tests because this is completely untested. rdar://107780577 Differential Revision: https://reviews.llvm.org/D147841
-
Valentin Clement authored
This patch revive an old PR attempt [1] to perform the data operands conversion needed for translation to LLVMIR. This is currently not supporting box/class type since they will normally not reach this pass when the proposed change in this RFC [2] are implemented. [1] https://github.com/flang-compiler/f18-llvm-project/pull/915 [2] https://discourse.llvm.org/t/rfc-openacc-dialect-data-operation-improvements/69825/2 Depends on D147824 Reviewed By: PeteSteinfeld, razvanlupusoru Differential Revision: https://reviews.llvm.org/D147825
-
Florian Hahn authored
This was suggested as independent cleanup in D147472. This removes a redundant runtime VF computation when using scalable vectors.
-
Florian Hahn authored
Suggested as independent cleanup in D147567. Either VF or UF need to be > 1. Note that if the condition would be false, the code below would use a nullptr and crash.
-
Florian Hahn authored
Move the code to collect live-out earlier and only generate extracts for exit values if there are any live-outs that use them. Depends on D147472. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D147567
-
Valentin Clement authored
This reverts commit 68bcd647.
-
Valentin Clement authored
This reverts commit 03289dc7.
-
Carlos Galvez authored
Specifying checks as a string is convenient for quickly using clang-tidy to run a handful of checks. However it is not suitable for projects that have a long list of enabled or disabled checks. It is specially troublesome in case one wants to interleave comments with the checks, to explain why they are enabled or disabled. Currently this can be achieved via multiline strings in YAML, but it's error-prone. For example, comments must end with a comma for clang-tidy to continue processing the list of globs; a missing comma will make clang-tidy silently ignore the rest of the list. Instead, enable passing a native YAML list to the "Checks" option in the config file. The implementation is done such that the old behavior is kept: a user can pass a string or a list. We can consider deprecating passing the checks as a string altogether in a future release, to simplify the internal logic of the YAML parser. Fixes https://github.com/llvm/llvm-project/issues/51428 Differential Revision: https://reviews.llvm.org/D147876
-
Mircea Trofin authored
This helps training algorithms that may want to sometimes replicate the default decision. The default decision is presented as an extra feature called `inlining_default`. It's not normally exported to save computation time. This is only available in interactive mode. Differential Revision: https://reviews.llvm.org/D147794
-
Valentin Clement authored
Fix invalid op result access. This will trigger assertion introduced in D147883. Reviewed By: frgossen Differential Revision: https://reviews.llvm.org/D147959
-
Valentin Clement authored
Add missing pieces to translate handle OpenACC dialect in the translation. Depends on D147825 Reviewed By: PeteSteinfeld, razvanlupusoru Differential Revision: https://reviews.llvm.org/D147828
-
Valentin Clement authored
This patch revive an old PR attempt [1] to perform the data operands conversion needed for translation to LLVMIR. This is currently not supporting box/class type since they will normally not reach this pass when the proposed change in this RFC [2] are implemented. [1] https://github.com/flang-compiler/f18-llvm-project/pull/915 [2] https://discourse.llvm.org/t/rfc-openacc-dialect-data-operation-improvements/69825/2 Depends on D147824 Reviewed By: PeteSteinfeld, razvanlupusoru Differential Revision: https://reviews.llvm.org/D147825
-
Roy Jacobson authored
A bad QualType cast caused us not to detect _BigInt types if they were wrapped inside sugar types like SubstTemplateTypeParm. Fix https://github.com/llvm/llvm-project/issues/62019 Reviewed By: cjdb Differential Revision: https://reviews.llvm.org/D147904
-
Aiden Grossman authored
This patch adds in documentation for the --use-dummy-perf-counters option (introduced in D146301). Reviewed By: kpdev42 Differential Revision: https://reviews.llvm.org/D147842
-
ziqingluo-90 authored
[-Wunsafe-buffer-usage] Improve fix-its for local variable declarations with null pointer initializers For a local pointer declaration of the form `T * p = 0` or `T * p = std::nullptr`, Before this patch, we generate fix-its that convert the declaration to `std::span<T> p{nullptr, <# placeholder #>}`, in cases where `p` is used in some unsafe operations. This patch improves the fix-its to result in a simpler form `std::span<T> p`. It gets rid of the placeholder and keeps the result concise. Reviewed by: NoQ (Artem Dergachev) Differential Revision: https://reviews.llvm.org/D143680 -
Jordan Rupprecht authored
Followup to D147354. Using src/conditions is discouraged in favor of using rules from the `@platforms` repository directly. This replaces three conditions: * `@bazel_tools//src/conditions:windows` -> `@platforms//os:windows` * `@bazel_tools//src/conditions:darwin` -> `@platforms//os:macos` * `@bazel_tools//src/conditions:freebsd` -> `@platforms//os:freebsd` `llvm/config.bzl` has a non-trivial OS+CPU selection config, so that is omitted from this patch. There is intentionally no equivalent for that in `@platforms` because every project will have their own opinions about what a platform is, and it is not feasible for the bazel selection list to include every possible combination. The recommended idiom there is for projects to define their own supported platforms list, e.g. in a separate BUILD file or platform mapping. Reviewed By: GMNGeoffrey Differential Revision: https://reviews.llvm.org/D147948
-
Craig Topper authored
We don't need to copy the ChildVariants vector into a new vector. We're using std::move on every entry we copy so they clearly aren't needed again. We can swap entries in the vector and reuse it instead.
-
Nico Weber authored
-
Changpeng Fang authored
Summary: This is to avoid using the callee saved registers for the return address of the tail call return instruction. Reviewers: arsenm, cdevadas Differential Revision: https://reviews.llvm.org/D147096
-
Paul Kirth authored
Currently the driver does not propagate the `-f[no-]emulated-tls` flags to the linker under LTO. This can be surprising when the platform defaults differ from the flags being passed. A related discussion can be found in https://reviews.llvm.org/D143619. While the focus there was RISC-V support, the root cause was that setting `-femualted-tls` and `-flto` when compiling with Clang resulted in missing symbols because the platform defaults for Android differed from the flags being passed to Clang. This patch changes the Clang driver's behavior to pass the emulated-tls flags through to the linker when compiling with LTO/ThinLTO. Reviewed By: phosek, vit9696 Differential Revision: https://reviews.llvm.org/D147834
-
Nikolas Klauser authored
This file was added before we started granularizing the headers, but is essentially just a granularized header. This moves the header to the correct place. Reviewed By: #libc, EricWF Spies: libcxx-commits, arichardson, mikhail.ramalho Differential Revision: https://reviews.llvm.org/D146395
-
Augusto Noronha authored
Implement SymbolFile::GetCompileOptions, which returns a map from compilation units to compilation arguments associated with that unit. Differential Revision: https://reviews.llvm.org/D147748
-
Kazu Hirata authored
This patch fixes: mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp:1334:51: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] lld/wasm/Writer.cpp:250:39: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
-