- Apr 27, 2022
-
-
Stephan Herhut authored
Differential Revision: https://reviews.llvm.org/D124515
-
Nikolas Klauser authored
Reviewed By: #libc, ldionne Spies: daltenty, sdasgup3, ldionne, arichardson, MTC, ChuanqiXu, mehdi_amini, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, stephenneuendorffer, Joonsoo, grosul1, Kayjukh, jurahul, msifontes, tatianashp, rdzhabarov, teijeong, cota, dcaballe, Chia-hungDuan, wrengr, wenzhicui, arphaman, Mordante, miscco, Quuxplusone, smeenai, libcxx-commits Differential Revision: https://reviews.llvm.org/D110598
-
Simon Pilgrim authored
As discussed on D124284 - ensure we actually checking the codegen not just a label + return
-
Andrzej Warzynski authored
This patch basically implements [1] in ExecuteCompilerInvocation.cpp. It also: * replaces `CreateFrontendBaseAction` with `CreateFrontendAction` (only one method is needed ATM, this change removes the extra indirection) * removes `InvalidAction` from the `ActionKind` enum (I don't think it adds much and keeping it would mean adding a new void case in `CreateFrontendAction`) * sets the default frontend action in FrontendOptions.h to `ParseSyntaxOnly` (note that this is still overridden independently in `ParseFrontendArg` in CompilerInvocation.cpp) No new functionality is added, hence no tests. [1] https://llvm.org/docs/CodingStandards.html#don-t-use-default-labels-in-fully-covered-switches-over-enumerations Differential Revision: https://reviews.llvm.org/D124245 -
Liqin.Weng authored
Reviewed By: sdardis Differential Revision: https://reviews.llvm.org/D123577
-
Jeremy Morse authored
InstrRefBasedLDV can track and describe variable values that are spilt to the stack -- however it does not current describe the size of the value on the stack. This can cause uninitialized bytes to be read from the stack if a small register is spilt for a larger variable, or theoretically on big-endian machines if a large value on the stack is used for a small variable. Fix this by using DW_OP_deref_size to specify the amount of data to load from the stack, if there's any possibility for ambiguity. There are a few scenarios where this can be omitted (such as when using DW_OP_piece and a non-DW_OP_stack_value location), see deref-spills-with-size.mir for an explicit table of inputs flavours and output expressions. Differential Revision: https://reviews.llvm.org/D123599
-
David Green authored
This adds some basic fptosi_sat and fptoui_sat target independent cost modelling. The fptosi_sat is modelled as a fmin/fmax to saturate the value, followed by a fp convert. The signed values then have an additional fcmp+select for handling Nan correctly. The AArch64/Arm costs may be more incorrect, as the instruction exist natively. This can be fixed with target specific cost updates. Differential Revision: https://reviews.llvm.org/D124269
-
Vitaly Buka authored
Temporarily revert the option to fix https://bugs.chromium.org/p/chromium/issues/detail?id=1319387 This reverts option default and documentation of the commit. Test changes are not being reverted as they are improvement and break reliance on option defaults. Additional memory usage is a problem on mobile devices with low memory. Even heavy thread desktop programs may need some FakeStack tunning. This reverts commit 4b4437c0.
-
Nikita Popov authored
Currently, two GEPs will only be combined if the result element type of one is the same as the source element type of the other. However, this means we may miss folding opportunities where the second GEP could be rewritten using a different element type. This is especially relevant for opaque pointers, where constant GEPs often use i8 element type. Address this by converting GEP indices to offsets, adding them, and then converting them back to indices. The first (inner) GEP is allowed to have variable indices as well, in which case only the constant suffix is converted into an offset. This should address the regression reported in https://reviews.llvm.org/D123300#3467615. Differential Revision: https://reviews.llvm.org/D124459
-
Nikita Popov authored
Rather than listing these by hand, include all enum attribute keywords from Attributes.inc. This reduces the number of places one has to update whenever an enum attribute is added. Differential Revision: https://reviews.llvm.org/D124465
-
Jim Lin authored
-
Petr Hosek authored
Pass the --compress-debug-sections=zlib argument to the linker when the use of compressed debug info is requested. Differential Revision: https://reviews.llvm.org/D114115
-
Tobias Ribizel authored
With the addition of inlay hints to clangd, it would be useful to output them during verbose `clangd --check`. This patch adds an output step for inlay hints and unifies the way `--check-lines` are passed around Reviewed By: nridge Differential Revision: https://reviews.llvm.org/D124344
-
Alexandros Lamprineas authored
I found this bug when performing a two-stage build of clang with Function Specialization enabled and tuned aggressively. The crash appears only on release builds. Fixes https://github.com/llvm/llvm-project/issues/55000. Before accessing the contents of the ArgInfo iterator inside SCCPInstVisitor::markArgInFuncSpecialization, we should be checking that the iterator is valid. Differential Revision: https://reviews.llvm.org/D124114
-
Petr Hosek authored
This reverts commit d47565ed.
-
Petr Hosek authored
This avoids the need for string-ification and lets CMake deduplicate potentially duplicate flags. Differential Revision: https://reviews.llvm.org/D122750
-
Youngsuk Kim authored
NFC. Differential Revision: https://reviews.llvm.org/D124305
-
ShihPo Hung authored
Following D118810 that reduced the size of ISel table, this patch optimizes allone-masked RVV pseudos with TU policy and swap them out to their unmasked TU pseudos. Since the UNDEF merge operand is not preserved, we turn it into TA pseudo regardless of the policy operand. Reviewed By: craig.topper, frasercrmck Differential Revision: https://reviews.llvm.org/D121881
-
ShihPo Hung authored
Differential Revision: https://reviews.llvm.org/D123385
-
Richard authored
If a macro is used in the expansion of another macro, that can cause a compile error if the macro is replaced with an enum. Token-pasting is an example where converting a macro defined as an integral constant can cause code to no longer compile. This change causes such macros to be skipped from the conversion process in order to prevent fixits from creating code that no longer compiles. A subsequent enhancement will examine macro usage in more detail to allow more cases to be handled without breaking code. Differential Revision: https://reviews.llvm.org/D124316 Fixes #54948
-
Mathieu Fehr authored
Depends on D104534 Add support for extensible dialects, which are dialects that can be extended at runtime with new operations and types. These operations and types cannot at the moment implement traits or interfaces. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D104554
-
River Riddle authored
This fixes issues with the compilation database when the file path isn't in the correct form.
-
River Riddle authored
This fixes issues with the compilation database when the file path isn't in the correct form.
-
Shoaib Meenai authored
After 1af25a98, we stop unconditionally retaining wrapped symbols, which means that LTO's summary-based global dead stripping can eliminate them even if they'll be referenced by a linker script after the wrapping is performed. Mark symbols referenced in linker scripts as `referenced` in addition to `isUsedInRegularObj`, so that the wrapping logic correctly sets `referencedAfterWrap` for the symbols which will be referenced after wrapping, which will prevent LTO from eliminating them. An alternative would have been to change the `referencedAfterWrap` logic to look at `isUsedInRegularObj` in addition to `referenced`, but `isUsedInRegularObj` is also set in other places (e.g. for the entry symbol), and it's not clear that we want `referencedAfterWrap` to take all those places into account, so it seemed better to keep that logic as-is and instead set `referenced` for linker script-referenced symbols. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D124433
-
Ping Deng authored
Add a new test rv64zbs-invalid.s along with the aleady existing rv32zbs-invalid.s. Reviewed By: craig.topper, asb Differential Revision: https://reviews.llvm.org/D124428
-
River Riddle authored
This allows for providing completion results for include directive file paths by searching the set of include directories for the current file. Differential Revision: https://reviews.llvm.org/D124112
-
River Riddle authored
This allows for navigating to included files on click, and also provides hover information about the include file (similarly to clangd). Differential Revision: https://reviews.llvm.org/D124077
-
River Riddle authored
The compilation database acts in a similar way to the compilation database (compile_commands.json) used by clang-tidy, i.e. it provides additional information about the compilation of project files to help the language server. The main piece of information provided by the PDLL compilation database in this commit is the set of include directories used when processing the input .pdll file. This allows for the server to properly process .pdll files that use includes anchored by the include directories set up in the build system. The structure of the textual form of a compilation database is a yaml file containing documents of the following form: ``` --- !FileInfo: filepath: <string> - Absolute file path of the file. includes: <string> - Semi-colon delimited list of include directories. ``` This commit also adds support to cmake for automatically generating a `pdll_compile_commands.yml` file at the top-level of the build directory. Differential Revision: https://reviews.llvm.org/D124076
-
River Riddle authored
This essentially sets up mlir-pdll to function in a similar manner to mlir-tblgen. Aside from the boilerplate of configuring CMake and setting up a basic initial test, two new options are added to mlir-pdll to mirror options provided by tblgen: * -d This option generates a dependency file (i.e. a set of build time dependencies) while processing the input file. * --write-if-changed This option only writes to the output file if the data would have changed, which for the build system prevents unnecesarry rebuilds if the file was touched but not actually changed. Differential Revision: https://reviews.llvm.org/D124075
-
River Riddle authored
In the case of anonymous defs this may return the name of the base def class, which can lead to two different defs with the same name (which hits an assert). This commit adds a new `getUniqueDefName` method that returns a unique name for the constraint. Differential Revision: https://reviews.llvm.org/D124074
-
Jason Molenda authored
The driver can push a null ExecutionContext on to this stack, and later calls to SBCommandInterpreter::HandleCommand which don't specify an ExecutionContext can pull an entry from the stack, resulting in settings that aren't applied. Differential Revision: https://reviews.llvm.org/D111209 rdar://81489207
-
Eric Schweitz authored
Reviewed By: vdonaldson Differential Revision: https://reviews.llvm.org/D124488
-
Alexander Shaposhnikov authored
This diff factors out the check "isCrash" from the static method "throwIfCrash". This is a helper function that can be useful in debugging / analysis, in particular, I'm planning to use it in the future patches for lld-fuzzer. Test plan: 1/ ninja check-all 2/ export LLD_IN_TEST=5 ninja check-lld Differential revision: https://reviews.llvm.org/D124414
-
Stanislav Mekhanoshin authored
-
Yaxun (Sam) Liu authored
Different TU's may have this globl var. appending linkage can only be used with lld recognized special variables. Change it to internal linkage. Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D124466
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D124483
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D124485
-
Dominic Chen authored
Add namespace specifier Differential Revision: https://reviews.llvm.org/D124468
-
Dominic Chen authored
Resolve compiler warnings about signed conversion Differential Revision: https://reviews.llvm.org/D124468
-
Jeffrey Tan authored
The last fix missed an import in one test file causing skipIfWindows attribute can't be recognized. I feel embarrassed to miss it. I have run all tests on Mac to make sure them passing in this patch. Differential Revision: https://reviews.llvm.org/D124479
-