- Apr 06, 2020
-
-
Raphael Isemann authored
-
Igor Kudrin authored
llvm-dwp did not check section identifiers read from input files. In the case of an unexpected identifier, the calculated index for Contributions[] pointed outside the array. This fix avoids the issue by skipping unsupported identifiers. Differential Revision: https://reviews.llvm.org/D76543
-
Kazuaki Ishizaki authored
Differential Revision: https://reviews.llvm.org/D77462
-
Guillaume Chatelet authored
Summary: Also updates files to use them. This is patch is part of a series to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this patch for the introduction of the type: https://reviews.llvm.org/D64790 Reviewers: courbet Subscribers: sdardis, hiraditya, jrtc27, atanasyan, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77394
-
Igor Kudrin authored
In package files, the base offset provided by index sections should be used to find the contribution of a unit. The patch adds that base offset when reading range list tables. Differential revision: https://reviews.llvm.org/D77401
-
Igor Kudrin authored
This fixes the reading of location lists headers for compilation units in package files by adjusting the reading offset according to the corresponding record in the unit index. This is required for DW_FORM_loclistx to work. Differential revision: https://reviews.llvm.org/D77146
-
Igor Kudrin authored
Without the patch, all version 5 compile units in a DWP file read location tables from the beginning of a .debug_loclists.dwo section. The patch fixes that by adjusting the reading offset the same way as for pre-v5 units. The section identifier to find the contribution entry corresponds to the version of the unit. Differential revision: https://reviews.llvm.org/D77145
-
Igor Kudrin authored
DWARFv5 defines index sections in package files in a slightly different way than the pre-standard GNU proposal, see Section 7.3.5 in the DWARF standard and https://gcc.gnu.org/wiki/DebugFissionDWP for GNU proposal. The main concern here is values for section identifiers, which are partially overlapped with changed meanings. The patch adds support for v5 index sections and resolves that difficulty by defining a set of identifiers for internal use which can represent and distinct values of both standards. Differential Revision: https://reviews.llvm.org/D75929
-
Igor Kudrin authored
This is a preparation for an upcoming patch which adds support for DWARFv5 unit index sections. The patch adds tag "_EXT_" to identifiers which reference sections that are deprecated in the DWARFv5 standard. See D75929 for the discussion. Differential Revision: https://reviews.llvm.org/D77141
-
Igor Kudrin authored
There is a number of places in llvm-dwp.cpp where a section identifier is translated into an index of an internal array of section contributions, and another place where the index is converted to an on-disk value. All these places use direct expressions like "<id> - DW_SECT_INFO" or "<index> + DW_SECT_INFO", exploiting the fact that DW_SECT_INFO is the minimum valid value of that kind. The patch adds distinct functions for that translation. The goal is to make the code more readable and to prepare it to support index sections of new versions, where the numeric scheme of section indexes is changed. Differential Revision: https://reviews.llvm.org/D76067
-
Richard Smith authored
in the token stream. Previously we deleted all template-id annotations at the end of each top-level declaration. That doesn't work: we can do some lookahead and form a template-id annotation, and then roll back that lookahead, parse, and decide that we're missing a semicolon at the end of a top-level declaration, before we reach the annotation token. In that situation, we'd end up parsing the annotation token after deleting its associated data, leading to various forms of badness. We now only delete template-id annotations if the preprocessor can assure us that there are no annotation tokens left in the token stream (or if we're already at EOF). This lets us delete the annotation tokens earlier in a lot of cases; we now clean them up at the end of each statement and class member, not just after each top-level declaration. This also permitted some simplification of the delay-parsed templates cleanup code.
-
Craig Topper authored
We're ANDing with 1 right after which will cause the SIGN_EXTEND to be combined to ANY_EXTEND later. Might as well just start with an ANY_EXTEND. While there replace create the AND using the getZeroExtendInReg helper to remove the need to explicitly create the VecOnes constant.
-
Johannes Doerfert authored
Move the listing of allowed clauses per OpenMP directive to the new macro file in `llvm/Frontend/OpenMP`. Also, use a single generic macro that specifies the directive and one allowed clause explicitly instead of a dedicated macro per directive. We save 800 loc and boilerplate for all new directives/clauses with no functional change. We also need to include the macro file only once and not once per directive. Depends on D77112. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D77113
-
Johannes Doerfert authored
Forgot to adjust this use in 419a559c.
-
Craig Topper authored
[DAGCombiner] Replace a hardcoded constant in visitZERO_EXTEND with a proper check for the condition its trying to protect. This code is replacing a shift with a new shift on an extended type. If the shift amount type can't represent the maximum shift amount for the new type, the amount needs to be extended to a type that can. Previously, the code just hardcoded a check for 256 bits which seems to have been an assumption that the original shift amount was MVT::i8. But that seems more catered to a specific target like X86 that uses i8 as its legal shift amount type. Other targets may use different types. This commit changes the code to look at the real type of the shift amount and makes sure it has enough bits for the Log2 of the new type. There are similar checks to this in SelectionDAGBuilder and LegalizeIntegerTypes.
-
Nathan Ridge authored
Summary: Fixes https://github.com/clangd/clangd/issues/309 Subscribers: ilya-biryukov, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D77194
-
Johannes Doerfert authored
This is a cleanup and normalization patch that also enables reuse with Flang later on. A follow up will clean up and move the directive -> clauses mapping. Reviewed By: fghanim Differential Revision: https://reviews.llvm.org/D77112
-
Tarindu Jayatilaka authored
The new and old pass managers (PassManagerBuilder.cpp and PassBuilder.cpp) are exposed to an `extern` declaration of `attributor-disable` option which will guard the addition of the attributor passes to the pass pipelines. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D76871
-
Lang Hames authored
Add a new overload of StaticLibraryDefinitionGenerator::Load that takes a triple argument and supports loading archives from MachO universal binaries in addition to regular archives. The LLI tool is updated to use this overload.
-
Lei Zhang authored
-
David Blaikie authored
This addresses the immediate bug, though in theory we could still produce a default parameter for the DWARF in this test case - but other cases will be definitely unachievable (you could have a default parameter that cannot be evaluated - so long as the user overrode it with another value rather than relying on that default)
-
River Riddle authored
Summary: This revision performs several cleanups on the translation infra: * Removes the TranslateCLParser library and consolidates into Translation - This was a weird library that existed in Support, and didn't really justify being a standalone library. * Cleans up the internal registration and consolidates all of the translation functions within one registry. Differential Revision: https://reviews.llvm.org/D77514
-
River Riddle authored
Summary: Blocks are numbered locally within a region, so numbering above the parent region is unnecessary. Differential Revision: https://reviews.llvm.org/D77510
-
Richard Smith authored
char8_t.
-
Richard Smith authored
2c88a485. Also extend it to cover memchr for consistency.
-
Simon Pilgrim authored
-
Simon Pilgrim authored
We had previously limited the shuffle(HORIZOP,HORIZOP) combine to binary shuffles, but we can often merge unary shuffles just as well, folding in UNDEF/ZERO values into the 64-bit half lanes. For the (P)HADD/HSUB cases this is limited to fast-horizontal cases but PACKSS/PACKUS combines under all cases.
-
Uday Bondhugula authored
Make AsmPrinter messages on null structures consistent: use <<NULL ...>>. Differential Revision: https://reviews.llvm.org/D77509
-
River Riddle authored
Summary: This updates the canonicalization documentation, and properly documents the different ways of canonicalizing operations. Differential Revision: https://reviews.llvm.org/D77490
-
River Riddle authored
Summary: This revision adds a section to WritingAPass to document the declarative specification, and how to use it. Differential Revision: https://reviews.llvm.org/D77102
-
Anna Thomas authored
This patch builds upon D76140 by updating metadata on pointer typed loads in inlined functions, when the load is the return value, and the callsite contains return attributes which can be updated as metadata on the load. Added test cases show this for nonnull, dereferenceable, dereferenceable_or_null Reviewed-By: jdoerfert Differential Revision: https://reviews.llvm.org/D76792
-
Sourabh Singh Tomar authored
Previously line table symbol was represented as `DIE::value_iterator` inside `DwarfCompileUnit` and subsequent function `intStmtList` was used to create a local `MCSymbol` to initialize it. This patch removes `DIE::value_iterator` from `DwarfCompileUnit` and intoduce `MCSymbol` for representing this units symbol for `debug_line` section. As a result `applyStmtList` is also modified to utilize this. Further more a helper function `getLineTableStartSym` is also introduced to get this symbol, this would be used by clients which need to access this line table, i.e `debug_macro`. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D77489
-
Mehdi Amini authored
Even if this indicates in general a problem at call sites, the printer is used for debugging and avoiding crashing is friendlier for example when used in diagnostics or other printer. Differential Revision: https://reviews.llvm.org/D77481
-
Fangrui Song authored
-
Nico Weber authored
-
Nico Weber authored
Instead of checking if each symlink exists before removing it, remove the whole temp dir housing the symlinks before recreating it. This is a bit shorter, conceptually simpler (in that the first and consecutive test runs have more similar behavior), it's what we're already doing in almost all places where we do it, and it works if the symlink exists but is a dead link (e.g. when it points into the build dir but the build dir is renamed). No intended behavior change.
-
- Apr 05, 2020
-
-
Zuojian Lin authored
The newly-created constant zero will need an extra register to hold it in the current statepoint lowering implementation. Remove it if there exists one.
-
Apelete Seketeli authored
This fixes dead store warnings of the type "dead assignment" reported by Clang Static Analyzer.
-
Muhammad Omair Javaid authored
-
Matt Arsenault authored
-