- Jul 21, 2023
-
-
Nikita Popov authored
This reverts commit f8a36d8c. I believe this is causing an assertion failure on the sanitizer-x86_64-linux buildbot: clang++: /b/sanitizer-x86_64-linux/build/llvm-project/llvm/include/llvm/Support/Casting.h:578: decltype(auto) llvm::cast(From *) [To = llvm::BinaryOperator, From = llvm::Value]: Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed. #10 0x000055bdd7e82408 canonicalizeLogicFirst(llvm::BinaryOperator&, llvm::IRBuilder<llvm::TargetFolder, llvm::IRBuilderCallbackInserter>&) /b/sanitizer-x86_64-linux/build/llvm-project/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp:2131:5 #11 0x000055bdd7e80183 llvm::InstCombinerImpl::visitAnd(llvm::BinaryOperator&) /b/sanitizer-x86_64-linux/build/llvm-project/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp:2661:20 Likely the code is encountering a constant expression in a case it didn't before.
-
Yaxun (Sam) Liu authored
Reland after fixing regression in lldb. Differential Revision: https://reviews.llvm.org/D155539
-
- Jul 20, 2023
-
-
Corentin Jabot authored
-
Jingu Kang authored
Following discussion on https://reviews.llvm.org/D154205, make MachineLICM pass handle subloops with only visiting outmost loop's blocks once. Differential Revision: https://reviews.llvm.org/D154205
-
Yingwei Zheng authored
This patch represents a condition with `Pred + LHS + RHS` in ReproducerEntry instead of `CmpInst + Not`. It avoids creating temporary ICmpInsts in D155412. Reviewed By: nikic, fhahn Differential Revision: https://reviews.llvm.org/D155782
-
Craig Topper authored
Most places assign Opcode right after assigning every other bit in Inst. I don't think treating Opcode separately adds much value. It doesn't hide what bits belong to the opcode since every other bits is listed. This makes RVInst consistent with RVInst16 subclasss which already assign Inst{1-0} directly. Reviewed By: asb, wangpc Differential Revision: https://reviews.llvm.org/D155797 -
Craig Topper authored
Unlike RVInst which also has an Opcode field, all of the subclasseso of RVInst16 assign Inst{1-0} directly. Reviewed By: asb, wangpc Differential Revision: https://reviews.llvm.org/D155791 -
Jakub Kuderski authored
Continue to work outlined in D155747 and split the main SPIR-V ops implementation file into a few smaller and quicker to compile files. This organization matches the op definition organizaion in `.td` files. In this patch, extract atomic, cast/conversion, and group op implementation into separate files. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D155777
-
Craig Topper authored
There are some ordering dependency between these files. -F must be included before D, Zfh, and Zfa. I recently suggested Zfbfmin should be after Zfh. -V must be before Zvk. -Zc must be after Zb since Zbb instructions can be compressed. So I've grouped all the scalar FP together. The vector together. And put the compressed instructions at the end. Reviewed By: asb, wangpc Differential Revision: https://reviews.llvm.org/D155780
-
Benjamin Kramer authored
-
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
-