- Nov 10, 2022
-
-
Youling Tang authored
Fixes the `FastUnwindTest` unit test for LoongArch. This change is similar to RISCV D90574. The following test cases pass after applying the patch: ``` $ ./runtimes/runtimes-bins/compiler-rt/lib/sanitizer_common/tests/Sanitizer-loongarch64-Test ... [ FAILED ] FastUnwindTest.Basic [ FAILED ] FastUnwindTest.FramePointerLoop [ FAILED ] FastUnwindTest.MisalignedFramePointer [ FAILED ] FastUnwindTest.FPBelowPrevFP [ FAILED ] FastUnwindTest.CloseToZeroFrame ``` Reviewed By: SixWeining, xen0n, MaskRay Differential Revision: https://reviews.llvm.org/D137314
-
Youling Tang authored
The bit-30 in this `__flags` means the address error is due to memory load, and the bit-31 means the address error is due to memory store. (see SC_ADDRERR_RD and SC_ADDRERR_WR in kernel arch/loongarch/include/uapi/asm/sigcontext.h). `illegal_write_test.cpp` and `illegal_read_test.cpp` have been tested and passed. Reviewed By: SixWeining, xen0n, XiaodongLoong Differential Revision: https://reviews.llvm.org/D137231
-
Youling Tang authored
Add support for getting the maximum virtual address, LoongArch has multiple address space layouts, the default maximum virtual address of the current user space is 47 bits. (from TASK_SIZE in the kernel for loongarch64). Reviewed By: SixWeining Differential Revision: https://reviews.llvm.org/D137219
-
Lang Hames authored
This is a counterpart to llvm::orc::SymbolStringPool. It holds uniqued, ref-counted strings; and can be used to avoid redundant storage of strings, and speed up comparison of strings held in the pool (these become pointer comparisons).
-
Lang Hames authored
-
Lang Hames authored
Newly added sections can be processed by calling processNewSections. Calling reset moves all sections back to the "new" state for reprocessing (expected to be used by dlclose).
-
Chen Zheng authored
Some PowerPC CPU may have slow MFLR instruction, so we need to schedule the MFLR and its store in function prologue away to hidden the long latency for slow MFLR instruction. This patch adds a new feature fastMFLR and the new feature will be used in https://reviews.llvm.org/D137423. Reviewed By: RolandF Differential Revision: https://reviews.llvm.org/D137612
-
Aart Bik authored
This enables the full matmul integration test with runtime_lib=true/false! Background: https://github.com/llvm/llvm-project/issues/51657 Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D137750
-
Jordan Rupprecht authored
a11cd0d9 moved googletest to third-party. This creates a corresponding BUILD file in third-party/unittest, moved from the chunk in llvm/BUILD.bazel. We must refine the .bazelignore which is setup to ignore the benchmarking library so that we don't ignore the new dir here.
-
Prashant Kumar authored
During elementwise fusion the fillOp's value was directly referred without casting which can create mismatching dtypes. Reviewed By: mravishankar, ThomasRaoux Differential Revision: https://reviews.llvm.org/D137447
-
Louis Dionne authored
-
Tom Stellard authored
This was broken by a11cd0d9.
-
Nico Weber authored
-
Lei Zhang authored
This is useful for breaking down extract_strided_slice and potentially cancel with other extract / insert ops before or after. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D137471
-
Dinar Temirbulatov authored
Test updates were performed using: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 -
bixia1 authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D137585
-
Lang Hames authored
-
Slava Zakharin authored
The main purpose of this patch is to propagate fastmath attribute to SimplifyIntrinsicsPass, so that the inline code can inherit the call operation's attributes. Even though I added translation of fastmath from fir::CallOp to LLVM::CallOp, there are no fastmath attributes in LLVM IR. It looks like the translation drops it. This will need additional commits. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D137602
-
Tom Stellard authored
Rre-commit of 59052468 with a typo fix in compiler-rt/CMakeLists.txt
-
Slava Zakharin authored
Plugged in propagation of nnan/nsz/arcp/afn/reassoc related options to lowering/FirOpBuilder. Reviewed By: jeanPerier, tblah, awarzynski Differential Revision: https://reviews.llvm.org/D137580
-
Alexander Shaposhnikov authored
This is a follow-up to D126250 and enables LDAPR if the RCPC extensions are enabled. Test plan: ninja check-all Differential revision: https://reviews.llvm.org/D137590
-
Nikolas Klauser authored
It looks like we forgot to set the FTM when adding constexpr vector support. Reviewed By: ldionne, #libc Spies: libcxx-commits, arichardson Differential Revision: https://reviews.llvm.org/D137729
-
Aart Bik authored
(1) also fixes memory leak in sparse2dense rewriting (2) still needs fix in dense2sparse by skipping zeros Reviewed By: wrengr Differential Revision: https://reviews.llvm.org/D137736
-
Sander de Smalen authored
Reverting the patch due to a buildbot failure. This reverts commit e1e260cc.
-
Michael Francis authored
Differential Review: https://reviews.llvm.org/D137372
-
stanley-nod authored
Quantization method is crucial and ubiqutous in accelerating machine learning workloads. Most of these methods uses f16 and i8 types. This patch relaxes the type contraints on warp reduce distribution to allow these types. Furthermore, this patch also changed the interface and moved the initial reduction of data to a single thread into the distributedReductionFn, this gives flexibility for developers to control how they are obtaining the initial lane value, which might differ based on the input types. (i.e to shuffle 32-width type, we need to reduce f16 to 2xf16 types rather than a single element). Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D137691
-
Michael Francis authored
Differential Review: https://reviews.llvm.org/D137373
-
Leonard Chan authored
__sanitizer_library_loaded on Fuchsia Differential Revision: https://reviews.llvm.org/D133806
-
Leonard Chan authored
Fuchsia's libc provides a new hook (__sanitizer_module_loaded) which calls hwasan_library_loaded in the startup path which will register globals in loaded modules. Differential Revision: https://reviews.llvm.org/D137676
-
Jannik Silvanus authored
When a phi node references a variable defined in a basic block dominated by the the basic block containing the phi node, llvm-diff currently cannot determine whether the variable is equivalent, and thus treats the phi node as different and reports a difference. This leads to false positive differences as demonstrated by the loop.ll diff, for which llvm-diff reports a diff when comparing the file with itself. Fix that issue by adding the concept of *equivalence assumptions*. When encountering a pair of values which can neither be proven to be equivalent nor to be non-equivalent, instead optimistically assume equivalence, and store somewhere that the equivalence of the currently compared basic blocks depends on this assumption. Later, once all BBs have been processed, check all made assumptions and report blocks as different whose equivalence was depending on an incorrect assumption, or an assumption we could not prove to be correct. In order to preserve the original diff report order, also schedule diffs of blocks already known to be different using the same mechanism, so all block diffs are now generated at the very end of function diffing. In case an incorrect assumption was made, all further shown equivalences between old and new values implictly depend on the incorrect assumption. Some of these may in fact be not equivalent, but these are neither reverted nor reported, because they are considered indirect diffs caused by an earlier direct diff. See inline comments for an argument why we do not run into issues caused by circular proof dependencies. Differential Revision: https://reviews.llvm.org/D137318
-
Tom Stellard authored
This reverts commit 59052468. It looks like this patch breaks the build when compiler-rt is passed to LLVM_ENABLE_PROJECTS instead of LLVM_ENABLE_RUNTIMES.
-
Craig Topper authored
These instructions set, clear, or invert a single bit. If their users don't use the upper 32 bits, they don't use the upper 32 bits of their input. Additionally the second operand BSET/BCLR/BINV is a shift amount which only uses 6 bits of the source. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D137452
-
Craig Topper authored
These operands use 6 bits. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D137450
-
Craig Topper authored
The first use operand of these is implicitly zero extended. We can consider that a W read. If the use is the other operand, we need to look through the instruction. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D137449
-
Craig Topper authored
After D137446 we can see which operand is the user. If the user is the value operand of a SB/SH/SW then the upper 32 bits aren't used. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D137448
-
Craig Topper authored
Instead of storing the uses to check in the worklist, store the instruction we want to check uses for. Now we pop and instruction from the worklist, loop over its uses and check them. If it's something we need to look across, we'll push it to the worklist. By doing it this way, we can have access to which operand of the user is using the instruction. This will allow supporting store instructions since we'll be able to disambiguate the the value operand and the pointer operand. We can also improve support for *add.uw instructions and shift amount uses. Reviewed By: mohammed-nurulhoque, asb Differential Revision: https://reviews.llvm.org/D137446
-
Craig Topper authored
As far as I understand, this disables all integer vectors too. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D134089
-
Lang Hames authored
Weak symbols can be overridden while they're in the NeverSearched state, but should not be able to be overridden once they've been bound by some lookup. Historically we guaranteed this by stripping the weak flag once a symbol as bound, causing it to appear as if it were strong. In ffe2dda2 we changed that behavior to retain weak flags on symbols (to facilitate tracking for dynamic re-binding during dlopen). This test checks that we still fail as required after ffe2dda2.
-
Tom Stellard authored
This will help improve the project's layering, so that sub-projects that don't actually need any llvm code can still use googletest without having to reference code in the llvm directory. This will also make it easier to consolidate and simplify the standalone build configurations. Reviewed By: stellaraccident, lattner, probinson, phosek Differential Revision: https://reviews.llvm.org/D131919
-
Renaud-K authored
and their corresponding attributes are moved together Differential revision: https://reviews.llvm.org/D13767
-