- Jul 06, 2022
-
-
Muhammad Omair Javaid authored
This patch removes Xfail decorator from TestLoadUnload.py as it is now passing on Arm/Linux buildbot.
-
Dmitri Gribenko authored
-
LLVM GN Syncbot authored
-
Dmitri Gribenko authored
new clang-tidy checker for assignments within the condition clause of an 'if' statement. Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D127114
-
Craig Topper authored
-
Craig Topper authored
This should make it easier to add more peepholes in the future.
-
Craig Topper authored
Instead of deleting nodes as we go, delete all dead nodes if a change is made. This allows adding peepholes that might make multiple nodes dead.
-
Jay Foad authored
According to D127731, PPCTLSDynamicCall does not preserve LiveIntervals, so stop claiming that it does and remove the code that tried to repair them. NFCI. Differential Revision: https://reviews.llvm.org/D128421
-
Joe Nash authored
-
Joseph Huber authored
Libomptarget grew out of a project that was originally not in LLVM. As we develop libomptarget this has led to an increasingly large clash between the naming conventions used. This patch fixes most of the variable names that did not confrom to the LLVM standard, that is `VariableName` for variables and `functionName` for functions. This patch was primarily done using my editor's linting messages, if there are any issues I missed arising from the automation let me know. Reviewed By: saiislam Differential Revision: https://reviews.llvm.org/D128997
-
Sam McCall authored
The idea is: - a parse failure is detected when all heads die when trying to shift the next token - we can recover by choosing a nonterminal we're partway through parsing, and determining where it ends through nonlocal means (e.g. matching brackets) - we can find candidates by walking up the stack from the (ex-)heads - the token range is defined using heuristics attached to grammar rules - the unparsed region is represented in the forest by an Opaque node This patch has the core GLR functionality. It does not allow recovery heuristics to be attached as extensions to the grammar, but rather infers a brace-based heuristic. Expected followups: - make recovery heuristics grammar extensions (depends on D127448) - add recovery to our grammar for bracketed constructs and sequence nodes - change the structure of our augmented `_ := start` rules to eliminate some special-cases in glrParse. - (if I can work out how): avoid some spurious recovery cases described in comments (Previously mistakenly committed as a0f4c10a) Differential Revision: https://reviews.llvm.org/D128486
-
Sanjay Patel authored
Tests can fail if a value name (%sqrt becomes SQRT) and that is the same as the RUN prefix.
-
Sanjay Patel authored
-
Yuanfang Chen authored
By LangRef, hoisting token-returning instructions obsures the origin so it should be skipped. Found this issue while investigating a CoroSplit pass crash. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D129025
-
Markus Böck authored
With the exceptions of AttrOrTypeParameter and DerivedAttr, all of MLIR consistently uses $_ctxt as the substitute variable for the MLIRContext in TableGen C++ code. Usually this does not matter unless one where to reuse some code in multiple fields but it is still needlessly inconsistent and prone to error. This patch fixes that by consistently using _$ctxt everywhere. Differential Revision: https://reviews.llvm.org/D129153
-
Joseph Huber authored
We use LLD to perform AMDGPU linking. This linker accepts some arguments through the `-plugin-opt` facilities. These options match what `Clang` will output when given the same input. Reviewed By: yaxunl Differential Revision: https://reviews.llvm.org/D128923
-
Pengxuan Zheng authored
It doesn't look like there is anything llvm-lib needs to handle based on Microsoft's description of the flag. https://docs.microsoft.com/en-us/cpp/build/reference/managing-a-library?view=msvc-170 Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D129032
-
Jonas Devlieghere authored
This reverts commit b15b1421 because it breaks GreenDragon [1]. The bot has been red for several days, so reverting to green while I take a look. [1] https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/45012/
-
Gabor Marton authored
Depends on D128068. Added a new test code that fails an assertion in the baseline. That is because `getAPSIntType` works only with integral types. Differential Revision: https://reviews.llvm.org/D126779
-
Gabor Marton authored
In `RegionStore::getBinding` we call `evalCast` unconditionally to align the stored value's type to the one that is being queried. However, the stored type might be the same, so we may end up having redundant `SymbolCasts` emitted. The solution is to check whether the `to` and `from` type are the same in `makeNonLoc`. Note, we can't just do type equivalence check at the beginning of `evalCast` because when `evalCast` is called from `getBinding` then the original type (`OriginalTy`) is not set, so one operand is missing for the comparison. In `evalCastSubKind(nonloc::SymbolVal)` when the original type is not set, we get the `from` type via `SymbolVal::getType()`. Differential Revision: https://reviews.llvm.org/D128068
-
LLVM GN Syncbot authored
-
Zaara Syeda authored
This is a fix for a crash reported for https://reviews.llvm.org/D118808 The fix is to only consider PHINodes which are induction phis. Fixes #55529 Differential Revision: https://reviews.llvm.org/D125990
-
Chris Bieneman authored
HLSL vector types are ext_vector types, but they are also exposed via a template syntax `vector<T, #>`. This is morally equavalent to the code: ```c++ template <typename T, int Size> using vector = T __attribute__((ext_vector_type(Size))) ``` The problem is that templates aren't supported before HLSL 2021, and type aliases still aren't supported in HLSL. To resolve this (and other issues where HLSL can't represent its own types), we rely on an external AST & Sema source being registered for HLSL code. This patch adds the HLSLExternalSemaSource and registers the vector type alias. Depends on D127802 Differential Revision: https://reviews.llvm.org/D128012
-
Min-Yih Hsu authored
- Applying CallOpInterface on CallOp and InvokeOp. - Applying CallableInterface on LLVMFuncOp. We're testing the changes using CallGraph, which uses both interfaces. Differential Revision: https://reviews.llvm.org/D129026
-
Jay Foad authored
A few miscellaneous comment, whitespace and indentation tweaks.
-
Nikita Popov authored
Apart from the global, the IR does not appear to be relevant for the test. Drop it, to remove the dependence on the sdiv constant expression.
-
David Green authored
This in an extension to the code added in D123911 which added vector combine folding of shuffle-select patterns, attempting to reduce the total amount of shuffling required in patterns like: %x = shuffle %i1, %i2 %y = shuffle %i1, %i2 %a = binop %x, %y %b = binop %x, %y shuffle %a, %b, selectmask This patch extends the handing of shuffles that are dependent on one another, which can arise from the SLP vectorizer, as-in: %x = shuffle %i1, %i2 %y = shuffle %x The input shuffles can also be emitted, in which case they are treated like identity shuffles. This patch also attempts to calculate a better ordering of input shuffles, which can help getting lower cost input shuffles, pushing complex shuffles further down the tree. This is a recommit with some additional checks for supported forms and out-of-bounds mask elements, with some extra tests. Differential Revision: https://reviews.llvm.org/D128732
-
Nikita Popov authored
This makes it easier to modify the test without having to renumber everything.
-
- Jul 05, 2022
-
-
Stella Stamenova authored
This broke the windows mlir bot: https://lab.llvm.org/buildbot/#/builders/13/builds/22743 This reverts commit daeb2dce and 537db495.
-
Simon Pilgrim authored
We were only using the N1C scalar/splat value once, so for clarity use isAllOnesOrAllOnesSplat instead if we actually need it.
-
Simon Pilgrim authored
[DAG] foldAddSubOfSignBit - don't bother creating the new shift node unless constant folding succeeds Noticed by inspection - the new shift is only ever used if the constant fold occurs
-
Groverkss authored
"attachment" was a temporary name chosen for the information attached to a variable in a PresburgerSpace. After the disambiguation of "variables" and "identifiers" in PresburgerSpace, we use the word "identifiers" for this information, since this information is used to "identify" these variables. Reviewed By: arjunp Differential Revision: https://reviews.llvm.org/D128751
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D128445
-
Ben Dunbobbin authored
See: https://reviews.llvm.org/D128195
-
Matthias Springer authored
-
Matthias Springer authored
This helper function is no longer needed. Differential Revision: https://reviews.llvm.org/D129145
-
Nikita Popov authored
This reverts commit 4e545bdb. The newly added test is the third infinite combine loop caused by this change. In this case, it's a combination of the branch to common dest and jump threading folds that keeps peeling off loop iterations. The core problem here is that we ideally would not thread over loop backedges, both because it is potentially non-profitable (it may break canonical loop structure) and because it may result in these kinds of loops. Unfortunately, due to the lack of a dominator tree in SimplifyCFG, there is no good way to prevent this. While we have LoopHeaders, this is an optional structure and we don't do a good job of keeping it up to date. It would be fine for a profitability check, but is not suitable for a correctness check. So for now I'm just giving up here, as I don't see a good way to robustly prevent infinite combine loops. Fixes https://github.com/llvm/llvm-project/issues/56203.
-
Matthias Springer authored
The result shape of a rank-reducing subview cannot be inferred in the general case. Just the result rank is not enough. The only thing that we can infer is the layout map. This change also improves the bufferization patterns of tensor.extract_slice and tensor.insert_slice to fully support rank-reducing operations. Differential Revision: https://reviews.llvm.org/D129144
-
Joe Nash authored
Modifies the GCNDPPCombine pass to enable DPP formation for the new DPP instruction in gfx11, namely VOP3 encoded instructions with DPP and VOPC with DPP. Depends on D128656 Reviewed By: #amdgpu, rampitec Differential Revision: https://reviews.llvm.org/D128682
-
Matthias Springer authored
Insert -split-input-file flag to make the test cases more stable. Differential Revision: https://reviews.llvm.org/D129143
-