- Nov 18, 2022
-
-
Jay Foad authored
isLiteralConstant and isLiteralConstantLike were similar to !isInlineConstant with slight differences like handling isReg operands. To avoid a profusion of similar functions with undocumented differences, this patch removes all the isLiteralConstant* variants. Callers are responsible for handling the isReg case. Differential Revision: https://reviews.llvm.org/D125759
-
Matt Arsenault authored
-
Jonas Paulsson authored
Add support for this GCC option which has the purpose of disallowing text relative accesses of module local symbols with PIC. In effect, this changes the code model to "medium". Reviewed By: uweigand, efriedma, MaskRay Differential Revision: https://reviews.llvm.org/D137044
-
Philip Reames authored
It was pointed out in review of D137140 that this case should be impossible. This patch converts an existing bailout into an assert instead.
-
Jordan Rupprecht authored
Some test cases are already marked @skipIfNoSBHeaders, but they make use of SBAPI headers in test setup. The setup will fail if the headers are missing, so it is too late to wait until the test case to apply the skip annotation. In addition to allowing this to apply to entire classes, I also changed all the existing annotations from test cases to test classes where necessary/appropriate. Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D138181
-
Tomas Matheson authored
Differential Revision: https://reviews.llvm.org/D138019
-
Alex Brachet authored
-
- Nov 17, 2022
-
-
Tom Eccles authored
Following RFC at https://discourse.llvm.org/t/rfc-ffp-contract-default-value/66301 This adds the `fastmath<contract>` attribute to `fir.call` and some floating point arithmetic operations (hence the many test changes). Instead of testing for this specific attribute, I am using a regular expression to match any attributes.
-
Louis Dionne authored
-
luxufan authored
If globals-aa is enabled, because of the deletion of memory instructions, there may be call instruction that is not in ModOrRefSet but is a MemoryUseOrDef. This causes the crash in the process of cloning uses and defs. Fixes https://github.com/llvm/llvm-project/issues/58719 Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D137553
-
Bradley Smith authored
When a PTRUE of non-element size is encountered, the PTEST optimization logic bails out since it cannot handle that type of PTRUE. Instead, it should be treated as a generic predicate to allow later optimizations trigger. Differential Revision: https://reviews.llvm.org/D138116
-
Sanjay Patel authored
Based on an example in issue #17113
-
Sanjay Patel authored
-
Louis Dionne authored
Some platforms don't provide all C library headers. In practice, libc++ only requires a few C library headers to exist, and only a few functions on those headers. Missing functions that libc++ doesn't need for its own implementation are handled properly by the using_if_exists attribute, however a missing header is currently a hard error when we try to do #include_next. This patch should make libc++ more flexible on platforms that do not provide C headers that libc++ doesn't actually require for its own implementation. The only downside is that it may move some errors from the #include_next point to later in the compilation if we actually try to use something that isn't provided, which could be somewhat confusing. However, these errors should be caught by folks trying to port libc++ over to a new platform (when running the libc++ test suite), not by end users. NOTE: This is a reapplicaton of 226409, which was reverted in 67472981 because it broke the build. The issue has now been fixed with https://reviews.llvm.org/D138062. Differential Revision: https://reviews.llvm.org/D136683
-
bixia1 authored
[mlir][sparse] Split SparseTensorRewrite into PreSparsificationRewrite and PostSparsificationRewrite. Reviewed By: aartbik, wrengr Differential Revision: https://reviews.llvm.org/D138153
-
David Green authored
This is quite reduced from the original example, but hopefully shows where vectorization is unprofitable because of multiple factors including the low trip count of the loop.
-
Matthias Springer authored
This change adds a builder that populates the body of a SequenceOp. This is useful for constructing SequenceOps from C++. Differential Revision: https://reviews.llvm.org/D137710
-
Guillaume Chatelet authored
@GMNGeoffrey let me know it there's a better way to import MPFR and GMP for the purpose of testing libc math functions. Differential Revision: https://reviews.llvm.org/D119547
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D138113
-
Alex Richardson authored
Previously it was only being done if shouldAlignPointerArgs() returned true, which right now is only true for ARM targets. Updating the argument alignment attributes of memcpy/memset intrinsics if the underlying object has larger alignment can be beneficial even when CGP didn't increase alignment (as can be seen from the test changes), so invert the loop and if condition. Differential Revision: https://reviews.llvm.org/D134281
-
Alex Richardson authored
-
Emmmer authored
Allow users to access FPR registers by names or ABI names. PS: This patch should be merged after D137508 Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D137761
-
Emmmer authored
This patch uses RISCV ABI register name as `alt_name` in `RegisterInfo` in `lldb-private-types.h` Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D137508
-
Timm Bäder authored
Use FastEvaluateAsRValue() in EvaluateAsConstantExpr() as well, to short-circuit evaluation of simple integrals. Differential Revision: https://reviews.llvm.org/D138115
-
Uday Bondhugula authored
NFC. Fix unused context warning from Parser.h. ``` ..include/mlir/Parser/Parser.h:39:38: warning: parameter ‘context’ set but not used [-Wunused-but-set-parameter] 39 | Block *parsedBlock, MLIRContext *context, Location sourceFileLoc) { ``` Differential Revision: https://reviews.llvm.org/D138192 -
Anton Sidorenko authored
This patch adds tranformation of fmul+fadd/fsub chains to fused multiply instructions: * fmul+fadd->fmadd * fmul+fsub->fmsub/fnmsub We also will try to combine these instructions if the fmul has more than one use and cannot be deleted. However, removing the dependence between fmul and fadd can still be profitable, and we rely on machine combiner approximations of scheduling. Differential Revision: https://reviews.llvm.org/D136764
-
Evgeniy Brevnov authored
This reverts commit 52a40185.
-
Evgeniy Brevnov authored
Currently, JT creates and updates local instances of BPI\BFI. As a result global ones have to be invalidated if JT made any changes. In fact, JT doesn't use any information from BPI/BFI for the sake of the transformation itself. It only creates BPI/BFI to keep them up to date. But since it updates local copies (besides cases when it updates profile metadata) it just waste of time. Current patch is a rework of D124439. D124439 makes one step and replaces local copies with global ones retrieved through AnalysisPassManager. Here we do one more step and don't create BPI/BFI if the only reason of creation is to keep BPI/BFI up to date. Overall logic is the following. If there is cached BPI/BFI then update it along the transformations. If there is no existing BPI/BFI, then create it only if it is required to update profile metadata. Please note if BPI/BFI exists on exit from JT (either cached or created) it is always up to date and no reason to invalidate it. Differential Revision: https://reviews.llvm.org/D136827
-
Valentin Clement authored
Create the fir.dispatch_table operation based on semantics information. The fir.dispatch_table will be used for static devirtualization as well as for fir.select_type conversion. Depends on D138129 Reviewed By: jeanPerier, PeteSteinfeld Differential Revision: https://reviews.llvm.org/D138131
-
Valentin Clement authored
Reviewed By: jeanPerier, PeteSteinfeld Differential Revision: https://reviews.llvm.org/D138129
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D138138
-
Tobias Gysi authored
The revision moves call and gep tests to instructions.ll. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D137636
-
Emilia Dreamer authored
This change breaks no existing tests but does fix the linked issue. Declarations of operator overloads are annotated with `TT_FunctionDeclarationName` on the `operator` keyword, which is already being checked for when aligning, so the extra `kw_operator` doesn't seem to be necessary. (just for reference, it was added in rG92b397fb / 92b397fb) Fixes https://github.com/llvm/llvm-project/issues/55733 Reviewed By: HazardyKnusperkeks, owenpan Differential Revision: https://reviews.llvm.org/D137223
-
Emilia Dreamer authored
I'm not exactly sure what the intent of that section of `spaceRequiredBetween` is doing, it seems to handle templates and <<, but the part which adds spaces before parens is way later, as part of `spaceRequiredBeforeParens`. Fixes https://github.com/llvm/llvm-project/issues/58821 Reviewed By: HazardyKnusperkeks, owenpan, MyDeveloperDay Differential Revision: https://reviews.llvm.org/D137474
-
Aliia Khasanova authored
Differential Revision: https://reviews.llvm.org/D134807
-
Tobias Gysi authored
The revision puts the function attributes tests previously distributed accross multiple files int a single function-attributes.ll test file. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D137627
-
Tobias Gysi authored
The revision moves tests related to LLVM IR global variable import into a separate global-variables.ll file. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D137622
-
Sinan Lin authored
The test case introduced in https://reviews.llvm.org/D137535 does not set a proper triple, which breaks CI from ppc/x86win/nvptx64. Hope this patch can fix the issue. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D138188
-
Anton Sidorenko authored
-