- May 27, 2022
-
-
Daniil Dudkin authored
If a line is over 72 characters long, flang's preprocessor cuts it there and continues on the next line. For this purpose it uses the standard way of continuing line with & on each line. However, it doesn't work with long compiler directives, like OpenMP or OpenACC ones. The line that continues the directive also has to contain the corresponding sentinel at the beginning. This change implements the described functionality. Also, some code was refactored in order to simplify and reuse existing code. Reviewed By: klausler Differential Revision: https://reviews.llvm.org/D126301
-
Fraser Cormack authored
Split off from D125021. We were duplicating logic across different phases. Since we want to ensure a consistency of logic across phases for correctness, this patch combines our multiple compatibility checks into one function to better convey this. Several methods were made const too. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D126472
-
Groverkss authored
This patch adds support for intersection a set with a relation. Reviewed By: arjunp Differential Revision: https://reviews.llvm.org/D126328
-
Anastasia Stulova authored
-
Ben Dunbobbin authored
Add a regression test for: https://github.com/llvm/llvm-project/issues/55527 Differential Revision: https://reviews.llvm.org/D125785
-
Andrew Ng authored
Differential Revision: https://reviews.llvm.org/D126484
-
River Riddle authored
This essentially builds an index for the parsed records and record values (fields). This covers quite a few cases, but is limited by the currently lackluster location tracking in tablegen. A followup will work on plumbing more locations through tablegen, which should greatly improve what we can do here. Differential Revision: https://reviews.llvm.org/D125443
-
River Riddle authored
This allows for following links to include files. This support is effectively identical to the logic in the PDLL language server, and code is shared as much as possible. Differential Revision: https://reviews.llvm.org/D125442
-
River Riddle authored
This provides a format for externally specifying the include directories for a source file. The format of the tablegen database is exactly the same as that for PDLL, namely it includes the absolute source file name and the set of include directories. The database format is shared to simplify the infra, and also because the format itself is general enough to share. Even if we desire to expand in the future to contain the actual compilation command, nothing there is specific enough that we would need two different formats. As with PDLL, support for generating the database is added to our mlir_tablegen cmake command. Differential Revision: https://reviews.llvm.org/D125441
-
Florian Hahn authored
If the fma operates on a legal vector type, the indexed variants can be used, if the second operand is a splat of a valid index. Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D126234
-
Andrew Ng authored
Differential Revision: https://reviews.llvm.org/D126458
-
Balazs Benics authored
This reverts commit 3988bd13. Did not build on this bot: https://lab.llvm.org/buildbot#builders/215/builds/6372 /usr/include/c++/9/bits/predefined_ops.h:177:11: error: no match for call to ‘(llvm::less_first) (std::pair<long unsigned int, llvm::bolt::BinaryBasicBlock*>&, const std::pair<long unsigned int, std::nullptr_t>&)’ 177 | { return bool(_M_comp(*__it, __val)); }
-
Balazs Benics authored
One could reuse this functor instead of rolling out your own version. There were a couple other cases where the code was similar, but not quite the same, such as it might have an assertion in the lambda or other constructs. Thus, I've not touched any of those, as it might change the behavior in some way. As per https://discourse.llvm.org/t/submitting-simple-nfc-patches/62640/3?u=steakhal Chris Lattner > LLVM intentionally has a “yes, you can apply common sense judgement to > things” policy when it comes to code review. If you are doing mechanical > patches (e.g. adopting less_first) that apply to the entire monorepo, > then you don’t need everyone in the monorepo to sign off on it. Having > some +1 validation from someone is useful, but you don’t need everyone > whose code you touch to weigh in. Differential Revision: https://reviews.llvm.org/D126068
-
Balazs Benics authored
This patch annotates the most important analyzer function APIs. Also adds a couple of assertions for uncovering any potential issues earlier in the constructor; in those cases, the member functions were already dereferencing the members unconditionally anyway. Measurements showed no performance impact, nor crashes. Reviewed By: martong Differential Revision: https://reviews.llvm.org/D126198
-
Gabor Marton authored
fixes #115
-
Balazs Benics authored
Reviewed By: martong, xazax.hun Differential Revision: https://reviews.llvm.org/D125708
-
Balazs Benics authored
Reviewed By: martong, xazax.hun Differential Revision: https://reviews.llvm.org/D125707
-
Balazs Benics authored
- Rename `isKind()` to `classof()` to follow the llvm style RTTI. - Take SVal by-value instead of reference. - Mark `classof` public. Reviewed By: martong, xazax.hun Differential Revision: https://reviews.llvm.org/D125706
-
Nikolas Klauser authored
Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D126477
-
Luo, Yuanke authored
There is intrinsic `@llvm.x86.ldtilecfg` which is lowered to LDTILECFG. This intrinsic is open for user to configure tile registers by themselves. There is a chance that `@llvm.x86.ldtilecfg` would be mixed with the new AMX intrinsics which depend on compiler to configure tile registers. Separate pusedo instruction PLDTILECFGV would avoid unexpected behavious when `@llvm.x86.ldtilecfg` is mixed with new AMX intrinsics. Though user should not mix the two programming model, compiler should avoid crash or UB when they are mixed. Differential Revision: https://reviews.llvm.org/D126519
-
LLVM GN Syncbot authored
-
Nikolas Klauser authored
Reviewed By: Mordante, var-const, #libc Spies: libcxx-commits, mgorny Differential Revision: https://reviews.llvm.org/D125608
-
Balazs Benics authored
Fixes #55720
-
Balazs Benics authored
Reviewed By: martong Differential Revision: https://reviews.llvm.org/D126123
-
Balazs Benics authored
Reviewed By: martong Differential Revision: https://reviews.llvm.org/D126130
-
Balazs Benics authored
Reviewed By: martong Differential Revision: https://reviews.llvm.org/D126129
-
Balazs Benics authored
This patch also refactored some of the enclosing parts. Reviewed By: martong Differential Revision: https://reviews.llvm.org/D126128
-
Balazs Benics authored
Reviewed By: martong Differential Revision: https://reviews.llvm.org/D126125
-
Balazs Benics authored
Reviewed By: martong Differential Revision: https://reviews.llvm.org/D126124
-
River Riddle authored
This essentially just piggy backs off of the existing mlir support. Differential Revision: https://reviews.llvm.org/D125734
-
Serge Pavlov authored
Add a generic opcode to represent `llvm.is_fpclass` intrinsic. Differential Revision: https://reviews.llvm.org/D121454
-
Alexander Batashev authored
This patch adds support for Calling Convention attribute in LLVM dialect, including enums, custom syntax and import from LLVM IR. Additionally fix import of dso_local attribute. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D126161
-
Liqin.Weng authored
``` void vector_reverse_i64(int *A, int *B, int n) { #pragma clang loop vectorize_width(4, scalable) for (int i = n-1; i >= 0; i--) A[i] = B[i] + 1; } ``` When option: scalable-vectorization is on (or set #pragma clang loop vectorize_width(elements, scalable)), Reverse Iterators can't loop vectorization as <vscale x elements x elementType> Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D125866 -
Pavel Samolysov authored
The CMake variable LIBUNWIND_SUPPORTS_NODEFAULTLIBS_FLAG has been renamed into C_SUPPORTS_NODEFAULTLIBS_FLAG because the last one is used in the confix-ix.cmake file while the variable with the original name is not used at al. Differential Revision: https://reviews.llvm.org/D126466
-
Piggy NL authored
Summary: The size of long double in RISCV (both RV32 and RV64) is 16 bytes, thus the mangled_size shouble be 32. This patch will fix test case "_ZN5test01hIfEEvRAcvjplstT_Le4001a000000000000000E_c" in test_demangle.pass.cpp, which is expected to be invalid but demangler returned "void test0::h<float>(char (&) [(unsigned int)((sizeof (float)) + (0x0.000000004001ap-16382L))])" in RISCV environment without this patch. Reviewed By: urnathan Differential Revision: https://reviews.llvm.org/D126480
-
Ping Deng authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D126516
-
Siva Chandra Reddy authored
They are added as entrypoint object targets. The header-gen infrastructure has been extended to enable handling standard required global objects. The libc-api-test has also been extended to verify the global object declarations. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D126329
-
LLVM GN Syncbot authored
-
Rahman Lavaee authored
This relands commit 4d8d2580. The major change here is using 'addUsedIfAvailable<BasicBlockSectionsProfileReader>()` to make sure we don't change the pipeline tests. Differential Revision: https://reviews.llvm.org/D126518
-
Chenbing Zheng authored
-