- Jan 21, 2022
-
-
Zi Xuan Wu authored
There are static and dynamic TLS address lowering in DAG stage according to different TLS model. It needs PseudoTLSLA32 pseudo to get address of TLS-related entry which resides in constant pool.
-
Sockke authored
There are incorrect Fixit and missing warnings: case : A trivially-copyable object wrapped by std::move is passed to the function with rvalue reference parameters. Removing std::move will cause compilation errors. ``` void showInt(int&&) {} void testInt() { int a = 10; // expect: warning + nofix showInt(std::move(a)); // showInt(a) <--- wrong fix } struct Tmp {}; void showTmp(Tmp&&) {} void testTmp() { Tmp t; // expect: warning + nofix showTmp(std::move(t)); // showTmp(t) <--- wrong fix } ``` Reviewed By: aaron.ballman, Quuxplusone Differential Revision: https://reviews.llvm.org/D107450 -
Mehdi Amini authored
This is superseded by the same method on OpAsmOpInterface, which is available on the Dialect through the Fallback mechanism, Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D117750
-
Rahul Kayaith authored
This extends dense attribute element access to support 8b and 16b ints. Also extends the corresponding parts of the C api. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D117731
-
Mehdi Amini authored
This allows to pipe sequences of `mlir-opt -split-input-file | mlir-opt -split-input-file`. Depends On D117750 Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D117756
-
Craig Topper authored
Zbkb supports some encodings of the general grevi, shfli, and unshfli instructions legal, so we added separate instructions for those encodings to improve the diagnostics for assembler and disassembler. To be consistent we should always use these separate instructions whenever those specific encodings of grevi/shfli/unshfli occur. So this patch adds specific isel patterns to override the generic isel patterns for these cases. Similar was done for rev8 and zext.h for Zbb previously.
-
Wu Xinlong authored
This commit add instructions supports of `zbkb` which defined in scalar cryptography extension version v1.0.0 (has been ratified already). Most of the zbkb directives reuse parts of the zbp and zbb directives, so this patch just modified some of the inst aliases and predicates. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D117640
-
Joao Moreira authored
Intel's CET/IBT requires every indirect branch target to be an ENDBR instruction. Because of that, the compiler needs to correctly emit these instruction on function's prologues. Because this is a security feature, it is desirable that only actual indirect-branch-targeted functions are emitted with ENDBRs. While it is possible to identify address-taken functions through LTO, minimizing these ENDBR instructions remains a hard task for user-space binaries because exported functions may end being reachable through PLT entries, that will use an indirect branch for such. Because this cannot be determined during compilation-time, the compiler currently emits ENDBRs to every non-local-linkage function. Despite the challenge presented for user-space, the kernel landscape is different as no PLTs are used. With the intent of providing the most fit ENDBR emission for the kernel, kernel developers proposed an optimization named "ibt-seal" which replaces the ENDBRs for NOPs directly in the binary. The discussion of this feature can be seen in [1]. This diff brings the enablement of the flag -mibt-seal, which in combination with LTO enforces a different policy for ENDBR placement in when the code-model is set to "kernel". In this scenario, the compiler will only emit ENDBRs to address taken functions, ignoring non-address taken functions that are don't have local linkage. A comparison between an LTO-compiled kernel binaries without and with the -mibt-seal feature enabled shows that when -mibt-seal was used, the number of ENDBRs in the vmlinux.o binary patched by objtool decreased from 44383 to 33192, and that the number of superfluous ENDBR instructions nopped-out decreased from 11730 to 540. The 540 missed superfluous ENDBRs need to be investigated further, but hypotheses are: assembly code not being taken care of by the compiler, kernel exported symbols mechanisms creating bogus address taken situations or even these being removed due to other binary optimizations like kernel's static_calls. For now, I assume that the large drop in the number of ENDBR instructions already justifies the feature being merged. [1] - https://lkml.org/lkml/2021/11/22/591 Reviewed By: xiangzhangllvm Differential Revision: https://reviews.llvm.org/D116070
-
John Ericson authored
https://lab.llvm.org/buildbot/#/builders/36/builds/16668 was the sort of thing I saw before when this was part of D99484, and it makes some sense now this would have something to do with it. This reverts commit 58580e92.
-
Jonas Devlieghere authored
-
LLVM GN Syncbot authored
-
John Ericson authored
If `CMAKE_INSTALL_BINDIR` is a different absolute path per project, as it is with NixOS when we install every package to its own prefix, the old way fails when the absolute path gets prepended. There are still some issues with dowstream packages using `LLVM_TOOLS_INSTALL_DIR` which also may be absolute and just for LLVM proper, but that will be addressed in a future commit. Differential Revision: https://reviews.llvm.org/D101070
-
Joseph Huber authored
This patch changes the visibility for all construct in the new device RTL to be hidden by default. This is done after the changes introduced in D117806 changed the visibility from being hidden by default for all device compilations. This asserts that the visibility for the device runtime library will be hidden except for the internal environment variable. This is done to aid optimization and linking of the device library. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D117807
-
Joseph Huber authored
This patch changes the special-case handling of visibility when compiling for an OpenMP target offloading device. This was orignally added as a precaution against the bug encountered in PR41826 when symbols in the device were being preempted by shared library symbols. This should instead be done by making the visibility protected by default. With protected visibility we are asserting that the symbols on the device will never be preempted or preempt another symbol pending a shared library load. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D117806
-
Jonas Devlieghere authored
Instrument the SB API with signposts on Darwin. This gives us a time profile on whose behalf LLDB spends time (particularly when run via the SBAPI from an IDE). Differential revision: https://reviews.llvm.org/D117632
-
Jonas Devlieghere authored
Remove the last remaining references to the reproducers from the instrumentation. This patch renames the relevant files and macros. Differential revision: https://reviews.llvm.org/D117712
-
Jonas Devlieghere authored
I revived lldb-instr to update the macros for D117712. I think the new macros are simple enough that we add them by hand, but this tool can do it automatically for you. Differential revision: https://reviews.llvm.org/D117748
-
Hsiangkai Wang authored
Originally, hasRVVFrameObject() will scan all the stack objects to check whether if there is any scalable vector object on the stack or not. However, it causes errors in the register allocator. In issue 53016, it returns false before RA because there is no RVV stack objects. After RA, it returns true because there are spilling slots for RVV values during RA. The compiler will not reserve BP during register allocation and generate BP access in the PEI pass due to the inconsistent behavior of the function. The function is changed to use hasStdExtV() as the return value. It is not precise, but it can make the register allocation correct. Refer to https://github.com/llvm/llvm-project/issues/53016. Differential Revision: https://reviews.llvm.org/D117663
-
Peter Klausler authored
Implements a near-universal extension in which NAMELIST input will skip over unrelated namelist groups in the input stream until the group with the requested name appears. Differential Revision: https://reviews.llvm.org/D117843
-
Peter Klausler authored
Array subscripts and substring limits in NAMELIST input are allowed to bear an explicit plus sign. Differential Revision: https://reviews.llvm.org/D117818
-
Craig Topper authored
This is needed to properly limit fractional LMULs for Zve32. Add new RUN Zve32 RUN lines to the existing tests for the -riscv-v-fixed-length-vector-elen-max command line option.
-
Pawe Bylica authored
Simplify bswap(x) to shl(x) or lshr(x) if x has exactly one "active byte", i.e. all active bits are contained in boundaries of a single byte of x. https://alive2.llvm.org/ce/z/nvbbU5 https://alive2.llvm.org/ce/z/KiiL3J Reviewed By: spatel, craig.topper, lebedev.ri Differential Revision: https://reviews.llvm.org/D117680
-
Johannes Doerfert authored
The old method to avoid unconstrained expansion of the constant range in a loop did not work as soon as there were multiple instructions in between the phi and its input. We now take a generic approach and limit the number of updates as a fallback. The old method is kept as it catches "the common case" early.
-
Johannes Doerfert authored
-
Fabian Wolff authored
Fixes PR#52435. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D113507
-
Dave Airlie authored
This wraps the image and rw images usages in the correct macros Reviewed By: Anastasia Differential Revision: https://reviews.llvm.org/D107539
-
Peter Klausler authored
The unit number passed to a FLUSH statement is not required to be a valid open unit; nothing happens (esp. not the creation of an empty fort.n file) in this case. Differential Revision: https://reviews.llvm.org/D117819
-
Peter Klausler authored
The keyword value was misspelled in the runtime. Differential Revision: https://reviews.llvm.org/D117816
-
Clint Caywood authored
This is an optimization that using a single CPU instruction on supported architectures (amd64 and aarch64, but possibly others) to replace what was previously an iterative look-up-table algorithm. Originally I suggested using inline assembly for this in https://reviews.llvm.org/D117584. Reviewed By: lntue, sivachandra Differential Revision: https://reviews.llvm.org/D117684
-
Sam Clegg authored
Unresolved symbols are not currently reported when building with `-shared` or `-pie` so setting unresolvedSymbols doesn't have any effect. Differential Revision: https://reviews.llvm.org/D117737
-
Paweł Bylica authored
-
CJ Johnson authored
[clang-tidy] Update bugprone-stringview-nullptr to consistently prefer the empty string when passing arguments to constructors/functions Previously, function(nullptr) would have been fixed with function({}). This unfortunately can change overload resolution and even become ambiguous. T(nullptr) was already being fixed with T(""), so this change just brings function calls in line with that. Differential Revision: https://reviews.llvm.org/D117840 -
Craig Topper authored
All code should use one of the cleaner named hasVInstructions* functions. Fix the two uses that weren't and delete the methods so no new uses can be created.
-
Siva Chandra Reddy authored
Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D117838
-
Craig Topper authored
RISCV only has a unary shuffle that requires places indices in a register. For interleaving two vectors this means we need at least two vrgathers and a vmerge to do a shuffle of two vectors. This patch teaches shuffle lowering to use a widening addu followed by a widening vmaccu to implement the interleave. First we extract the low half of both V1 and V2. Then we implement (zext(V1) + zext(V2)) + (zext(V2) * zext(2^eltbits - 1)) which simplifies to (zext(V1) + zext(V2) * 2^eltbits). This further simplifies to (zext(V1) + zext(V2) << eltbits). Then we bitcast the result back to the original type splitting the wide elements in half. We can only do this if we have a type with wider elements available. Because we're using extends we also have to be careful with fractional lmuls. Floating point types are supported by bitcasting to/from integer. The tests test a varied combination of LMULs split across VLEN>=128 and VLEN>=512 tests. There a few tests with shuffle indices commuted as well as tests for undef indices. There's one test for a vXi64/vXf64 vector which we can't optimize, but verifies we don't crash. Reviewed By: rogfer01 Differential Revision: https://reviews.llvm.org/D117743
-
Rob Suderman authored
Right shift can occur that is a 32-bit right shift. This is undefined behavior. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D117732
-
owenca authored
Differential Revision: https://reviews.llvm.org/D117759
-
Nathan James authored
-
Michael Kruse authored
Follow-up on D117226 for applyStaticWorkshareLoop and applyDynamicWorkshareLoop checking for conflicting InertPoints via an assert. There is no in-tree code that violates this assertion, hence nothing changes.
-
Philip Reames authored
Certain bots (e.g. sanitizer-x86_64-linux-android) appear to be running with strict c++98 flags which disallow ; at global scope.
-