- Jan 30, 2023
-
-
Craig Topper authored
Allows the compiler to de-virtualize some calls.
-
bixia1 authored
Currently, all the non-stable sorting algorithms are implemented via the straightforward quick sort. This will be fixed in the following PR. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D142678
-
Sergei Barannikov authored
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 Differential Revision: https://reviews.llvm.org/D142857
-
bixia1 authored
Previously, we choose the value at (lo + hi)/2 as a pivot for partitioning the data in [lo, hi). We now choose the median for the three values at lo, (lo + hi)/2, and (hi-1) as a pivot to match the std::qsort implementation. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D142679
-
Kshitij Jain authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D142856
-
Sergei Barannikov authored
* Add -fast-isel=false to func-alias.ll. The test was added as a SelectionDAG test. Without this option, FastISel successfully selects the call that had a ConstantExpr argument. * fast-isel-branch.ll couldn't be handled by FastISel. Now it can, hence the change in the stack offsets.
-
Kshitij Jain authored
This commit adds support for PLT based relocations. Specifically - 1. It adds logic to create a `PLTTableManager` in the `buildTables_ELF_i386` function, which is called as part of the post-prune JITLink passes. The `PLTTableManager` handles creating pointer jump stubs and related GOT entries for position independent code. 2. It also adds a pre-fixup pass to optimize away PLT based calls in position independent code, when possible. Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D142846
-
Kazu Hirata authored
For nonzero X, NextPowerOf2(X) is equivalent to llvm::bit_ceil(X + 1).
-
Peter Klausler authored
ENUMERATOR declarations are checking for conflicts between new enumerator names and names in both the local scope and scopes that contain it. ENUMERATOR declarations belong to the local scope and so only a conflict with a name therein is an error. (In short, use FindInScope rather than FindSymbol.) Differential Revision: https://reviews.llvm.org/D142773
-
Kazu Hirata authored
For nonzero X that is not a power of 2, NextPowerOf2(X) is equivalent to llvm::bit_ceil(X).
-
Kazu Hirata authored
For nonzero X, NextPowerOf2(X - 1) is equivalent to llvm::bit_ceil(X).
-
Lang Hames authored
This allows ranges to be sorted and used as map keys.
-
Peter Klausler authored
Test flang/test/Semantics/select-rank02.f90 has an unresolved failure when built with MSVC on an x86 Windows buildbot, but it passes on an Arm Windows buildbot. Change XFAIL to UNSUPPORTED to dodge an XPASS buildbot complaint on the Arm Windows buildbot.
-
Florian Hahn authored
-
Peter Klausler authored
We're letting immutable objects appear as DO index variables; catch and diagnose this error. Differential Revision: https://reviews.llvm.org/D142767
-
Sergei Barannikov authored
-
Sylvestre Ledru authored
Differential Revision: https://reviews.llvm.org/D142835
-
Philipp Tomsich authored
-
Philipp Tomsich authored
-
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
-