- Dec 07, 2020
-
-
Nathan James authored
Using bools instead of integers better conveys the expected value of the option. Reviewed By: Eugene.Zelenko, aaron.ballman Differential Revision: https://reviews.llvm.org/D92652
-
Sam McCall authored
Previously, loading one from a file meant allowing the library to do the IO. Clangd would prefer to do such IO itself (e.g. to allow caching). Differential Revision: https://reviews.llvm.org/D92640
-
Georgii Rymar authored
This rewrites the logic to get rid of "ELFSymbolRef" API where possible. This allowed to handle possible errors better, improve warnings reported and add new ones. Also 'reportWarning' was replaced with 'reportUniqueWarning' Differential revision: https://reviews.llvm.org/D92545
-
Sam McCall authored
-
Sam McCall authored
-
Max Kazantsev authored
-
Kazushi (Jam) Marukawa authored
Add vrcp, vrsqrt, vcvt, vmrg, and vshf intrinsic instructions and regression tests. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D92750
-
Pedro Tammela authored
LLDB is ignoring compilation errors for one-line breakpoint scripts. This patch fixes the issues and now the error message of the ScriptInterpreter is shown to the user. I had to remove a new-line character for the Lua interpreter since it was duplicated. Differential Revision: https://reviews.llvm.org/D92729
-
Cullen Rhodes authored
Shuffle mask for concat can't be expressed for scalable vectors, so we should bail out. A test has been added that previously crashed, also tested isIdentityWithPadding and isIdentityWithExtract where we already bail out. Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D92475
-
Cullen Rhodes authored
Since the length of the llvm::SmallVector shufflemask is related to the minimum number of elements in a scalable vector, it is fine to just get the Min field of the ElementCount. This is already done for the similar function changesLength, tests have been added for both. Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D92472
-
Qiu Chaofan authored
As Power9 introduced hardware support for IEEE quad-precision FP type, the feature should be enabled by default on Power9 or newer targets. Reviewed By: steven.zhang Differential Revision: https://reviews.llvm.org/D90213
-
Kazushi (Jam) Marukawa authored
Add vfmad, vfmsb, vfnmad, and vfnmsb intrinsic instructions and regression tests. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D92697
-
Michał Górny authored
The @expectedFailureAll(compiler="clang") decorator works correctly on FreeBSD these days, so it is sufficient.
-
Sam McCall authored
We don't act as a language server for these files (e.g. don't get open/close notifications for them), but just blindly publish diagnostics for them. This works reasonably well in coc.nvim and vscode: they show up in the workspace diagnostic list and when you open the file. The only update after the file is reparsed, not as you type which is a bit janky, but seems a lot better than nothing. Fixes https://github.com/clangd/clangd/issues/614 Differential Revision: https://reviews.llvm.org/D92704
-
Haojian Wu authored
Differential Revision: https://reviews.llvm.org/D92157
-
Hafiz Abid Qadeer authored
Currently, Baremetal toolchain requires user to pass a sysroot location using a --sysroot flag. This is not very convenient for the user. It also creates problem for toolchain vendors who don't have a fixed location to put the sysroot bits. Clang does provide 'DEFAULT_SYSROOT' which can be used by the toolchain builder to provide the default location. But it does not work if toolchain is targeting multiple targets e.g. arm-none-eabi/riscv64-unknown-elf which clang is capable of doing. This patch tries to solve this problem by providing a default location of the toolchain if user does not explicitly provides --sysroot. The exact location and name can be different but it should fulfill these conditions: 1. The sysroot path should have a target triple element so that multi-target toolchain problem (as I described above) could be addressed. 2. The location should not be $TOP/$Triple as this is used by gcc generally and will be a problem for installing both gcc and clang based toolchain at the same location. Reviewed By: jroelofs Differential Revision: https://reviews.llvm.org/D92677
-
Oliver Stannard authored
On some of the slow or heavily-loaded bots, this test was failing intermittently because the infinite_loop.py script might not emit anything to stdout before the 1 second timeout, so the "Command Output" line isn't present in the output. That output isn't really important to this test, we just care that the process is killed, so we can just rmove that check line from the test. Differential revision: https://reviews.llvm.org/D92563
-
Michał Górny authored
The test is skipped/xfailing on all platforms, so it seems that the API got out of sync. Fix that so it returns to a 'proper' failure on FreeBSD. Differential Revision: https://reviews.llvm.org/D92746
-
Michał Górny authored
Copy the Linux implementation of GetLoadedModuleFileSpec() and GetFileLoadAddress() into NativeProcessFreeBSD. This does not seem to change anything at the moment but reducing the differences between the plugins should help us in the long term. Differential Revision: https://reviews.llvm.org/D92314
-
Michał Górny authored
Explicitly consider the libraries reported on the initial eTakeSnapshot action added, through adding them to the added soentry list in DYLDRendezvous::SaveSOEntriesFromRemote(). This is necessary on FreeBSD since the dynamic loader issues only a single 'consistent' state rendezvous breakpoint hit for all the libraries present in DT_NEEDED (while Linux issues an added-consistent event pair). Reenable memory maps on FreeBSD since this fixed the issue triggered by them. Differential Revision: https://reviews.llvm.org/D92187
-
Michał Górny authored
Force gdb-remote plugin when attaching using the derivatives of PlatformPOSIX class. This is consistent with the behavior for launching processes (via DebugProcess() method) and guarantees consistent plugin choice on FreeBSD. Differential Revision: https://reviews.llvm.org/D92667
-
Michał Górny authored
Differential Revision: https://reviews.llvm.org/D92740
-
Evgeny Leviant authored
Differential revision: https://reviews.llvm.org/D92304
-
Kazushi (Jam) Marukawa authored
Support SX Aurora VE by __clear_cache() function. This modification allows VE to run written data, e.g. clear_cache_test.c under compiler-rt test. We still have code alignment problem in enable_execute_stack_test.c, though. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D92703
-
Pavel Labath authored
Now that the class does not use a thread, the name is no longer appropriate. Rename the class to "Server" and make it a long-lived object (instead of recreating it for every expect_gdbremote_sequence call). The idea is to make this class a wrapper for all communication with debug/lldb-server. This will enable some additional cleanups as we had some duplication between socket_pump non-pump code paths. Also squeeze in some small improvements: - use python-level timeouts on sockets instead of the manual select calls - use byte arrays instead of strings when working with raw packets
-
Pavel Labath authored
Reuse existing code to start server+inferior.
-
Pavel Labath authored
Reuse the existing code to launch a debug server + inferior.
-
Martin Storsjö authored
Add tests for this particular detail for x86 and arm (similar tests already existed for x86_64 and aarch64). The libssp implementation may be located in a separate DLL, and in those cases, the references need to be in a .refptr stub, to avoid needing to touch up code in the text section at runtime (which is supported but inefficient for x86, and unsupported for arm). Differential Revision: https://reviews.llvm.org/D92738
-
Mike Edwards authored
Patch provided by Tom Stellard <tstellar@redhat.com>
-
Esme-Yi authored
Summary: This patch added support for the intrinsics llvm.ppc.dcbfps and llvm.ppc.dcbstps. dcbfps and dcbstps are actually extended mnemonics of dcbf. dcbfps RA,RB ---> dcbf RA,RB,4 dcbstps RA,RB ---> dcbf RA,RB,6 Reviewed By: amyk, steven.zhang Differential Revision: https://reviews.llvm.org/D91323
-
Sourabh Singh Tomar authored
Some Ops in OMP dialect have regions associated with them i.e `ParallelOp` `MasterOp`. Lowering of these regions involves interfacing with `OMPIRBuilder` using callbacks, yet there still exist opportunities for sharing common code in between. This patch factors out common code into a separate function and adds support for lowering `MasterOp` using that. Lowering of `ParallelOp` is also modified appropriately. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D87247
-
Fangrui Song authored
-
Fangrui Song authored
Notes about some declarations: * clang::Sema::endsWithnarrowing: deleted by rC148381 * clang::Sema::ConvertIntegerToTypeWarnOnOverflow: deleted by rC214678 * clang::Sema::FreePackedContext: deleted by rC268085 * clang::Sema::ComputeDefaulted*: deleted by rC296067
-
Zi Xuan Wu authored
This introduce basic tablegen infra such as CSKY{InstrFormats,InstrInfo,RegisterInfo,}.td. For now, only add instruction definitions for basic CSKY ISA operations, and the instruction format and register info are almost complete. Our initial target is a working MC layer rather than codegen, so appropriate SelectionDAG patterns will come later. Differential Revision: https://reviews.llvm.org/D89180 -
Qiu Chaofan authored
A simple SELECT is used for converting i1 to floating types on ppc32, but in constrained cases, the chain is not handled properly. This patch will fix that. Reviewed By: steven.zhang Differential Revision: https://reviews.llvm.org/D92365
-
Jun Ma authored
Differential Revision: https://reviews.llvm.org/D92462
-
Bing1 Yu authored
In previous code, when refineIndexType(...) is called and Index is undef, Index.getOperand(0) will raise a assertion fail. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D92548
-
Pavel Iliin authored
Differential Revision: https://reviews.llvm.org/D92724
-
Fangrui Song authored
-
Fangrui Song authored
Notes: * llvm::createAsmStreamer: it has been moved to TargetRegistry.h * (anon ns)::WasmObjectWriter::updateCustomSectionRelocations: remnant of D46335 * COFFAsmParser::ParseSEHRegisterNumber: remnant of D66625 * llvm::CodeViewContext::isValidCVFileNumber: accidentally added by r279847
-