- Dec 14, 2022
-
-
Fangrui Song authored
Temporarily add expectedToStdOptional to llvm/Support/Error.h for migration.
-
Fangrui Song authored
-
Krasimir Georgiev authored
-
Fangrui Song authored
-
Haojian Wu authored
I found that this information is helpful when using this tool. Reviewed By: kadircet Differential Revision: https://reviews.llvm.org/D139715
-
Tobias Gysi authored
The revision adds an inbounds attribute to the LLVM dialect GEP operation. It extends the builders and the import and export to support the optional inbounds attribute. As all builders set inbounds to false by default, existing lowerings from higher-level dialects to LLVM dialect are not affected by the change. Canonicalization/folding remains untouched since it currently does not implement any simplifications in case of undefined behavior (the handling of undefined behavior is deferred to LLVM). Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D139821
-
Haojian Wu authored
-
Tobias Gysi authored
The recently introduced iterative constant import (https://reviews.llvm.org/D137559) fails for programs that subsequently import constant expressions with duplicate subexpressions. The reason is a broken duplicate check in getConstantsToConvert. The revision fixes the bug and adds a test case that imports two constant expressions with duplicates. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D139918
-
David Green authored
This adds basic HADD and RHADD support for SVE, by marking the AVGFLOOR and AVGCEIL as custom and converting those to HADD_PRED/RHADD_PRED AArch64 nodes. Both the existing intrinsics and the _PRED nodes are then lowered to the _ZPmZ instructions. Differential Revision: https://reviews.llvm.org/D131875
-
Krasimir Georgiev authored
This reverts commit f1f1b60c. Temporary revert, possibly triggers a new assertion failure on QualType::getCommonPtr. We're working on a reproducer, to follow-up on https://reviews.llvm.org/D136554.
-
Balázs Kéri authored
The checker applies constraints in a sequence and adds new nodes for these states. If a constraint violation is found this sequence should be stopped with a sink (error) node. Instead the `generateErrorNode` did add a new error node as a new branch that is parallel to the other node sequence, the other branch was not stopped and analysis was continuing on that invalid branch. To add an error node after any previous node a new version of `generateErrorNode` is needed, this function is added here and used by `StdLibraryFunctionsChecker`. The added test executes a situation where the checker adds a number of constraints before it finds a constraint violation. Reviewed By: NoQ Differential Revision: https://reviews.llvm.org/D137722
-
Dmitrii Petrov authored
SCR1 is available at https://github.com/syntacore/scr1 'syntacore-scr1-base' corresponds to SCR1_CFG_RV32IC_BASE, 'syntacore-scr1-max' corresponds to SCR1_CFG_RV32IMC_MAX. SCR1_CFG_RV32EC_MIN is RV32EC, which is currently unsupported. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D139302
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-
Kazu Hirata authored
The header file uses std::optional, but it's realying a transitive inclusion of <optional>. Meanwhile, it no longer uses llvm::Optional.
-
Fangrui Song authored
The repeated instructions make the file long and difficult to read. Simplify them with .irp directives. Skip PowerPC since AIX assembler doesn't support .irp Reviewed By: #libunwind, compnerd Differential Revision: https://reviews.llvm.org/D139368
-
Fangrui Song authored
-
Fangrui Song authored
-
Johannes Doerfert authored
-
Johannes Doerfert authored
Even if all loads and stores are in `nosync` functions we cannot guarantee there is no synchronization going on between them. As such, we cannot use CFG reasoning. We could check the entire module, or, what happens now to minimize test churn, is to check if all accesses are in the same function that is `nosync`. A follow up will undo some of the regressions where possible. Similarly, reachability cannot be used to exclude an access if the access is not known to be executed by the same thread as the given instruction. The OpenMP-opt test was added for the latter problem.
-
Fangrui Song authored
-
Fangrui Song authored
Change a few functions (getCheckTraversalKind, some clang/Tooling/ API, etc) from llvm::Optional to std::optional.
-
Fangrui Song authored
SupportHelpers.h supports both for now to ease migration.
-
Tue Ly authored
Implement a high-precision floating point class using UInt<> as its mantissa. This will be used in accurate pass for double precision math functions. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D136799
-
Vasileios Porpodas authored
This is part of a series of patches that aim at making BasicBlock::getInstList() private. Differential Revision: https://reviews.llvm.org/D139992
-
Johannes Doerfert authored
-
Peter Rong authored
Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D139890
-
Slava Zakharin authored
Differential Revision: https://reviews.llvm.org/D139805
-
Johannes Doerfert authored
We had two AAs for reachability but it was very cumbersome to extend them. We also had some fallback to use LLVM-core mechanisms and cache the result. The new design shares the query code and interface nicely between AAIntraFnReachability and AAInterFnReachability. As part of the rewrite we also added the ExclusionSet to the queries.
-
Johannes Doerfert authored
-
Chuanqi Xu authored
Add more lambda tests in modules. This is useful when we started to work on https://github.com/llvm/llvm-project/issues/57222.
-
Tulio Magno Quites Machado Filho authored
When -mabi=ieeelongdouble is enabled by default, libc++ does not support -mabi=ibmlongdouble. Reviewed By: qiucf Differential Revision: https://reviews.llvm.org/D139450
-
Johannes Doerfert authored
Even if a value is for sure written we need to visit the call sites as they might end up inside the function that reads and writes the value. In a follow up we can introduce correct reasoning to avoid the backwards traversal in this case and instead check if any call site between the write and the read might reach a potential write we want to exclude.
-
Johannes Doerfert authored
-
Johannes Doerfert authored
Differential Revision: https://reviews.llvm.org/D136903
-
jacquesguan authored
This patch fixes the issue https://github.com/llvm/llvm-project/issues/59455. We could omit the un-changed dimensions in offsets and sizes, so llvm::zip_equal would fail in this case. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D139815
-
Mike Urbach authored
This adds a simple PyOpOperand based on MlirOpOperand, which can has properties for the owner op and operation number. This also adds a PyOpOperandIterator that defines methods for __iter__ and __next__ so PyOpOperands can be iterated over using the the MlirOpOperand C API. Finally, a uses psuedo-container is added to PyValue so the uses can generically be iterated. Depends on D139596 Reviewed By: stellaraccident, jdd Differential Revision: https://reviews.llvm.org/D139597
-
gonglingqin authored
Modify the error message output of affinity/kmp-affinity.c and affinity/omp-places.c. Differential Revision: https://reviews.llvm.org/D139803
-
Jon Chesterfield authored
-
Yeting Kuo authored
The patch also adds expandVPCTPOP in TargetLowering to expand VP_CTPOP nodes. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D139920
-
Rob Suderman authored
Decomposition did not take padding into account when decomposing into fully connected operation. Reviewed By: NatashaKnk Differential Revision: https://reviews.llvm.org/D139500
-