- May 13, 2021
-
-
Anton Afanasyev authored
-
Vassil Vassilev authored
In http://lists.llvm.org/pipermail/llvm-dev/2020-July/143257.html we have mentioned our plans to make some of the incremental compilation facilities available in llvm mainline. This patch proposes a minimal version of a repl, clang-repl, which enables interpreter-like interaction for C++. For instance: ./bin/clang-repl clang-repl> int i = 42; clang-repl> extern "C" int printf(const char*,...); clang-repl> auto r1 = printf("i=%d\n", i); i=42 clang-repl> quit The patch allows very limited functionality, for example, it crashes on invalid C++. The design of the proposed patch follows closely the design of cling. The idea is to gather feedback and gradually evolve both clang-repl and cling to what the community agrees upon. The IncrementalParser class is responsible for driving the clang parser and codegen and allows the compiler infrastructure to process more than one input. Every input adds to the “ever-growing” translation unit. That model is enabled by an IncrementalAction which prevents teardown when HandleTranslationUnit. The IncrementalExecutor class hides some of the underlying implementation details of the concrete JIT infrastructure. It exposes the minimal set of functionality required by our incremental compiler/interpreter. The Transaction class keeps track of the AST and the LLVM IR for each incremental input. That tracking information will be later used to implement error recovery. The Interpreter class orchestrates the IncrementalParser and the IncrementalExecutor to model interpreter-like behavior. It provides the public API which can be used (in future) when using the interpreter library. Differential revision: https://reviews.llvm.org/D96033
-
Matthias Springer authored
Differential Revision: https://reviews.llvm.org/D102042
-
Matthias Springer authored
Instead of an SCF for loop, these pattern generate fully unrolled loops with no temporary buffer allocations. Differential Revision: https://reviews.llvm.org/D101981
-
Matthias Springer authored
Such ops are no-ops and are folded to their respective `source`/`vector` operand. Differential Revision: https://reviews.llvm.org/D101879
-
Matthias Springer authored
Broadcast dimensions of a vector transfer op have no corresponding dimension in the mask vector. E.g., a 2-D TransferReadOp, where one dimension is a broadcast, can have a 1-D `mask` attribute. This commit also adds a few additional transfer op integration tests for various combinations of broadcasts, masking, dim transposes, etc. Differential Revision: https://reviews.llvm.org/D101745
-
Chen Zheng authored
Reviewed By: dblaikie, probinson Differential Revision: https://reviews.llvm.org/D100826
-
Matthias Springer authored
This reverts commit c9087788. Accidentally pushed old version of the commit.
-
Matthias Springer authored
Broadcast dimensions of a vector transfer op have no corresponding dimension in the mask vector. E.g., a 2-D TransferReadOp, where one dimension is a broadcast, can have a 1-D `mask` attribute. This commit also adds a few additional transfer op integration tests for various combinations of broadcasts, masking, dim transposes, etc. Differential Revision: https://reviews.llvm.org/D101745
-
Yaxun (Sam) Liu authored
Merge two if as follow up of https://reviews.llvm.org/D102270
-
Adrian Prantl authored
The Mips in DW_LANG_Mips_Assembler is a vendor name not an architecture name and in lack of a proper generic DW_LANG_assembler, some assemblers emit DWARF using this tag. Due to a warning I recently introduced users will now be greeted with This version of LLDB has no plugin for the mipsassem language. Inspection of frame variables will be limited. By renaming this to just "Assembler" this error message will make more sense. Differential Revision: https://reviews.llvm.org/D101406 rdar://77214764
-
Richard Smith authored
For a type-constraint in a lambda signature, this makes the lambda contain an unexpanded pack; for requirements in a requires-expressions it makes the requires-expression contain an unexpanded pack; otherwise it's invalid.
-
Richard Smith authored
properly track that it has constraints. Previously an instantiation of a constrained generic lambda would behave as if unconstrained because we incorrectly cached a "has no constraints" value that we computed before the constraints from 'auto' parameters were attached.
-
Richard Smith authored
No functionality change intended.
-
Richard Smith authored
mangling.
-
Pushpinder Singh authored
Previously clang would print a binary blob into the bundled file for amdgcn. With this patch, it will instead print textual IR as expected. Reviewed By: JonChesterfield, ronlieb Differential Revision: https://reviews.llvm.org/D102065 Change-Id: I10c0127ab7357787769fdf9a2edd4b3071e790a1
-
Peter Collingbourne authored
The bounds check that we previously had here was suitable for secondary allocations but not for UAF on primary allocations, where it is likely to result in false positives. Fix it by using a different bounds check for UAF that requires the fault address to be in bounds. Differential Revision: https://reviews.llvm.org/D102376
-
Christopher Di Bella authored
D85051's honeypot solution was a bit too aggressive swallowed up the comparison types, which made comparing objects of different ordering types ambiguous. Depends on D101707. Differential Revision: https://reviews.llvm.org/D101708
-
Aart Bik authored
First set of "boilerplate" to get sparse tensor passes available through CAPI and Python. Reviewed By: stellaraccident Differential Revision: https://reviews.llvm.org/D102362
-
Stanislav Mekhanoshin authored
This is logic simplification for better readability. Differential Revision: https://reviews.llvm.org/D102371
-
MaheshRavishankar authored
Differential Revision: https://reviews.llvm.org/D102301
-
Justin Bogner authored
This change enables cases for which the index value for the first load/store instruction in a pair could be a function argument. This allows using llvm.assume to provide known bits information in such cases. Patch by Viacheslav Nikolaev. Thanks! Differential Revision: https://reviews.llvm.org/D101680
-
Greg Clayton authored
The algorithm removing duplicates from the Funcs list used to have amortized quadratic time complexity because it was potentially removing each entry using std::vector::erase individually. This patch is now using a erase-remove idiom with an adapted removeIfBinary algorithm. Probably this was made under the assumption that these removals are rare, but there are cases where the case of duplicate entries is occurring frequently. In these cases, the actual runtime was very poor, taking hours to process a single binary of around 1 GiB size including debug info. Another factor contributing to that is the frequent output of the warning, which is now removed. It seems this is particularly an issue with GCC-compiled binaries, rather than clang-built binaries. Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D102219
-
Eugene Zhulenev authored
Address comments in https://reviews.llvm.org/D102226 to fix the bug + style violations Differential Revision: https://reviews.llvm.org/D102368
-
Sam Clegg authored
This fixes a bug with string merging with string symbols that contain NULLs, as is the case in the `merge-string.s` test. The bug only showed when we run with `--relocatable` and then try read the resulting object back in. In this case we would end up with string symbols that extend past the end of the segment in which they live. The problem comes from the fact that sections which are flagged as string mergable assume that all strings are NULL terminated. The merging algorithm will drop trailing chars that follow a NULL since they are essentially unreachable. However, the "size" attribute (in the symbol table) of such a truncated symbol is not updated resulting a symbol size that can overlap the end of the segment. I verified that this can happen in ELF too given the right conditions and the its harmless enough. In practice Strings that contain embedded null should not be part of a mergable section. Differential Revision: https://reviews.llvm.org/D102281
-
Sam Clegg authored
Previously the linker was relying solely on the name of the segment to imply TLS. Differential Revision: https://reviews.llvm.org/D102202
-
Heejin Ahn authored
We explicitly made it error out in D101403, out of a good intention that the error message will make people less confusing. Turns out, we weren't failing all cases of wasm EH + SjLj; only a few cases were failing and our client was able to get around by fixing source code, but now we made it fail for all cases, even the cases that previously succeeded fail, which we didn't intend. This reverts that change. Reviewed By: tlively Differential Revision: https://reviews.llvm.org/D102364
-
Craig Topper authored
The VSEW encoding isn't a useful value to pass around. It's better to use SEW or log2(SEW) directly. The only real ugliness is that the vsetvli IR intrinsics use the VSEW encoding, but it's easy enough to decode that when the intrinsic is processed.
-
Richard Smith authored
Fix bad mangling of <data-member-prefix> for a closure in the initializer of a variable at global namespace scope. This implements the direction proposed in https://github.com/itanium-cxx-abi/cxx-abi/pull/126. Differential Revision: https://reviews.llvm.org/D101968
-
River Riddle authored
[mlir-lsp-server][NFC] Add newline between Protocol JSON serialization methods and class definitions.
-
River Riddle authored
This allows for diagnostics emitted during parsing/verification to be surfaced to the user by the language client, as opposed to just being emitted to the logs like they are now. Differential Revision: https://reviews.llvm.org/D102293
-
Shoaib Meenai authored
Flang's CMake modules directory was being added to the CMake module path twice, and AddFlang was being included after the first addition. Remove the unnecessary first addition and move the AddFlang include down to the second one. This way, it occurs after LLVM's CMake modules have been included for a standalone build, so it can make use of those modules.
-
Erich Keane authored
It doesn't really make sense to emit language specific diagnostics in a discarded statement, and suppressing these diagnostics results in a programming pattern that many users will feel is quite useful. Basically, this makes sure we only emit errors from the 'true' side of a 'constexpr if'. It does this by making the ExprEvaluatorBase type have an opt-in option as to whether it should visit discarded cases. Differential Revision: https://reviews.llvm.org/D102251
-
Suraj Sudhir authored
Removes the identityn operator from TOSA MLIR definition. Removes TosaToLinAlg mappings Reviewed By: rsuderman Differential Revision: https://reviews.llvm.org/D102329
-
Fangrui Song authored
-
Martin Storsjö authored
Since c579a5b1 we don't traverse .eh_frame when doing GC. But the exception handling personality function needs to be included, and is only referenced from within .eh_frame. Differential Revision: https://reviews.llvm.org/D102138
-
Martin Storsjö authored
Don't use stat and lstat on Windows; lstat is missing, stat only provides the modification times with second granularity (and does the wrong thing regarding symlinks). Instead do a minimal reimplementation using the native windows APIs. Differential Revision: https://reviews.llvm.org/D101731
-
Shoaib Meenai authored
Not sure how my local testing didn't trigger this path. Should fix https://lab.llvm.org/buildbot/#/builders/132/builds/5494
-
Mark de Wever authored
Both `<type_traits>` and `<charconv>` implemented this function with different names and a slightly different behavior. This removes the version in `<charconv>` and improves the version in `<typetraits>`. - The code can be used again in C++11. - The original claimed C++14 support, but `[[nodiscard]]` is not available in C++14. - Adds `_LIBCPP_INLINE_VISIBILITY`. Reviewed By: zoecarver, #libc, Quuxplusone Differential Revision: https://reviews.llvm.org/D102332
-
Nikita Popov authored
If a logical and/or is used, we need to be careful not to propagate a potential poison value from the RHS by inserting a freeze instruction. Otherwise it works the same way as bitwise and/or. This is intended to address the regression reported at https://reviews.llvm.org/D101191#2751002. Differential Revision: https://reviews.llvm.org/D102279
-