- Jun 30, 2022
-
-
Daniel Müller authored
Among others, BPF currently supports the type-exists CO-RE relocation (e.g., see D83878 & D83242). Its intention, as the name tries to convey, is to be used for checking existence of a type in a target. While that check is useful and has its place, we would also like to be able to perform stricter type queries: instead of just checking mere existence, we want to make sure that members match up in composite types, that enum variants are present, etc. We refer to this as "type match". This change proposes the addition of a new relocation variant/value that we intend to use for establishing this match relation. Differential Revision: https://reviews.llvm.org/D126838
-
Vitaly Buka authored
Breaks msan bot, see D126883 This reverts commit 77df3be0.
-
Fangrui Song authored
Ctx was recently added as a more suitable place for such singletons.
-
Zequan Wu authored
[CodeView] Call llvm::codeview::visitMemberRecordStream with the deserialized CVType whose kind is FieldListRecord. llvm::codeview::visitMemberRecordStream expects to receive an array ref that's FieldListRecord's Data not a CVType's data which has 4 more bytes preceeding. The first 2 bytes indicate the size of the FieldListRecord, and following 2 bytes is always 0x1203. Inside llvm::codeview::visitMemberRecordStream, it iterates to the data to check if first two bytes matching some type record kinds. If the size coincidentally matches one type kind, it will start parsing from there and causing crash.
-
Christian Kandeler authored
There's no reason that arguments to e.g. lambda calls should be treated differently than those to "real" functions. Reviewed By: nridge Differential Revision: https://reviews.llvm.org/D128329
-
Jonas Devlieghere authored
Followup to D127355 and D127378, converting more instances of assertEqual to assertState.
-
Amir Ayupov authored
Don't dump dot CFG graph for functions that should not be printed. Reviewed By: rafauler, maksfb Differential Revision: https://reviews.llvm.org/D128699
-
Jonas Devlieghere authored
The two XFAILed tests started timing out after D126983. Given that they were XFAILed anyway I didn't investigate and just skipped them.
-
Argyrios Kyrtzidis authored
[Lex] Make sure to notify `MultipleIncludeOpt` for "read tokens" during fast dependency directive lexing Otherwise a header may be erroneously marked as having a header macro guard and won't get re-included. Differential Revision: https://reviews.llvm.org/D128772
-
Michael Kruse authored
The copy statements inserted by the matrix-multiplication optimization introduce new dependencies between the copy statements and other statements. As a result, the DependenceInfo must be recomputed. Not recomputing them caused IslAstInfo to deduce that some loops are parallel but cause race conditions when accessing the packed arrays. As a result, matrix-matrix multiplication currently cannot be parallelized. Also see discussion at https://reviews.llvm.org/D125202
-
Jonas Devlieghere authored
Skip TestAppleSimulatorOSType is simulator isn't available for the given platform.
-
Jonas Devlieghere authored
TestVSCode_breakpointEvents.py is failing on macOS Ventura because we receive 3 breakpoint events instead of one. This is likely the result of dyld moving into the shared cache.
-
Volodymyr Sapsai authored
-
Jin Xin Ng authored
Completes D127777 by adding llvm-side tests for emitting index and imports files from in-process ThinLTO Differential Revision: https://reviews.llvm.org/D128771
-
Petr Hosek authored
This reverts commit 2483b3a9679ed2d92abbdbae6927e022903acc70 since it broke clang-armv7-vfpv3-full-2stage builder: https://lab.llvm.org/buildbot#builders/190/builds/887
-
Maksim Panchenko authored
When SplitFunctions pass adds a trampoline code for exception landing pads (limited to shared objects), it may increase the size of the hot fragment making it larger than the whole function pre-split. When this happens, the pass reverts the splitting action by restoring the original block order and marking all blocks hot. However, if createEHTrampolines() added new blocks to the CFG and modified invoke instructions, simply restoring the original block layout will not suffice as the new CFG has more blocks. For proper backout of the split, modify the original layout by merging in trampoline blocks immediately before their matching targets. As a result, the number of blocks increases, but the number of instructions and the function size remains the same as pre-split. Add an assertion for the number of blocks when updating a function layout. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D128696
-
Fangrui Song authored
-
Stefan Pintilie authored
Forgot to add that this test requires asserts.
-
Min-Yih Hsu authored
This feature is tested by unit test since not many places in the codebase use SubElementTypeInterface. Differential Revision: https://reviews.llvm.org/D127539
-
Min-Yih Hsu authored
Since only mutable types and attributes can go into infinite recursion inside SubElementInterface::walkSubElement, and there are only a few of them (mutable types and attributes), we introduce new traits for Type and Attribute: TypeTrait::IsMutable and AttributeTrait::IsMutable, respectively. They indicate whether a type or attribute is mutable. Such traits are required if the ImplType defines a `mutate` function. Then, inside SubElementInterface, we use a set to record visited mutable types and attributes that have been visited before. Differential Revision: https://reviews.llvm.org/D127537
-
Sam McCall authored
- when printing a shared node for the second time, don't print its children (This keeps output proportional to the size of the structure) - when printing a shared node for the second time, print its type only, not rule (for consistency with above: don't dump details of nodes twice) - don't abbreviate shared nodes, to ensure we can prune the tree there Differential Revision: https://reviews.llvm.org/D128805
-
Stefan Pintilie authored
The filter clause in the landingpad may not have a GlobalVariable operand. It may instead have a ConstantArray of operands and each operand within this ConstantArray should also be checked to see if it is a GlobalVariable. This patch add the check for the ConstantArray as well as a debug message that outputs the contents of MustKeepGlobalVariables. Reviewed By: lei, amyk, scui Differential Revision: https://reviews.llvm.org/D128287
-
rdzhabarov authored
-
Petr Hosek authored
With libgcc, we follow the behavior of GCC for backwards compatibility, only using --as-needed in the non-C++ mode. With libunwind, there are no backward compatibility requirements so we can always use --as-needed on all supported platforms. Differential Revision: https://reviews.llvm.org/D128841
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D128270
-
Daniel Bertalan authored
An ADD_ADDR rebase opcode's argument can be encoded as an immediate if the offset is less than 15 * word size. This change reduces the size of chromium_framework by 100+ KiB. Differential Revision: https://reviews.llvm.org/D128798
-
Volodymyr Sapsai authored
It helps to avoid copy-paste mistakes and makes custom code paths more noticeable. Not funnelling all diagnostic through `ODRDiagDeclError` because plan to break down `err_module_odr_violation_mismatch_decl_diff` into smaller pieces instead of making it bigger and bigger. Differential Revision: https://reviews.llvm.org/D128487
-
Corentin Jabot authored
Support was completed by D119646.
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D128802
-
Sam Estep authored
This patch deletes the now-unused `SourceLocationsLattice` class, along with its containing files and surrounding helper functions and tests. Reviewed By: xazax.hun, ymandel, sgatev, gribozavr2 Differential Revision: https://reviews.llvm.org/D128448
-
Zequan Wu authored
-
Sam Estep authored
Followup to D128352. This patch pulls the `NoopLattice` class out from the `NoopAnalysis.h` test file into its own `NoopLattice.h` source file, and uses it to replace usage of `SourceLocationsLattice` in `UncheckedOptionalAccessModel`. Reviewed By: ymandel, sgatev, gribozavr2, xazax.hun Differential Revision: https://reviews.llvm.org/D128356
-
Richard Smith authored
If a zero-sized field has a non-trivial initializer, it should prevent the overall struct initialization from being folded to a constant during IR generation. Don't just ignore zero-sized fields entirely in IR constant emission.
-
Richard Smith authored
Fixes #49725.
-
Fabian Parzefall authored
For test purposes, we want to split functions at a random split point to be able to test different layouts without relying on the profile. This patch introduces an option, that randomly chooses a split point to partition blocks of a function into hot and cold regions. Reviewed By: Amir, yota9 Differential Revision: https://reviews.llvm.org/D128773
-
rdzhabarov authored
-
Sam Estep authored
Followup to D127898. This patch updates `bugprone-unchecked-optional-access` to use the new `diagnoseCFG` function instead of just looking at the exit block. A followup to this will update the optional model itself to use a noop lattice rather than redundantly computing the diagnostics in both phases of the analysis. Reviewed By: ymandel, sgatev, gribozavr2, xazax.hun Differential Revision: https://reviews.llvm.org/D128352
-
Florian Hahn authored
ConnectProlog adds new incoming values to exit phi nodes which can change the SCEV for the phi after 20d798bd. Fix is analog to cfc741bc. Fixes #56286.
-