- Oct 25, 2021
-
-
Alex Zinenko authored
In several cases, operation result types can be unambiguously inferred from operands and attributes at operation construction time. Stop requiring the user to provide these types as arguments in the ODS-generated constructors in Python bindings. In particular, handle the SameOperandAndResultTypes and FirstAttrDerivedResultType traits as well as InferTypeOpInterface using the recently added interface support. This is a significant usability improvement for IR construction, similar to what C++ ODS provides. Depends On D111656 Reviewed By: gysit Differential Revision: https://reviews.llvm.org/D111811
-
Alex Zinenko authored
Introduce the initial support for operation interfaces in C API and Python bindings. Interfaces are a key component of MLIR's extensibility and should be available in bindings to make use of full potential of MLIR. This initial implementation exposes InferTypeOpInterface all the way to the Python bindings since it can be later used to simplify the operation construction methods by inferring their return types instead of requiring the user to do so. The general infrastructure for binding interfaces is defined and InferTypeOpInterface can be used as an example for binding other interfaces. Reviewed By: gysit Differential Revision: https://reviews.llvm.org/D111656
-
Kerry McLaughlin authored
This patch enables the use of reciprocal estimates for SVE when both the -Ofast and -mrecip flags are used. Reviewed By: david-arm, paulwalker-arm Differential Revision: https://reviews.llvm.org/D111657
-
Nikita Popov authored
To save people not familiar with InstCombine from creating patches that are immediately rejected by policy.
-
Max Kazantsev authored
We observe a hang within iterativelySimplifyCFG due to infinite loop execution. Currently, there is no limit to this loop, so in case of bug it just works forever. This patch adds an assert that will break it after 1000 iterations if it didn't converge.
-
David Green authored
-
Raphael Isemann authored
clang::Optional is just an alias used within Clang.
-
LLVM GN Syncbot authored
-
Manas authored
This patch selects all cmake options and passes them to global cmake command while building LLVM inside satest docker container. Prior to this, the cmake command was hard-coded and this would consume a huge amount of memory while building. There was no support to pass extra cmake options for the build, except for changing the command manually. This patch allows testers to pass all "-D*" cmake options to the build. Reviewed By: vsavchenko Differential Revision: https://reviews.llvm.org/D105447 Patch by: @manas (Manas Gupta)
-
Balazs Benics authored
This patch adds a checker checking `std::string` operations. At first, it only checks the `std::string` single `const char *` constructor for nullness. If It might be `null`, it will constrain it to non-null and place a note tag there. Reviewed By: martong Differential Revision: https://reviews.llvm.org/D111247
-
Pavel Labath authored
-
Michał Górny authored
Return results of URI parsing as 'struct URI' instead of assigning them via output parameters. Differential Revision: https://reviews.llvm.org/D112314
-
Nikita Popov authored
Currently strip.invariant/launder.invariant are handled by constructing constant expressions with the intrinsics skipped. This takes an alternative approach of accumulating the offset using stripAndAccumulateConstantOffsets(), with a flag to look through invariant.group intrinsics. Differential Revision: https://reviews.llvm.org/D112382
-
Florian Hahn authored
At the moment a dummy entry block is created at the beginning of VPlan construction. This dummy block is later removed again. This means it is not easy to identify the VPlan header block in a general fashion, because during recipe creation it is the single successor of the entry block, while later it is the entry block. To make getting the header easier, just skip creating the dummy block. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D111299
-
Michał Górny authored
Differential Revision: https://reviews.llvm.org/D112365
-
Jingu Kang authored
%3:gpr32 = ORRWrs $wzr, %2, 0 %4:gpr64 = SUBREG_TO_REG 0, %3, %subreg.sub_32 If AArch64's 32-bit form of instruction defines the source operand of ORRWrs, we can remove the ORRWrs because the upper 32 bits of the source operand are set to zero. Differential Revision: https://reviews.llvm.org/D110841
-
Pavel Labath authored
-
Pavel Labath authored
Front-load the first_valid_code_address check, so that we avoid creating the function object (instead of simply refusing to use it in queries). Differential Revision: https://reviews.llvm.org/D112310
-
Nikita Popov authored
Use dyn_cast_or_null and convert one of the checks into an assertion. SCEV is a per-function analysis.
-
Shraiysh Vaishay authored
Splitting the WsLoop tests they were getting harder to debug with the offsets over 100 for some of them. Reviewed By: clementval Differential Revision: https://reviews.llvm.org/D112407
-
Kazu Hirata authored
This patch fixes: llvm/lib/Analysis/ScalarEvolution.cpp:12770:37: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
-
Max Kazantsev authored
Mass forgetMemoizedResults can be done more efficiently than bunch of individual invocations of helper because we can traverse maps being updated just once, rather than doing this for each invidivual SCEV. Should be NFC and supposedly improves compile time. Differential Revision: https://reviews.llvm.org/D112294 Reviewed By: reames
-
Max Kazantsev authored
When forgetting multiple SCEVs, rather than doing this one by one, we can instead use mass updates. We plan to make them more efficient than they are now, potentially improving compile time. Differential Revision: https://reviews.llvm.org/D111602 Reviewed By: reames
-
Max Kazantsev authored
This patch changes signature of forgetMemoizedResults to be able to work with multiple SCEVs. Usage will come in follow-ups. We also plan to optimize it in the future to work faster than individual invalidation updates. Should not change behavior in any sense. Split-off from D111602. Differential Revision: https://reviews.llvm.org/D112293 Reviewed By: reames
-
Shivam Gupta authored
This is only for consistency with test cases. Differential Revision: https://reviews.llvm.org/D112364
-
Nicolas Vasilache authored
This removes duplication and makes nesting more clear. It also reduces the amount of changes necessary for exposing future options. Differential revision: https://reviews.llvm.org/D112344
-
Max Kazantsev authored
Follow-up from D112295, suggested by Nikita: we can avoid tracking users of SCEVConstants because dropping their cached info is unlikely to give any new prospects for fact inference, and it should not introduce any correctness problems.
-
Max Kazantsev authored
This patch introduces API that keeps track of SCEVs users of another SCEVs, required to handle invalidations of users along with operands that comes in follow-up patches. Differential Revision: https://reviews.llvm.org/D112295 Reviewed By: reames
-
Mehdi Amini authored
This allows to clear an OpPassManager and populated it again with a new pipeline, while preserving all the other options (including instrumentations). Differential Revision: https://reviews.llvm.org/D112393
-
Chen Zheng authored
Add a new preparation pattern in PPCLoopInstFormPrep pass to reduce register pressure. Reviewed By: jsji Differential Revision: https://reviews.llvm.org/D108750
-
Jacques Pienaar authored
Some tools assume all regions have names, provide one to avoid breakage.
-
Jinsong Ji authored
Address comments in D111078. Reviewed By: hubert.reinterpretcast, lkail Differential Revision: https://reviews.llvm.org/D112272
-
Vitaly Buka authored
This reverts a part of commit 8cd51a69 and 5bf24f05 to fix Windows.
-
Craig Topper authored
-
Vitaly Buka authored
Using divisions by non power of two makes a difference on x86_64 and aarch64 benchmarks.
-
Vitaly Buka authored
-
Vitaly Buka authored
-
Jacques Pienaar authored
Following https://llvm.discourse.group/t/psa-ods-generated-accessors-will-change-to-have-a-get-prefix-update-you-apis/4476, this follows flipping these dialects to _Both prefixed form. This changes the accessors to have a prefix. This was possibly mostly without breaking breaking changes if the existing convenience methods were used. (https://github.com/jpienaar/llvm-project/blob/main/clang-tools-extra/clang-tidy/misc/AddGetterCheck.cpp was used to migrate the callers post flipping, using the output from Operator.cpp) Differential Revision: https://reviews.llvm.org/D112383
-
Fangrui Song authored
GNU ld doesn't support `--no-pic-executable`. `-p` has been removed from likely the only use case (Linux kernel) for over 2.5 years: https://git.kernel.org/linus/091bb549f7722723b284f63ac665e2aedcf9dec9 `--no-add-needed` was the pre-binutils-2.23 spelling for `--no-copy-dt-needed-entries`. The legacy alias is irrelevant in 2021.
-
Jacques Pienaar authored
Split out renaming from D112383 into standalone change.
-