- Dec 01, 2021
-
-
Nikita Popov authored
Make sure that all pointers have the same load/store access type, rather than comparing pointer element types.
-
Bradley Smith authored
The REM DAG combine uses the visitDivLike functions to try and get an optimized DIV node to provide better codegen, however in some cases this visitDivLike call ends up in the BuildSDIVPow2 target hook, which in turn sometimes will return the same node passed in to indicate not to change it. The REM DAG combine does not anticipate this and creates a cycle in the DAG because of it. Fix this by ensuring any such optimized div node returned is distinct from the node being combined. Differential Revision: https://reviews.llvm.org/D114716
-
Simon Pilgrim authored
Reduce diff in D114582
-
David Green authored
-
Ties Stuij authored
This patch is part of a series that adds support for the PACBTI-M extension of the Armv8.1-M architecture, as detailed here: https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/armv8-1-m-pointer-authentication-and-branch-target-identification-extension The PACBTI-M specification can be found in the Armv8-M Architecture Reference Manual: https://developer.arm.com/documentation/ddi0553/latest The following people contributed to this patch: - Victor Campos - Ties Stuij Reviewed By: ostannard Differential Revision: https://reviews.llvm.org/D112425
-
Manuel Klimek authored
Fix bug where we'd read past the end of the tokens after merging _T macro strings.
-
Nikita Popov authored
Remove deprecated methods that are incompatible with opaque pointers. These have all been deprecated at some point prior to the LLVM 13 release.
-
Nikita Popov authored
Remove deprecated constructors that are incompatible with opaque pointers. These have been deprecated since before the LLVM 13 release.
-
Ties Stuij authored
This patch encapsulates decision logic about when and how to generate PAC/BTI related code. It's a part shared by PAC-RET, BTI placement, build attribute emission, etc, so it make sense committing it separately in order to unblock the aforementioned parts, which can proceed concurrently. This patch adds a few member functions to `ARMFunctionInfo`, which are currently unused, therefore there is no testing for them at the moment. This code is tested in follow-up PAC/BTI code gen patches. This patch is part of a series that adds support for the PACBTI-M extension of the Armv8.1-M architecture, as detailed here: https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/armv8-1-m-pointer-authentication-and-branch-target-identification-extension The PACBTI-M specification can be found in the Armv8-M Architecture Reference Manual: https://developer.arm.com/documentation/ddi0553/latest The following people contributed to this patch: - Momchil Velikov - Ties Stuij Reviewed By: danielkiss Differential Revision: https://reviews.llvm.org/D112423
-
Ties Stuij authored
emit __ARM_FEATURE_BTI_DEFAULT and __ARM_FEATURE_PAC_DEFAULT defines when those features have been enabled This patch is part of a series that adds support for the PACBTI-M extension of the Armv8.1-M architecture, as detailed here: https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/armv8-1-m-pointer-authentication-and-branch-target-identification-extension The PACBTI-M specification can be found in the Armv8-M Architecture Reference Manual: https://developer.arm.com/documentation/ddi0553/latest The following people contributed to this patch: - Victor Campos - Ties Stuij Reviewed By: ostannard Differential Revision: https://reviews.llvm.org/D112422
-
Nikita Popov authored
Previously this simply crashed.
-
Ties Stuij authored
Handle branch protection option on the commandline as well as a function attribute. One patch for both mechanisms, as they use the same underlying parsing mechanism. These are recorded in a set of LLVM IR module-level attributes like we do for AArch64 PAC/BTI (see https://reviews.llvm.org/D85649): - command-line options are "translated" to module-level LLVM IR attributes (metadata). - functions have PAC/BTI specific attributes iff the __attribute__((target("branch-protection=...))) was used in the function declaration. - command-line option -mbranch-protection to armclang targeting Arm, following this grammar: branch-protection ::= "-mbranch-protection=" <protection> protection ::= "none" | "standard" | "bti" [ "+" <pac-ret-clause> ] | <pac-ret-clause> [ "+" "bti"] pac-ret-clause ::= "pac-ret" [ "+" <pac-ret-option> ] pac-ret-option ::= "leaf" ["+" "b-key"] | "b-key" ["+" "leaf"] b-key is simply a placeholder to make it consistent with AArch64's version. In Arm, however, it triggers a warning informing that b-key is unsupported and a-key will be selected instead. - Handle _attribute_((target(("branch-protection=..."))) for AArch32 with the same grammer as the commandline options. This patch is part of a series that adds support for the PACBTI-M extension of the Armv8.1-M architecture, as detailed here: https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/armv8-1-m-pointer-authentication-and-branch-target-identification-extension The PACBTI-M specification can be found in the Armv8-M Architecture Reference Manual: https://developer.arm.com/documentation/ddi0553/latest The following people contributed to this patch: - Momchil Velikov - Victor Campos - Ties Stuij Reviewed By: vhscampos Differential Revision: https://reviews.llvm.org/D112421
-
David Green authored
Given a min(max(fptosi, INT_MIN), INT_MAX) with the correct constants, we can now generate a fptosi.sat. But in the arm backend, the constant can be treated as high cost, pulling it out of the basic block in a way that the DAG combine can no longer see it. This teaches it again that it is a low cost constant, not worth hoisting out. Differential Revision: https://reviews.llvm.org/D114380
-
Manuel Klimek authored
Previously, clang-format would not correctly identify preprocessor directives directly following a conflict marker, which would result in violating the formatter's invariants. The provided test fails in assert mode before this change.
-
Jeroen Dobbelaere authored
This reverts commit 0c047a8e. A number of buildbots started failing. Reverting for now.
-
Florian Hahn authored
The memset_chk library function should match memset's attributes with respect of memory effects (argmemonly, writeonly). It also does not raise exceptions. It may not return, in case it aborts the program. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D114793
-
David Green authored
-
Jeroen Dobbelaere authored
The invocation of a unary or binary operator for type-dependent expressions is represented as a CXXOperatorCallExpr. Upon template instantiation, TreeTransform::RebuildCXXOperatorCallExpr checks for the case of an overloaded operator, but not for a (non-ObjC) PseudoObject, and will directly create a UnaryOperator or BinaryOperator. Generalizing commit 0f99537e from @akyrtzi to handle non-ObjC pseudo objects (and also handle the case of unary pseudo object inc/dec). This fixes https://bugs.llvm.org/show_bug.cgi?id=51855 Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D111639
-
Matthias Springer authored
However, since CallOps have no aliasing OpResults, their OpOperands always bufferize out-of-place. This change removes `bufferizesToMemoryWrite` from `CallOpInterface`. This method was called, but its return value did not matter. Differential Revision: https://reviews.llvm.org/D114616
-
Shraiysh Vaishay authored
Fix for the case when there are no instructions in the entry basic block before the call to `createSections` Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D114143
-
Nikita Popov authored
BECounts are guaranteed to be integers nowadays.
-
Nikita Popov authored
Track which SCEVs are used as ExactNotTaken counts in BackedgeTakenInfo structures, so we can directly determine which loops need to be invalidated, rather than iterating over all BECounts. This gives a small compile-time improvement on average, but the motivation here is more to ensure there are no degenerate cases, if the number of backedge taken counts is large. Differential Revision: https://reviews.llvm.org/D114784
-
Dylan McKay authored
I always forget this variable, and the distinction between 'LLVM_TARGET_ARCH', and this variable is only documented on the 'cross compiling' page, which I never spot and always end up searching through the codebase for. This patch adds the variable to the Sphinx CMake documentation so that it is easily findable in the official LLVM docs. Reviewed By: probinson Differential Revision: https://reviews.llvm.org/D96014
-
Alexander Belyaev authored
Differential Revision: https://reviews.llvm.org/D114852
-
Florian Hahn authored
This allows for better optimization of 'stores-of-existing-values' and possibly helps passes further down the pipeline. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D113712
-
Guillaume Chatelet authored
-
Kiran Chandramohan authored
For unimplemented patterns we revert to using TODO hard failures instead of notifyMatchFailure. For fir.select_type revert to using mlir::emiterror. For the fir.embox TODO on a type with len params we cannot add a test since the type cannot be converted to llvm. Adding negative tests using not and checking for the error message. TODO exits with an error in a build without assertion but aborts in a build with assertions. Abort requires using not with the --crash option. The two different usages of not is handled by using a custom command %not_todo_cmd which is converted to not or not --crash depending on the presence or absence of assertions. Using llvm-config to check the presence of assertions. Reviewed By: clementval, awarzynski Differential Revision: https://reviews.llvm.org/D114371
-
Chuanqi Xu authored
-
Valentin Clement authored
This patch introduces a bunch of builder functions to create function calls to runtime reduction functions. This patch is part of the upstreaming effort from fir-dev branch. This patch failed previously because a macro was missing. Reviewed By: awarzynski Differential Revision: https://reviews.llvm.org/D114460 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
mleair <leairmark@gmail.com>
-
Markus Lavin authored
Fix printing of LoopNestPasses when using the opt pipeline printer option -print-pipeline-passes. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D114771
-
Thomas Raoux authored
The new affine map generated by linearizeCollapsedDims should not drop dimensions. We need to make sure we create a map with at least as many dimensions as the source map. This prevents FoldProducerReshapeOpByLinearization from generating invalid IR. This solves regression in IREE due to https://github.com/llvm/llvm-project/commit/e4e4da86aff5606ef792d987a3ec85639219228c Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D114838 This reverts commit 9a844c2a.
-
MaheshRavishankar authored
This reverts commit bc38673e.
-
MaheshRavishankar authored
The new affine map generated by linearizeCollapsedDims should not drop dimensions. We need to make sure we create a map with at least as many dimensions as the source map. This prevents FoldProducerReshapeOpByLinearization from generating invalid IR. This solves regression in IREE due to https://github.com/llvm/llvm-project/commit/e4e4da86aff5606ef792d987a3ec85639219228c Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D114838
-
Sergey Dmitriev authored
This patch changes clang-offload-bundler to use the original file extension for the device archive member when unbundling archives instead of printing a warning and defaulting to ".o". Differential Revision: https://reviews.llvm.org/D114776
-
Qiu Chaofan authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D110616
-
Vitaly Buka authored
Compress by factor 4x, takes about 10ms per 8 MiB block. Depends on D114498. Reviewed By: morehouse Differential Revision: https://reviews.llvm.org/D114503
-
Snehasish Kumar authored
The first 8b of each raw profile section need to be aligned to 8b since the first item in each section is a u64 count of the number of items in the section. Summary of changes: * Assert alignment when reading counts. * Update test to check alignment, relax some size checks to allow padding. * Update raw binary inputs for llvm-profdata tests. Differential Revision: https://reviews.llvm.org/D114826
-
Jonas Devlieghere authored
See ongoing discussion in https://reviews.llvm.org/D112603.
-
Phoebe Wang authored
-
Jacques Pienaar authored
-