- Jan 30, 2023
-
-
Craig Topper authored
This field is only initialized for register operands, move it into the struct to make that clear. This also fixes a potential bug where the field wasn't copied by the RISCVOperand copy constructor.
-
Craig Topper authored
Previously we parsed it as a symbol, and then accessed the name. This works, but seems like an unusual way to do it. This adds a custom parser that looks for an Identifier token containing one of the valid FRM strings. Differential Revision: https://reviews.llvm.org/D142833
-
Simon Pilgrim authored
Avoid using CHECK unless its for all possible RUNs
-
Peter Klausler authored
A test program shouldn't be able to crash the compiler by getting it to fold REPEAT() with an absurdly large repetition count. Differential Revision: https://reviews.llvm.org/D142770
-
Kazu Hirata authored
-
Peter Klausler authored
Semantics crashes when emitting runtime derived type information tables for a type that has user-defined I/O procedures declared outside the type with explicit INTERFACE blocks (as opposed to a GENERIC binding within the type). This is due to the runtime table constructor adding a table entry for each specific procedure of any explicit interface of the right kind (e.g., READ(UNFORMATTED)) that it found, rather than just the ones that pertain to the derived type in question. But semantics also wasn't checking such interfaces for distinguishable specific procedures, either. Clean these up, improve the spelling of defined I/O procedure kinds in error messages ("read(formatted)" rather than "READFORMATTED"), and make error messages stemming from macro expansions only have one "error:" prefix on the original message so that a new test would work. Differential Revision: https://reviews.llvm.org/D142769 -
Simon Pilgrim authored
ModRef.h is part of Support not IR Fixes clang-tidy warning
-
Simon Pilgrim authored
Fixes clang-tidy warning
-
Simon Pilgrim authored
Fixes clang-tidy warning
-
Kazu Hirata authored
The last uses of CRs were removed on Jan 17, 2023 in commit 61bb549c.
-
Kazu Hirata authored
-
Simon Pilgrim authored
Fixes clang-tidy warning
-
Simon Pilgrim authored
Fixes clang-tidy warning
-
Simon Pilgrim authored
We try to use X32 for tests on gnux32 triples
-
Peter Klausler authored
Array references like A(1) are commonly misparsed as function references, since the parser has almost no semantic context, and the parse tree is fixed up later by semantics once it can be disambiguated. In a case like A(I=1), however, the presence of an argument keyword must prevent conversion into an array reference. (It might still also be a structure constructor.) Differential Revision: https://reviews.llvm.org/D142765
-
Philipp Tomsich authored
The Ampere1A core supports a new fusion pattern that optimises the case of A+B+1 and A-B-1. Add support. Depends on D142396 Differential Revision: https://reviews.llvm.org/D142502
-
- Jan 29, 2023
-
-
Sanjay Patel authored
https://alive2.llvm.org/ce/z/xuvL46 This is the similar to the existing folds added with: D138853 / f2973327 7dbeb127 ...but with the and/or swapped.
-
Sanjay Patel authored
-
Simon Pilgrim authored
Fixes clang-tidy warning
-
Simon Pilgrim authored
We try to use X32 for tests on gnux32 triples
-
Simon Pilgrim authored
We try to use X32 for tests on gnux32 triples
-
Simon Pilgrim authored
We try to use X32 for tests on gnux32 triples
-
Simon Pilgrim authored
For 32/64-bit element 256-bit X86ISD::BLENDI shuffle masks, see if each sub-lane only references (plus undefs) a single input - in which case ensure the blend mask component for that lane ONLY references that input. This helps later subvector extraction/insertion nodes to peek through the blend node for that lane.
-
Matt Arsenault authored
-
Ivan Butygin authored
Differential Revision: https://reviews.llvm.org/D142810
-
Simon Pilgrim authored
[X86] lowerShuffleAsLanePermuteAndRepeatedMask - retain the per-lane undef elements and don't just copy the repeated mask lowerShuffleAsLanePermuteAndRepeatedMask expands a shuffle from shuffle(x,y,mask) to shuffle(shuffle(x,y,lanemask1),shuffle(x,y,lanemask2),repeatedinlanemask) However, we weren't making use of the fact that elements of the original mask might be undef - instead of fully applying the entire repeatedinlanemask to every lane, we can simplify the mask if we never demanded that element in the original mask. Yet another improvement addressing regressions from D127115 Differential Revision: https://reviews.llvm.org/D142536
-
Emmmer authored
RVV stands for "RISC-V V Extension", which adds 32 vector registers, and seven unprivileged CSRs (vstart, vxsat, vxrm, vcsr, vtype, vl, vlenb) to a base scalar RISC-V ISA. The base vector extension is intended to provide general support for data-parallel execution within the 32-bit instruction encoding space, with later vector extensions supporting richer functionality for certain domains. Reviewed By: DavidSpickett, kito-cheng Differential Revision: https://reviews.llvm.org/D141898
-
Ben Shi authored
Reviewed By: aykevl, MaskRay Differential Revision: https://reviews.llvm.org/D141197
-
Ben Shi authored
This patch fixes the inaccurate decoding of the offset operand of the conditional branch instructions. Reviewed By: aykevl Differential Revision: https://reviews.llvm.org/D140816
-
Kazu Hirata authored
If X is nonzero, NextPowerOf2(X - 1) is equivalent to llvm::bit_ceil(X). In this patch, std::max guarantees that X is nonzero.
-
Craig Topper authored
These two pieces of code were using a switch with a single case and a default that always returned. Replace with an if statement that early returns.
-
Liming Liu authored
-
Craig Topper authored
Differential Revision: https://reviews.llvm.org/D142596
-
Liming Liu authored
D137531 had once fixed the issue. However, it caused a crash during compiling llvm/unittests/IR/PatternMatch.cpp in stage-2. The reason is the predicator isDerivedFrom does not consider independent types if the derived type is dependent. This patch improves D137531 by adding an option to make isDerivedFrom consider independent types. Differential Revision: https://reviews.llvm.org/D142437
-
Lang Hames authored
Index 0 is reserved for anonymous symbols, which can't have the N_EXT bit set (since N_EXT means non-local scope, and non-local scope requires a name).
-
Matt Arsenault authored
Cleanup leftover typed pointer handling.
-
Peter Klausler authored
A test is crashing the compiler unexpectedly when built with MSVC; disable it with an XFAIL until it can be analyzed further.
-
Peter Klausler authored
f18 current ignores attempts to initialize (with =expr) things that are not objects, or allows meaningless initializations of things that have mistakenly been promoted to be objects. Fix by refusing to promote to objects names that have any attributes that cannot be applied to objects, and then catch data initializations of symbols that are not objects. Differential Revision: https://reviews.llvm.org/D142766
-
Matt Arsenault authored
This will allow tablegen to start directly marking intrinsics as dereferenceable in a useful way. Not sure if callsites should override or use the max.
-
Alexander Shaposhnikov authored
This diff extends D123345 by adding support for std::forward_like. Test plan: ninja check-clang check-clang-tools check-llvm Differential revision: https://reviews.llvm.org/D142430
-