- Mar 10, 2020
-
-
Marcello Maggioni authored
Spiller.h had indentation that doesn't match LLVM guidelines. Fixing it Reviewers: qcolombet, arsenm Subscribers: MatzeB, wdng, hiraditya, llvm-commits, qcolombet Tags: #llvm Differential Revision: https://reviews.llvm.org/D75830
-
Marcello Maggioni authored
This allows Spiller.h to be used and included outside of the lib/CodeGen directory. For example to be used in the lib/Target directory or other places.
-
Nikita Popov authored
When simplifying a call without uses, replaceInstUsesWith() is going to do nothing, but we'll skip all following folds. We can only run into this problem with calls that both simplify and are not trivially dead if unused, which currently seems to happen only with calls to undef, as the test diff shows. When extending SimplifyCall() to handle "returned" attributes, this becomes a much bigger problem, so I'm fixing this first. Differential Revision: https://reviews.llvm.org/D75814
-
Nikita Popov authored
As pointed out by jdoerfert on D75815, we must be careful when simplifying musttail calls: We can only replace the return value if we can eliminate the call entirely. As we can't make this guarantee for all consumers of InstSimplify, this patch disables simplification of musttail calls. Without this patch, musttail simplification currently results in module verification errors. Differential Revision: https://reviews.llvm.org/D75824
-
Jeremy Stenglein authored
Clang is missing a warning for builtin_return_address/builtin_frame_address called with > 0 argument. Gcc provides a warning for this via -Wframe-address: https://gcc.gnu.org/onlinedocs/gcc/Return-Address.html As calling these functions with argument > 0 has caused several crashes for us, we would like to have the same warning as gcc here. This diff adds the warning and makes it part of -Wmost. Differential Revision: https://reviews.llvm.org/D75768
-
Jonathan Coe authored
Summary: C# treats object initializers as braced init blocks. Braced init blocks are no longer indented as continuations. Reviewers: krasimir Reviewed By: krasimir Subscribers: cfe-commits Tags: #clang-format, #clang Differential Revision: https://reviews.llvm.org/D75731
-
Nicolas Vasilache authored
Summary: This op mirrors the llvm.intr counterpart and allows lowering + type conversions in a progressive fashion. Differential Revision: https://reviews.llvm.org/D75775
-
Jonathan Roelofs authored
... and deprecate use of ',' for the same. https://reviews.llvm.org/D75621
-
-
Jonathan Coe authored
Summary: Fix typo in comment. Add closing brace to test text. Reviewers: krasimir Subscribers: cfe-commits Tags: #clang-format, #clang Differential Revision: https://reviews.llvm.org/D75856
-
Nicolas Vasilache authored
Summary: This will support the progressive lowering of: ``` vector.contract -> downcast + vector.matrix_multiply + upcast -> llvm.intr.matrix ``` Differential Revision: https://reviews.llvm.org/D75776 -
Nicolas Vasilache authored
Summary: This revision adds intrinsics for transpose, columnwise.load and columnwise.store achieving full coverage of the llvm.matrix intrinsics. Differential Revision: https://reviews.llvm.org/D75852
-
Jonas Devlieghere authored
GetUnwinder now returns a reference instead of a pointer.
-
Nicolas Vasilache authored
Summary: This is the counterpart of VectorOfLength for ranks. This will be used in lowering vector.contract operations to llvm.matrix Differential Revision: https://reviews.llvm.org/D75771
-
Michael Kruse authored
Use of std::-style (io)streams is discouraged in the LLVM coding style (https://llvm.org/docs/CodingStandards.html#include-iostream-is-forbidden). Replace with a use of llvm::Twine (which uses llvm::raw_ostream behind the scenes).
-
aartbik authored
Summary: This way, clients can opt-out of the GDB notification listener. Also, this changes the semantics of enabling the object cache, which seemed the wrong way around. Reviewers: rriddle, nicolasvasilache, ftynse, andydavis1 Reviewed By: nicolasvasilache Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D75787
-
Mikhail Maltsev authored
Summary: This patch implements feature test macros for the CDE extension according to the upcoming ACLE specification. The following 2 macros are being added: - __ARM_FEATURE_CDE - defined as '1' when any coprocessor is configured as a CDE coprocessor - __ARM_FEATURE_CDE_COPROC - defined as an 8-bit mask, each bit of the mask corresponds to a coprocessor and is set when the corresponding coprocessor is configured as CDE (and cleared otherwise). The patch also exposes the value of __ARM_FEATURE_CDE_COPROC in the target-independent method TargetInfo::getARMCDECorpocMask, the method will be used in follow-up patches implementing semantic checks of CDE intrinsics (we want to diagnose the cases when CDE intrinsics are used with coprocessors that are not configured as CDE). Reviewers: simon_tatham, dmgreen, ostannard, MarkMurrayARM Reviewed By: simon_tatham Subscribers: kristof.beyls, danielkiss, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D75843
-
Shiva Chen authored
The patch fixes some typos and introduces ReadFMemBase, ReadFSGNJ32, ReadFSGNJ64, WriteFSGNJ32, WriteFSGNJ64, ReadFMinMax32, ReadFMinMax64, WriteFMinMax32, WriteFMinMax64, so the target CPU with different pipeline model could use them to describe latency. Differential Revision: https://reviews.llvm.org/D75515
-
Jay Foad authored
-
LLVM GN Syncbot authored
-
Jonas Devlieghere authored
This breaks the modules build: http://green.lab.llvm.org/green/job/clang-stage2-Rthinlto/ http://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/ This reverts commit 57c964aa.
-
- Mar 09, 2020
-
-
Kirstóf Umann authored
Nothing exciting to see here! The new interface allows for more fine tuning (register but disable a checker, add custom checker registry functions, etc), that was basically the point. Differential Revision: https://reviews.llvm.org/D67335
-
Muhammad Omair Javaid authored
This patch forces architecture "arm" if underlying os reports core armv7l or armv8l. On linux systems 32 bit sysroot running on 64bit AArch64 hardware reports armv7l or armv8l which is essently arm 32bit mode. This fixes 5 testcases on 32bit arm.
-
Fangrui Song authored
``` createFiles(args) readDefsym readerLinkerScript(*mb) ... readMemory readMemoryAssignment("ORIGIN", "org", "o") // eagerly evaluated target = getTarget(); link(args) writeResult<ELFT>() ... finalizeSections() script->processSymbolAssignments() addSymbol(cmd) // with this patch, evaluated here ``` readMemoryAssignment eagerly evaluates ORIGIN/LENGTH and returns an uint64_t. This patch postpones the evaluation to make * --defsym and symbol assignments * `CONSTANT(COMMONPAGESIZE)` (requires a non-null `lld::elf::target`) work. If the expression somehow requires interaction with memory regions, the circular dependency may cause the expression to evaluate to a strange value. See the new test added to memory-err.s Reviewed By: grimar Differential Revision: https://reviews.llvm.org/D75763 -
Erich Keane authored
The initial implementation only did 'first declaration renaming' when a default version came after. This is insufficient in cases where a default does not exist, so this patch makes sure that we do the renaming in all cases. This renaming is necessary because we emit the first declaration before knowing that it IS a target multiversion function, which would change its name. The second declaration (the one that caused the multiversioning) then needs to make sure that the first one has its name changed to be consistent with the resolver usage.
-
Fangrui Song authored
[lld] Add .clang-tidy to customize readability-identifier-naming.{Member,Parameter,Variable}Case => camelBack lld/.clang-tidy is almost identical to the top-level .clang-tidy, with the aforementioned customization. Reviewed By: ruiu Differential Revision: https://reviews.llvm.org/D75809 -
Fangrui Song authored
https://bugs.llvm.org/show_bug.cgi?id=41910 The feature can disassemble data and the new option name reflects its more generic usage. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D75816
-
Pavel Labath authored
-
Fangrui Song authored
Reviewed By: grimar Differential Revision: https://reviews.llvm.org/D75798
-
Haojian Wu authored
CHANGELOG: - better ranking for completions - enable dot-to-arrow fix in code completion
-
Alexander Belyaev authored
-
Krzysztof Parzyszek authored
-
Pavel Labath authored
-
Adam Balogh authored
Most of the getter functions (and a reporter function) in `CheckerManager` are constant but not marked as `const`. This prevents functions having only a constant reference to `CheckerManager` using these member functions. This patch fixes this issue. Differential Revision: https://reviews.llvm.org/D75839
-
Thomas Rodgers authored
Summary: These were overlooked on an earlier uglification pass. Differential Revision: https://reviews.llvm.org/D60595
-
Pavel Labath authored
The function always returns a valid object. Let the return type reflect that, and remove some null checks.
-
Haojian Wu authored
Summary: The previous issue is that the item was filtered out by vscode, because the prefix (which contains ".") are not matched against the filterText. This patch works around it by adjusting the item filterText, inspired by https://reviews.llvm.org/D75623. Reviewers: sammccall Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D75739
-
James Henderson authored
If the minimum_instruction_length of a debug line program is 0, no address advancing via special opcodes, DW_LNS_const_add_pc, and DW_LNS_advance_pc can occur, since the minimum_instruction_length is used in a multiplication. This patch adds a warning reporting when this issue occurs. Reviewed by: probinson Differential Revision: https://reviews.llvm.org/D75189
-
James Henderson authored
The line_range value of a debug line program header is used in divisions related to special opcodes and DW_LNS_const_add_pc opcodes. As such, a value of 0 cannot be used. This change introduces a new warning, if such a situation is identified, and does not perform the relevant calculations. Reviewed by: probinson, aprantl Differential Revision: https://reviews.llvm.org/D43470
-
James Henderson authored
This patch adds a check which reports an unsupported value of the maximum_operations_per_instruction field in a debug line table header. This is reported once per line table, at most, and only if the tablet would otherwise need to use it (i.e. never for tables with version 3 or less, or for tables which don't use DW_LNS_const_add_pc or special opcodes). Unsupported values are currently any apart from 1. Reviewed by: probinson, MaskRay Differential Revision: https://reviews.llvm.org/D74819
-