- Jul 20, 2023
-
-
Benjamin Kramer authored
-
Jingu Kang authored
As combining DUP, try to reuse larger DUPLANELANE. Differential Revision: https://reviews.llvm.org/D155592
-
Timm Bäder authored
This doesn't show up in standards after c++14.
-
Sergio Afonso authored
-
Ingo Müller authored
This patch adds a mixin for ApplyPatternsOp to _transform_ops_ext.py with syntactic sugar for construction such ops. Curiously, the op did not have any constructors yet, probably because its tablegen definition said to skip the default builders. The new constructor is thus quite straightforward. The commit also adds a refined `region` property which returns the first block of the single region. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D155435
-
Ingo Müller authored
This gives the region a more meaningful name. The topic came up in a discussion on https://reviews.llvm.org/D155435, where the name `region` would have led to a situation where a convenience accessor called `region` (after the ODS name) would have returned a Block. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D155810
-
Ingo Müller authored
This patch adds a mix-in class for MapForallToBlocks with overloaded constructors. This makes it optional to provide the return type of the op, which is defaulte to `AnyOpType`. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D155717
-
Timm Bäder authored
-
Kevin P. Neal authored
Correct RISC-V strictfp tests to follow the rules documented in the LangRef: https://llvm.org/docs/LangRef.html#constrained-floating-point-intrinsics Mostly these tests just needed the strictfp attribute on function definitions. I've also removed the strictfp attribute from uses of the constrained intrinsics because it comes by default since D154991, but I only did this in tests I was changing anyway. Test changes verified with D146845.
-
Sergio Afonso authored
This patch modifies the construction of the `OpenMPIRBuilder` in MLIR to initialize the `IsGPU` flag using target triple information passed down from the Flang frontend. If not present, it will default to `false`. This replicates the behavior currently implemented in Clang, where the `CodeGenModule::createOpenMPRuntime()` method creates a different `CGOpenMPRuntime` instance depending on the target triple, which in turn has an effect on the `IsGPU` flag of the `OpenMPIRBuilderConfig` object. Differential Revision: https://reviews.llvm.org/D151903
-
Timm Bäder authored
We need to evaluated the RHS before the LHS. Differential Revision: https://reviews.llvm.org/D149550
-
Florian Hahn authored
This fixes a crash if the SCEV for the use isn't invertible and nullptr is returned. Fixes https://github.com/llvm/llvm-project/issues/63840
-
Aaron Ballman authored
This fixes issues with TemplateTypeParmType and TemplateTypeParmDecl.
-
Timm Bäder authored
Make our Function class keep a list of parameter offsets so we can simply get a parameter by index when evaluating builtin functions. Differential Revision: https://reviews.llvm.org/D149816
-
Jake Egan authored
The patch D153600 implemented `-frecord-command-line` for the XCOFF direct assembly path. This patch adds support for the XCOFF integrated assembly path. Reviewed By: scott.linder Differential Revision: https://reviews.llvm.org/D154921
-
Joseph Huber authored
There are some cases when testing we want to override the logic for not building tests if the loader is not present. This allows users to specify an external binary that fulfils the same duties which will force the tests to be built even without meeting the dependencies. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D155837
-
Alex Bradbury authored
Some similar cases to 60152f19.
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D150209
-
Timm Bäder authored
The APFloat might heap-allocate some memory, so we need to call its destructor. Differential Revision: https://reviews.llvm.org/D154928
-
Nikita Popov authored
In preparation for removing support for add expressions, mark them as undesirable. As such, we will no longer implicitly create such expressions, but they still exist.
-
Nikita Popov authored
Use ConstantFoldBinaryOpOperands() instead of ConstantExpr::get(). This will continue working with binary operands that are not supported as constant expressions.
-
Jon Chesterfield authored
If the clock_freq symbol isn't used, and is removed, we don't need to abort the loader. Can instead just not set it. Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D155832
-
Timm Bäder authored
Use ASTContext::MakeIntValue and remove the std::tie+lambda weirdness. Differential Revision: https://reviews.llvm.org/D155584
-
Joseph Huber authored
This file required a global constructor due to copying the file stream and have a non-constexpr constructor for the wrapper type. Also, I changes the `opterr` to be a pointer, because it seemed like it wasn't being set correctly as an externally visibile variable if we just captured it by value. Reviewed By: abrachet Differential Revision: https://reviews.llvm.org/D155766
-
Joseph Huber authored
The `File` interface currently has a destructor to delete the buffer if it is owned by the file. This is problematic for the globally allocated `stdout`, `stdin`, and `stderr` files. This causes the file interface to have global constructors to initialize the destructors to use these. However, these never use the destructors because they don't own the buffer. This patch removes the destructor and calls in manually in the close implementation. The platform close should never need to access the buffer and it needs to be done before clearing the whole thing, so this should work. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D155762
-
Alex Bradbury authored
This avoids a static_cast.
-
Alexander Belyaev authored
-
Markus Böck authored
Currently, inlining a function with a `noalias` parameter leads to a large loss of optimization potential as the `noalias` parameter, an important hint for alias analysis, is lost completely. This patch fixes this with the same approach as LLVM by annotating all users of the `noalias` parameter with appropriate alias and noalias scope lists. The implementation done here is not as sophisticated as LLVMs, which has more infrastructure related to escaping and captured pointers, but should work in the majority of important cases. Any deficiency can be addressed in future patches. Related LLVM code: https://github.com/llvm/llvm-project/blob/27ade4b554774187d2c0afcf64cd16fa6d5f619d/llvm/lib/Transforms/Utils/InlineFunction.cpp#L1090 Differential Revision: https://reviews.llvm.org/D155712
-
Danila Malyutin authored
Copy propagation might have changed the register class of the register Differential Revision: https://reviews.llvm.org/D155792
-
Timm Bäder authored
-
Simon Pilgrim authored
[X86] LowerTRUNCATE - use LowerTruncateVecPackWithSignBits for prefer-256 bit AVX512 cases during type legalization If the AVX512 target will split the 512-bit vector truncation then try to use PACKSS/PACKUS first.
-
David Green authored
See D155806
-
Martin Braenne authored
When tests fail in UncheckedOptionalAccessModelTest.cpp, this prints the name of the optional type instead of a blob of hex. Reviewed By: ymandel Differential Revision: https://reviews.llvm.org/D155788
-
Nikita Popov authored
I don't believe this can happen right now (because we're only working on icmps and as such can't hit the current fcmp null paths), but this will be possible in the future when icmp constant expressions are removed.
-
Nikita Popov authored
These functions may return null or a constant expression on failure, depending on whether such a constant expression is still supported.
-
wanglei authored
This has no impact on the current assembly functionality but will affect the patches for the subsequent code generation.
-
Alex Bradbury authored
Zdinx on RV32 defines the D instructions as taking even register pairs, and specifies that if using X0 when as a destination then X1 won't be written, and if using X0 as a source then the value is still all 0s (i.e. X1 isn't read). Therefore, it's incorrect to model X0_PD as having X1 as a subregister. This will also be the case for register pairs in Zacas and the P extension (and this patch takes the same approach as D95588 does). This patch introduces a dummy register that is solely used as a subreg alongside X0 in X0_PD. An earlier version of the patch had a minor effect on register allocation in some tests, which is now avoided by: 1) Adding RISCV::DUMMY_REG_PAIR_WITH_X0 to RISCVRegisterInfo::getReservedRegs 2) Defining a new register class that includes DUMMY_REG_PAIR_WITH_X0 Differential Revision: https://reviews.llvm.org/D153974
-
Jon Chesterfield authored
HSA headers might be under a hsa/ directory or might not. This scheme matches the one used by the openmp amdgpu plugin. Reviewed By: jhuber6, jplehr Differential Revision: https://reviews.llvm.org/D155812
-
Martin Braenne authored
This makes it easier to determine which line the unexpected happened on; previously, we would only get the line number. Reviewed By: ymandel Differential Revision: https://reviews.llvm.org/D155802
-
Weining Lu authored
The assertions in these two tests were not auto-generated by update_cc_test_checks.py. Remove them.
-