- Jan 16, 2023
-
-
Saagar Jha authored
It seems like these were copied from the single-step code and not updated to match the new flags. Differential revision: https://reviews.llvm.org/D141816
-
Pierre van Houtryve authored
-
Craig Topper authored
The if body returned at the end and contained more code than what came after it. Reverse the condition and move the simpler code from the end of the function into the new if body.
-
Chuanqi Xu authored
Although I failed to reproduce the problem in pr60036, it should be always good to have more tests.
-
Lang Hames authored
-
Chuanqi Xu authored
[Driver] [C++20] [Modules] Don't emit unused-argument warning for '-fmodule-output' and '-fmodule-output=' Suppres the r unused-argument warning for -fmodule-output according to the discussion thread in https://gcc.gnu.org/pipermail/gcc/2022-December/240239.html. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D140001
-
Chuanqi Xu authored
The patch implements `-fmodule-output=`. This is helpful if the build systems want to generate these output files in other places which is not the same with -o specified or the input file lived. Reviewed By: dblaikie, iains Differential Revision: https://reviews.llvm.org/D137059
-
Chuanqi Xu authored
On other targets (like ppc64-aix), the default output for `-c` may be `.s` instead of `.o`, which makes the test failing. The patch require the test only run on x86 registered targets to avoid the problem.
-
Mahesh Ravishankar authored
Differential Revision: https://reviews.llvm.org/D141027
-
Mahesh Ravishankar authored
Add a new utility method to yield the tiled value as well as preserving destination passing style. Differential Revision: https://reviews.llvm.org/D139392
-
Mahesh Ravishankar authored
This method allows to selectively control from the caller when to replace the uses of a `Value`. Still notifies the rewriter that the user is updated in-place. Differential Revision: https://reviews.llvm.org/D141026
-
wangpc authored
As what has been mentioned in D137517, this patch is to simplify processors definitions in RISCV.td. We don't have to specify march string since we can generate it from target features. Reviewed By: fpetrogalli, kito-cheng Differential Revision: https://reviews.llvm.org/D141479
-
Chuanqi Xu authored
slash in the filesystem The modified test fails on windows for the diffeent slash direction ('/' in linux and '/' on windows). The patch requires the test to skip on windows to avoid such differences. -
Craig Topper authored
This code handles (icmp eq/ne (1 << Y), C) if C is a power of 2. This case is also handled by the more general foldICmpShlConstConst which is called before we reach foldICmpShlOne.
-
Chuanqi Xu authored
Patches to support the one-phase compilation model for modules. The behavior: (1) If -o and -c is specified , the module file is in the same path within the same directory as the output the -o specified and with a new suffix .pcm. (2) Otherwise, the module file is in the same path within the working directory directory with the name of the input file with a new suffix .pcm For example, ``` Hello.cppm Use.cpp ``` A trivial one and the contents are ignored. When we run: ``` clang++ -std=c++20 -fmodule-output Hello.cppm -c ``` The directory would look like: ``` Hello.cppm Hello.o Hello.pcm Use.cpp ``` And if we run: ``` clang++ -std=c++20 -fmodule-output Hello.cppm -c -o output/Hello.o ``` Then the `output` directory may look like: ``` Hello.o Hello.pcm ``` Reviewed By: dblaikie, iains, tahonermann Differential Revision: https://reviews.llvm.org/D137058
-
Amaury Séchet authored
This helps address regressions in D127115 . Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D141809
-
Freddy Ye authored
-
Benjamin Kramer authored
The comparison can have different values (but same sign) on big endian platforms, avoid that to make the unit test green there.
-
Roman Lebedev authored
-
Craig Topper authored
[InstCombine] Generalize (icmp sgt (1 << Y), -1) -> (icmp ne Y, BitWidth-1) to any negative constant. Similar for the sle version which will be canonicalized to slt first. Alive2 proof as implemented: https://alive2.llvm.org/ce/z/_YawdM @spatel's original Alive2: https://alive2.llvm.org/ce/z/3YB2vs Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D141773
-
Roman Lebedev authored
-
Roman Lebedev authored
Without it we can't recurse further.
-
Benjamin Kramer authored
-
Benjamin Kramer authored
These are identical in terms of functionality and performance (checked libc++ and libstdc++). We could do the same for rfind, but that actually has a off-by one on its position argument. StringRef::find(StringRef) seems to be quite a bit more optimized than the standard library one, so leave it alone.
-
Benjamin Kramer authored
string_view has a slightly weaker contract, which only specifies whether the value is bigger or smaller than 0. Adapt users accordingly and just forward to the standard function (that also compiles down to memcmp)
-
Johannes Doerfert authored
The JIT is a great debugging tool since we can modify the IR manually before launching it in an existing test case. The new flasks allow to skip optimizations, to use the exact given IR, as well as to provide a finished object file. The latter is useful to try out different backend options and to have complete freedom with pass pipelines. Documentation is included. Minimal refactoring was performed to make the second object fit in nicely.
-
Johannes Doerfert authored
The JIT interface was somewhat irregular as it used multiple global functions. It also did not cache the results of the JIT, hence multiple GPU systems would perform the work multiple times. Finally, there might have been races on the state if we have multi-threaded initialization of different embedded images, or one image initialized on multiple devices. This patch tries to rectify all of the above. The JITEngine is now a part of the GenericPluginTy and tied to one target triple. To support multiple "ComputeUnitKind"s (previously confusingly called Arch or [M]CPU) and to avoid re-jitting for the same ComputeUnitKind, we keep a map of JIT results per ComputeUnitKind. All interaction with the JIT happens through the JITEngine directly, two functions are exposed. Both use (shared) locks to avoid races and cache the result. All JIT-related environment variables are now defined together. Differential Revision: https://reviews.llvm.org/D141081
-
Johannes Doerfert authored
Differential Revision: https://reviews.llvm.org/D140719
-
Saagar Jha authored
I've gone through the GDB To LLDB Command Map and tried to improve it: - Fix obvious typos (e.g. <cope> → <code>) - Wrap code and program names in <code> tags - Reword a couple parts where (IMHO) the phrasing could be a bit better Differential revision: https://reviews.llvm.org/D28758
-
Roman Lebedev authored
As noted in https://reviews.llvm.org/D141778#inline-1369900, we fail to produce splat shuffles from certain sequences of shuffles, that may have non-shuffles in the middle of seq. There is a big pitfail to avoid here: just because `isSplatValue()` says that all demanded elements are splat, we can't pick any random one of them, because some of them could be undef! We must ignore those!
-
LLVM GN Syncbot authored
-
Matt Arsenault authored
A bitcast of <10 x i32> to <5 x i64> was ending up on the stack. Instead of doing that, handle the case where the new type doesn't evenly divide but the elements do. Extract the individual elements and pad with undef. Avoids stack usage for bitcasts involving <5 x i64>. In some of these cases, later optimizations actually eliminated the stack objects but left behind the unused temporary stack object to final emission. Fixes: SWDEV-377548
-
Hui Xie authored
`subrange` is also a `tuple-like`. To avoid the add entire `subrange` dependencies to `tuple-like`, we need forward declaration of `subrange`. However, the class template constraints of `subrange` currently requires `__iterator/concepts.h`, which requires `<concepts>`. The problem is that currently `tuple-like` is used in several different places, including libc++ extension for pair constructors. we don't want to add `<concepts>` to pair and other stuff. So this change also created several small headers that `subrange`'s declaration needed inside `__iterator/concepts/` Differential Revision: https://reviews.llvm.org/D136268
-
Chris Lattner authored
The ConstantLike trait already static_asserts that operations implementing it have a single result and zero operands, so we don't need to redundantly check in Matchers.h The static assert is in `class ConstantLike` in OpDefinition.h Differential Revision: https://reviews.llvm.org/D141783
-
Markus Böck authored
The code currently attempting to recursively find uses of a deprecated def has a few deficiences: * It recurses into all def uses. This is problematic as it also causes any users of a def using a deprecated def, to be considered deprecated, causing a transitive chain of deprecated defs (see `H_ButNotTransitivelyInNonAnonymousDef` in test case for reproducer) * It did not recurse into other kinds of fields, such as list and DAGs This patch fixes the issue by reworking the code to properly recurse into inits and not to recurse into def uses unless they are anonymous defs. Since inits (including DAG, List and anonymous defs) are uniqued, the memoization is kept and remains profitable. Differential Revision: https://reviews.llvm.org/D141794
-
Kazu Hirata authored
-
Kazu Hirata authored
This patch uses the default parameters of countTrailingZeros, findFirstSet, and findLastSet, which are ZB_Width, ZB_Max, and ZB_Max, respectively.
-
Matt Arsenault authored
-
- Jan 15, 2023
-
-
Simon Pilgrim authored
A future patch needs isShuffleMaskInputInPlace defined earlier in the source file.
-
Matt Arsenault authored
These should obviously preserve the sign although the variety of these always confuses me.
-