- Jan 18, 2023
-
-
Kirill Stoimenov authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D141642
-
Jordan Rupprecht authored
-
Nikolas Klauser authored
`ranges.transform.pass.cpp` takes ~42s to run on my machine, `ranges.transform.binary.pass.cpp` takes ~26s and `ranges.transform.unary.pass.cpp` takes ~2s. Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D141965
-
Florian Mayer authored
This is a widespread technique, used in at least: * ABSL: https://github.com/abseil/abseil-cpp/blob/master/absl/log/internal/check_op.h#L52 * Chromium: https://source.chromium.org/chromium/chromium/src/+/main:base/check.h;l=185?q=DCHECK%20f:base&ss=chromium * Android: https://cs.android.com/android/platform/superproject/+/master:system/libbase/include/android-base/logging.h;drc=bda7f0a0cc945c860713a1dc497919f17fad1651;l=321 Reviewed By: Chia-hungDuan, vitalybuka Differential Revision: https://reviews.llvm.org/D141713
-
Rashmi Mudduluru authored
Differential Revision: https://reviews.llvm.org/D141725/new/
-
Florian Mayer authored
Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D141973
-
Giorgis Georgakoudis authored
This patch adds functionality for recording and replaying the execution of OpenMP offload kernels, based on an original implementation by Steve Rangel. The patch extends libomptarget to extract a json description of the kernel, the device image binary, and a device memory snapshot before and after the execution of a recorded kernel. Kernel recording/replaying in libomptarget is controlled through env vars (LIBOMPTARGET_RECORD, LIBOMPTARGET_REPLAY). It provides a tool, llvm-omp-kernel-replay, for replaying a kernel using the extracted information with the ability to verify replayed execution using the post-execution device memory snapshot, also supporting changing the number of teams/threads for replaying. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D138931
-
Mircea Trofin authored
This follows from D141720 Differential Revision: https://reviews.llvm.org/D141967
-
Anshil Gandhi authored
Introduce a parameter in getFallThrough() to optionally allow returning the fall through basic block in spite of an explicit branch instruction to it. This parameter is set to false by default. Introduce getLogicalFallThrough() which calls getFallThrough(false) to obtain the block while avoiding insertion of a jump instruction to its immediate successor. This patch also reverts the changes made by D134557 and solves the case where a jump is inserted after another jump (branch-relax-no-terminators.mir). Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D140790
-
Arthur Eubanks authored
This reverts commit 6e5cbc09. Causes link errors, see http://go/crb/1408161.
-
Mircea Trofin authored
-
Rahman Lavaee authored
Let Propeller use specialized IDs for basic blocks, instead of MBB number. This allows optimizations not just prior to asm-printer, but throughout the entire codegen. This patch only implements the functionality under the new `LLVM_BB_ADDR_MAP` version, but the old version is still being used. A later patch will change the used version. ####Background Today Propeller uses machine basic block (MBB) numbers, which already exist, to map native assembly to machine IR. This is done as follows. - Basic block addresses are captured and dumped into the `LLVM_BB_ADDR_MAP` section just before the AsmPrinter pass which writes out object files. This ensures that we have a mapping that is close to assembly. - Profiling mapping works by taking a virtual address of an instruction and looking up the `LLVM_BB_ADDR_MAP` section to find the MBB number it corresponds to. - While this works well today, we need to do better when we scale... -
Craig Topper authored
This is more consistent with ABI and how bools on RISC-V are represented. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D141963
-
Nikolas Klauser authored
Fixes #59464 Reviewed By: ldionne, Mordante, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D141885
-
Zibi Sarbinowski authored
This will fix __murmur2_or_cityhash.pass.cpp in EBCDIC mode. The reason it fails is because of string literals are being used as input to CityHash algorithm so we need to adjust the EBCDIC expected results. Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D141623
-
usama hameed authored
Summary: This patch removes building sanitizers for i386 iossim. This is to reduce the toolchain size. Reviewers: Subscribers:
-
usama hameed authored
This patch removes the static ubsan runtime on Apple devices. The motivation is to reduce the toolchain size. rdar://102061519 Differential Revision: https://reviews.llvm.org/D141550
-
Lang Hames authored
The original commit was reverted in c151e842 due missing files (thanks Kazu!).
-
Kazu Hirata authored
This reverts commit ab59185f. It looks like this commit is missing interval_set_test.cpp.
-
Kazu Hirata authored
This patch fixes: llvm/include/llvm/Analysis/Utils/TrainingLogger.h:94:14: error: private field 'IncludeReward' is not used [-Werror,-Wunused-private-field]
-
Craig Topper authored
-
Volodymyr Sapsai authored
`MatrixTypeLoc` is not "sugar" `TypeLoc` and doesn't require to use the underlying `TypeLoc` instead. Differential Revision: https://reviews.llvm.org/D141422
-
Lang Hames authored
IntervalMap is an optionally-coalescing map -- it uses half-open ranges as keys, allows lookups based on elements of the ranges (returning an iterator to the containing range) and optionally coalesces adjacent ranges that have the same value. IntervalSet is an optionally-coalescing set based on IntervalMap. These collections will be used to store and lookup metadata section ranges, e.g. unwind-info ranges.
-
Kazu Hirata authored
This patch fixes: mlir/include/mlir/Dialect/Affine/LoopUtils.h:332:25: error: 'makeMutableArrayRef<mlir::scf::ForOp>' is deprecated: Use deduction guide instead [-Werror,-Wdeprecated-declarations]
-
Mircea Trofin authored
The dependency was due to the log format. This change switches to the previously-introduced (D139370) "dependency-free" logger instead of the protobuf-based one. A subsequent change will clean out the unnecessary abstraction left behind. This change drops the logger unittest, we have sufficient test coverage via lit tests, and a unit test would require adding, unnecesarily, a log reader (the reader is expected to be python, for the ML side, and there is a reader for that under Analysis/models, used for tests). Differential Revision: https://reviews.llvm.org/D141720
-
Florian Hahn authored
-
Nikolas Klauser authored
Reviewed By: ldionne, Mordante, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D141864
-
Aaron Ballman authored
DeclResult tracks two states: valid/invalid and usable/unusable. Passing a null pointer to the constructor creates a valid but unusable result and we wanted an invalid result instead. This changes some functions to return a DeclResult rather than a Decl * to make it harder to get this incorrect in callers. Discovered when working on https://reviews.llvm.org/D141280 . Co-authored-by:
Haojian Wu <hokein@google.com> Co-authored-by:
Aaron Ballman <aaron@aaronballman.com> Differential Revision: https://reviews.llvm.org/D141580
-
Kazu Hirata authored
This patch fixes: mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp:820:13: error: unused function 'hasAtMostOneResultFunctionOfDim' [-Werror,-Wunused-function]
-
Craig Topper authored
There's a conflict between the riscv32 and riscv64 output for some tests which caused the script to drop the check lines. Add specific check prefixes for these cases.
-
Peiming Liu authored
Use SparseTensorDescriptor whenever not calling setters, to avoid needing to create a temporal buffer for simple query purposes. Reviewed By: bixia, wrengr Differential Revision: https://reviews.llvm.org/D141953
-
Florian Hahn authored
-
Roy Jacobson authored
Comparison operators are not allowed to be defaulted if they were previously declared outside the class. Pretty low-impact, but it's nice to reject this without a linking error. Fixes https://github.com/llvm/llvm-project/issues/51227. Reviewed By: #clang-language-wg, ChuanqiXu Differential Revision: https://reviews.llvm.org/D141803
-
Joseph Huber authored
This variable is used by the runtime. Before kernel launch we set it to indicate several configuration options from the host. This patch renames it to be more in-line with the rest of the named exported from the runtime. This is better because this is the only symbol visible to the host from the runtime, so it should have a reserved name. Reviewed By: tianshilei1992 Differential Revision: https://reviews.llvm.org/D141960
-
Joseph Huber authored
Summary: These tools are built unconditionally now. However, there seemed to be problems where the headers would be found during cross compilation, but no libraries present. To combat this we should elect to make the CMake indicate whether or not we should use the dynamic library method or link it directly rather than using `__has_include`.
-
Joe Loser authored
Now that all of the uses of `makeMutableArrayRef` are replaced in-tree with use of deduction guides (see https://github.com/llvm/llvm-project/commit/a288d7f937708cf67d960962bfa22ffae37ddbf4), mark `makeMutableArrayRef` as deprecated. Also remove the old tests for `makeMutableArrayRef` in favor of the ones introduced with the deduction guides in https://github.com/llvm/llvm-project/commit/38791259c1165cedfa313e06dc20e443f1e20634. Differential Revision: https://reviews.llvm.org/D141872
-
Sanjay Patel authored
(X * X) - (Y * Y) --> (X + Y) * (X - Y) https://alive2.llvm.org/ce/z/BAuRCf The no-wrap propagation could be relaxed in some cases, but there does not seem to be an obvious rule for that.
-
Sanjay Patel authored
-
Craig Topper authored
This was being used to lookup the register class for a register number, but those live in a tablegened array. We can index that array directly just like RISCVAsmParser does. Differential Revision: https://reviews.llvm.org/D141951
-
Sergei Barannikov authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D140654
-