- Jul 21, 2021
-
-
Dmitry Vyukov authored
Patch "sanitizer_common: modernize SpinMutex" added default ctor to StaticSpinMutex. But it broke some gcc bots with: scudo_tsd_exclusive.cpp:25:22: error: non-local variable ‘__scudo::TSD’ declared ‘__thread’ needs dynamic initialization https://lab.llvm.org/buildbot/#/builders/105/builds/12649 Unfortunatly none of empty ctor {}, no ctor, default constexpr ctor work for different reasons. So remove StaticSpinMutex ctor entirely and move deleted copy ctor back to SpinMutex. Differential Revision: https://reviews.llvm.org/D106424
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D106366
-
Balázs Kéri authored
The checker warns if a stream is read that is already in end-of-file (EOF) state. The commit adds indication of the last location where the EOF flag is set on the stream. Reviewed By: Szelethus Differential Revision: https://reviews.llvm.org/D104925
-
Dmitry Vyukov authored
Some minor improvements: 1. Make StaticSpinMutex non-copyable. 2. Add LIKELY to Lock. 3. Move LockSlow into the .cpp file (now that we have it). 4. The only non-trivial change: use proc_yield(1) instread of proc_yield(10) with the proportional increase in the number of spin iterations. Latency of the PAUSE instruction has raised from ~1 cycle to ~100 cycles in the recent Intel CPUs. So proc_yield(10) is too aggressive backoff. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D106350
-
Mark de Wever authored
The file was created by libcxx/utils/generate_private_header_tests.py.
-
Mark de Wever authored
This replaces _LIBCPP_INLINE_VISIBILITY with _LIBCPP_HIDE_FROM_ABI. It's not intended to do for other parts of libc++. This change makes it easy to search and replace all occurrences of the patches in review.
-
Lang Hames authored
This reverts commit d4abdefc ("[ORC-RT] Rename macho_tlv.x86-64.s to macho_tlv.x86-64.S (uppercase suffix)", and a7733e95 ("Re-apply "[ORC][ORC-RT] Add initial native-TLV support to MachOPlatform."), while I investigate failures on ccache builders (e.g. https://lab.llvm.org/buildbot/#/builders/109/builds/18981)
-
Siva Chandra Reddy authored
Since exceptions like FE_DIVBYZERO can raise FE_INEXACT, we need to ensure that we don't raise FE_DIVBYZERO (or others which can also raise FE_INEXACT) when FE_INEXACT is enabled.
-
Lang Hames authored
Uppercase .S suffixes for assembly seem to be the convention in compiler-rt. I'm hoping this will fix the build failures on ccache builders (e.g. https://lab.llvm.org/buildbot/#/builders/109/builds/18980)
-
Lang Hames authored
Reapplies fe1fa43f, which was reverted in 6d8c6394, with fixes: 1. Remove .subsections_via_symbols directive from macho_tlv.x86-64.s (it's not needed here anyway). 2. Return error from pthread_key_create to the MachOPlatform to silence unused variable warning.
-
Siva Chandra Reddy authored
This new matcher does not use death tests to check if SIGFPE is raised. Instead, that a SIGFPE was raised is checked using a SIGFPE signal handler. Reviewed By: mcgrathr Differential Revision: https://reviews.llvm.org/D106086
-
Chia-hung Duan authored
We are able to bind NativeCodeCall result as binding operation. To make table-gen have better understanding in the form of helper function, we need to specify the number of return values in the NativeCodeCall template. A VoidNativeCodeCall is added for void case. Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D102160
-
Tianqing Wang authored
If a CMOV is in a loop and is converted to branches, CMOV conversion wouldn't add newly created basic blocks to loop info. Since the candidates is collected based on loops, instructions in these basic blocks will be ignored. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D104623
-
peter klausler authored
One test's expected output needs adjustment, and one new compiler warning needs to be silenced.
-
Ben Shi authored
These tests will show the following optimization by future patches. (mul x, 11) -> (SH1ADD (SH2ADD x, x), x) (mul x, 19) -> (SH1ADD (SH3ADD x, x), x) (mul x, 13) -> (SH2ADD (SH1ADD x, x), x) (mul x, 21) -> (SH2ADD (SH2ADD x, x), x) (mul x, 37) -> (SH2ADD (SH3ADD x, x), x) (mul x, 25) -> (SH3ADD (SH1ADD x, x), x) (mul x, 41) -> (SH3ADD (SH2ADD x, x), x) (mul x, 73) -> (SH3ADD (SH3ADD x, x), x) Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D106031
-
Vitaly Buka authored
With ifdefs they make code less readable.
-
Vitaly Buka authored
-
Hsiangkai Wang authored
I missed to add half-precision FP types for vle16/vse16 in the previous patches. Added them in this patch. Differential Revision: https://reviews.llvm.org/D106340
-
Alexander Yermolovich authored
Fix build for https://reviews.llvm.org/D106198 when -DBUILD_SHARED_LIBS=ON. Test Plan: Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D106414
-
Jacques Pienaar authored
-
Stella Laurenzo authored
libMLIRPublicAPI.so came into existence early when the Python and C-API were being co-developed because the Python extensions need a single DSO which exports the C-API to link against. It really should never have been exported as a mondo library in the first place, which has caused no end of problems in different linking modes, etc (i.e. the CAPI tests depended on it). This patch does a mechanical move that: * Makes the C-API tests link directly to their respective libraries. * Creates a libMLIRPythonCAPI as part of the Python bindings which assemble to exact DSO that they need. This has the effect that the C-API is no longer monolithic and can be subset and used piecemeal in a modular fashion, which is necessary for downstreams to only pay for what they use. There are additional, more fundamental changes planned for how the Python API is assembled which should make it more out of tree friendly, but this minimal first step is necessary to break the fragile dependency between the C-API and Python API. Downstream actions required: * If using the C-API and linking against MLIRPublicAPI, you must instead link against its constituent components. As a reference, the Python API dependencies are in lib/Bindings/Python/CMakeLists.txt and approximate the full set of dependencies available. * If you have a Python API project that was previously linking against MLIRPublicAPI (i.e. to add its own C-API DSO), you will want to `s/MLIRPublicAPI/MLIRPythonCAPI/` and all should be as it was. There are larger changes coming in this area but this part is incremental. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D106369
-
Vitaly Buka authored
-
Vitaly Buka authored
Replaced with %adb_shell cat.
-
Vitaly Buka authored
"/" needs to be removed to avoid making absolute path.
-
Jon Roelofs authored
Differential revision: https://reviews.llvm.org/D105953
-
Geoffrey Martin-Noble authored
-
peter klausler authored
A field in DescriptorAddendum became unused during a recent change but was not removed from the definition; it now elicits a legitimate warning that's affecting some buildbots. Remove it.
-
LLVM GN Syncbot authored
-
Alexander Yermolovich authored
This is a step1, mechanical refactor, of moving the bulk of llvm-dwp functionality in to a library. This should allow other tools, like BOLT, to re-use some of the llvm-dwp functionality. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D106198
-
Jon Roelofs authored
Differentail revision: https://reviews.llvm.org/D105382
-
Jon Roelofs authored
https://clang.godbolt.org/z/9az64j8W6 rdar://77466123 Differential revision: https://reviews.llvm.org/D105370
-
Hanhan Wang authored
This allows caller to use non-const functions, e.g., `getOperandNumber`, etc. It is expected that OpOperand is not modified in a callback function. Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D106322
-
Geoffrey Martin-Noble authored
This is the default and the argument is deprecated. The documentation indicating it's the default is only since 4.0 (https://docs.bazel.build/versions/4.0.0/skylark/lib/Label.html#Label), but looking at the code it has been the default since its introduction in https://bazel.googlesource.com/bazel/+/6f15335dea with Bazel 0.2.1 (https://bazel.googlesource.com/bazel/+show/0.2.1/CHANGELOG.md) Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D106411
-
Walter Erquinigo authored
Differential Revision: https://reviews.llvm.org/D106328
-
Lang Hames authored
Reverts commit fe1fa43f while I investigate failures on Linux.
-
Lang Hames authored
Adds code to LLVM (MachOPlatform) and the ORC runtime to support native MachO thread local variables. Adding new TLVs to a JITDylib at runtime is supported. On the LLVM side MachOPlatform is updated to: 1. Identify thread local variables in the LinkGraph and lower them to GOT accesses to data in the __thread_data or __thread_bss sections. 2. Merge and report the address range of __thread_data and thread_bss sections to the runtime. On the ORC runtime a MachOTLVManager class introduced which records the address range of thread data/bss sections, and creates thread-local instances from the initial data on demand. An orc-runtime specific tlv_get_addr implementation is included which saves all register state then calls the MachOTLVManager to get the address of the requested variable for the current thread.
-
Lang Hames authored
This will be used in upcoming MachO native TLV support patches to LLVM and the ORC runtime.
-
Lang Hames authored
LinkGraph::transferBlock can be used to move a block and all associated symbols from one section to another. LinkGraph::mergeSections moves all blocks and sections from a source section to a destination section.
-
Albion Fung authored
Implemented builtins for mtmsr, mfspr, mtspr on PowerPC; the patch is intended for XL Compatibility. Differential revision: https://reviews.llvm.org/D106130
-
Aditya Nandakumar authored
[NFC][AssemblyWriter] Allow AssemblyWriter::printBasicBlock() to print blocks that don't have parents. Remove the assert in AssemblyWriter::printBasicBlock() and in BasicBlock::isEntryBlock() that require blocks to have parents. Instead, have BasicBlock::isEntryBlock() return false for unattached blocks. This allows us to call these functions for blocks that are not yet added to a module which is a useful debugging capability. Committing for xiaoqing_wu https://reviews.llvm.org/D106127k
-