- Dec 01, 2022
-
-
Lorenzo Chelini authored
-
Valentin Clement authored
This line should not have made it to the final patch.
-
Vlad Serebrennikov authored
P1787: "CWG360 is resolved by applying access control to using-declarations." [[ http://eel.is/c++draft/class.access#general-4.sentence-3 | class.access.general#4 ]]: "When a using-declarator is named, access control is applied to it, not to the declarations that replace it." Reviewed By: #clang-language-wg, aaron.ballman Differential Revision: https://reviews.llvm.org/D139090
-
Lorenzo Chelini authored
pack(unpack(x)) -> x Reviewed By: hanchung Differential Revision: https://reviews.llvm.org/D138917
-
Lorenzo Chelini authored
- `DenseArrayStrictlyPositive` all elements are required to be > 0. Returns true if the range is empty. - `DenseArrayNonNegative` all elements are required to be >= 0. Returns true if the range is empty. Both constraints will simplify verifier logic as we move from using `I64ArrayAttr` to `DenseI64ArrayAttr`. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D138988
-
Simon Pilgrim authored
Reported by D138359 - the overrides matched the base class schedule definition (its been flagged as WriteMicrocoded instead of WriteSystem but the models define both the same)
-
Anton Sidorenko authored
To check reassociation correctness for RISCV, we must ensure that the root and it's sibling have equal rounding modes (for floating point instructions). `hasReassociableSibling` is a good place to make additional target-dependend checks. This patch allows us to enable default machine combiner mechanism to gather reassociation candidates on RISCV. Differential Revision: https://reviews.llvm.org/D138302
-
Valentin Clement authored
Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D138989
-
Tomas Matheson authored
Buildbots unhappy about constexpr function. This reverts commit 450de800.
-
Tomas Matheson authored
The TargetParser depends heavily on a collection of macros and enums to tie together information about architectures, CPUs and extensions. Over time this has led to some pretty awkward API choices. For example, recently a custom operator-- has been added to the enum, which effectively turns iteration into a graph traversal and makes the ordering of the macro calls in the header significant. More generally there is a lot of string <-> enum conversion going on. I think this shows the extent to which the current data structures are constraining us, and the need for a rethink. Key changes: - Get rid of Arch enum, which is used to bind fields together. Instead of passing around ArchKind, use the named ArchInfo objects directly or via references. - The list of all known ArchInfo becomes an array of pointers. - ArchKind::operator-- is replaced with ArchInfo::implies(), which defines which architectures are predecessors to each other. This allows features from predecessor architectures to be added in a more intuitive way. - Free functions of the form f(ArchKind) are converted to ArchInfo::f(). Some functions become unnecessary and are deleted. - Version number and profile are added to the ArchInfo. This makes comparison of architectures easier and moves a couple of functions out of clang and into AArch64TargetParser. - clang::AArch64TargetInfo ArchInfo is initialised to Armv8a not INVALID. - AArch64::ArchProfile which is distinct from ARM::ArchProfile - Give things sensible names and add some comments. Differential Revision: https://reviews.llvm.org/D138792
-
Tomas Matheson authored
Differential Revision: https://reviews.llvm.org/D138753
-
Tomas Matheson authored
Differential Revision: https://reviews.llvm.org/D138754
-
Simon Pilgrim authored
Reported by D138359 - the overrides matched the base class schedule definition (its been flagged as WriteMicrocoded instead of WriteSystem but the models define both the same)
-
Simon Pilgrim authored
Reported by D138359 - the overrides matched the base class schedule definition (in the case of VPERMDYrr it was entirely replacing uses of WriteVarShuffle256 so could that could be adjusted directly)
-
Simon Pilgrim authored
Reported by D138359 - the overrides matched the base class schedule definition
-
Sam McCall authored
Really we want these to be shown to the client, but the path to do so involves storing them in Bandaid for https://github.com/clangd/clangd/issues/1408 See https://github.com/clangd/clangd/issues/1399 for motivation Differential Revision: https://reviews.llvm.org/D139088
-
Florian Hahn authored
-
Nicolas Vasilache authored
Differential Revision: https://reviews.llvm.org/D139094
-
Florian Hahn authored
This keeps a clearer separation between tests and avoids growing the libcalls.ll test too large.
-
Kadir Cetinkaya authored
ASTMatchers are pulling in lots of dependencies that we don't really need for just finding a decl based on name. So use a simple RAV instead. Differential Revision: https://reviews.llvm.org/D139093
-
LLVM GN Syncbot authored
-
LLVM GN Syncbot authored
-
WANG Xuerui authored
Add ELFObjectFileBase::getLoongArchFeatures, and return the proper ELF relative reloc type for LoongArch. Reviewed By: MaskRay, SixWeining Differential Revision: https://reviews.llvm.org/D138016
-
David Sherwood authored
This reverts commit 45adca0f.
-
Nicolas Vasilache authored
Revert "[WIP] Add support for MMA conversion for 1-D vector.transfer followed by a broadcast to 2-D" This reverts commit 7db25f78. This was mistakently stacked below (and committed) along with an NFC change.
-
Kadir Cetinkaya authored
-
Nicolas Vasilache authored
Make more systematic use of `notifyMatchFailure`.
-
Nicolas Vasilache authored
Differential Revision: https://reviews.llvm.org/D139040
-
David Sherwood authored
Fixes an issue introduced by D138588. We should only run the test on a aarch64 registered target since it makes use of a target-only flag.
-
Jean Perier authored
Use recently added hlfir.associate/hlfir.end_associate to deal with the cases where the actual argument is an expression. Differential Revision: https://reviews.llvm.org/D139009
-
David Sherwood authored
This reverts commit 279c0a83.
-
Guillaume Chatelet authored
This patch increases precision by performing the integer divivion after the multiplication.
-
Valentin Clement authored
Record type was not correctly retrived so the runtime call was not produced correctly. Fix how the record type is retrived so the correct call is produced. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D139084
-
Valentin Clement authored
In D139019 the assumption was made that the rhs was also the MutableBox but this is not a constraint. Use genExprBox instead. Also the allowed conversion in D139019 was not correct. Remoed it since it is not needed anymore. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D139081
-
Guillaume Chatelet authored
Differential Revision: https://reviews.llvm.org/D138994
-
Kadir Cetinkaya authored
-
Guillaume Chatelet authored
Broke build bot This reverts commit 186a15f7.
-
Guillaume Chatelet authored
Differential Revision: https://reviews.llvm.org/D138994
-
Kadir Cetinkaya authored
Creates a one to many mapping, by returning all the possible locations providing a symbol. Also includes an "is definition" signal for the location, that can be used for ranking afterwards. This also takes care of stdlib symbols by having a variant of locations. Depends on D135859. Differential Revision: https://reviews.llvm.org/D135953
-
serge-sans-paille authored
This avoids repeated calls to strlen while we already know its value. When preprocessing sqlite3.c, this gives a surprising 2% speedup. Full benchmark available here: https://llvm-compile-time-tracker.com/compare.php?from=d14c2d408dccd8c6defa7d151e9a96be3cac8cc3&to=04f0641c1cbdcd0bdbd11cd910ca6091420bf52e&stat=instructions:u Recommit 18244321, with restored '\0' at the end of buffer name. Differential Revision: https://reviews.llvm.org/D138555
-