- Nov 10, 2022
-
-
Weining Lu authored
Define below macros according to LoongArch toolchain conventions [1]. * `__loongarch_grlen` * `__loongarch_frlen` * `__loongarch_lp64` * `__loongarch_hard_float` * `__loongarch_soft_float` * `__loongarch_single_float` * `__loongarch_double_float` Note: 1. `__loongarch__` has been defined in earlier patch. 2. `__loongarch_arch` is not defined because I don't know how `TargetInfo` can get the arch name specified by `-march`. 3. `__loongarch_tune` will be defined in future. [1]: https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html Depends on D136146 Differential Revision: https://reviews.llvm.org/D136413
-
Weining Lu authored
This patch adds options -march, -msingle-float, -mdouble-float, -msoft-float and -mfpu for LoongArch. Clang options `msingle_float` and `mdouble_float` are moved from `m_mips_Features_Group` to `m_Group` because now more than targets use them. Reference: https://github.com/loongson/LoongArch-Documentation/blob/main/docs/LoongArch-toolchain-conventions-EN.adoc TODO: add -mtune. Differential Revision: https://reviews.llvm.org/D136146
-
David Sherwood authored
This patch adds the assembly/disassembly for the following instructions: zipq1 : Interleave elements from low halves of each pair of quadword vector segments zipq2 : Interleave elements from high halves of each pair of quadword vector segments uzpq1 : Concatenate even elements within each pair of quadword vector segments uzpq2 : Concatenate odd elements within each pair of quadword vector segments tblq : Programmable table lookup within each quadword vector segment (zeroing) The reference can be found here: https://developer.arm.com/documentation/ddi0602/2022-09 Differential Revision: https://reviews.llvm.org/D137619
-
David Sherwood authored
This patch adds the assembly/disassembly for the following instruction: tbxq : Programmable table lookup within each quadword vector segment (merging) The reference can be found here: https://developer.arm.com/documentation/ddi0602/2022-09 Differential Revision: https://reviews.llvm.org/D137625
-
gonglingqin authored
Differential Revision: https://reviews.llvm.org/D137687
-
Chuanqi Xu authored
We would diagnose about the reserved names in b8ceb9f4. And the patch documents about the related behaviors.
-
Wu, Yingcong authored
`CreateSecStartEnd()` will return pointer to the input type, so when called with `CreateSecStartEnd(M, SanCovCFsSectionName, IntptrPtrTy)`, `SecStartEnd.first` and `SecStartEnd.second` will have type `IntptrPtrPtrTy`, not `IntptrPtrTy`. This problem should not impact the functionality and with opaque pointer enable, this will not trigger any alarm. But if runs with `-no-opaque-pointers`, this mismatch pointer type will cause type check assertion in `CallInst::init()` to fail. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D137310
-
Matt Jacobson authored
On targets where ptrdiff_t is smaller than long, clang crashes when emitting synthesized getters/setters that call objc_[gs]etProperty. Explicitly emit a zext/trunc of the ivar offset value (which is defined to long) to ptrdiff_t, which objc_[gs]etProperty takes. Add a test using the AVR target, where ptrdiff_t is smaller than long. Test failed previously and passes now. Differential Revision: https://reviews.llvm.org/D112049
-
wlei authored
-
WANG Xuerui authored
The canonical multiarch tuples for LoongArch are defined in [the LoongArch toolchain conventions][1] document. As the musl port is still WIP, only the GNU triples are added for now. The spec mentions `loongarch64-linux-gnuf64`, which is functionally the same as the existing `loongarch64-linux-gnu` triple, only with the floating-point ABI part explicitly spelled out. Both forms are supported, but normalization of one into another is not implemented in this patch, to give the ecosystem some time to experiment and discuss. [1]: https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D135751
-
sandeepkosuri authored
-
wlei authored
With https://reviews.llvm.org/D136627, now we have the metrics for profile staleness based on profile statistics, monitoring the profile staleness in real-time can help user quickly identify performance issues. For a production scenario, the build is usually incremental and if we want the real-time metrics, we should store/cache all the old object's metrics somewhere and pull them in a post-build time. To make it more convenient, this patch add an option to persist them into the object binary, the metrics can be reported right away by decoding the binary rather than polling the previous stdout/stderrs from a cache system. For implementation, it writes the statistics first into a new metadata section(llvm.stats) then encode into a special ELF `.llvm_stats` section. The section data is formatted as a list of key/value pair so that future statistics can be easily extended. This is also under a new switch(`-persist-profile-staleness`) In terms of size overhead, the metrics are computed at module level, so the size overhead should be small, measured on one of our internal service, it costs less than < 1MB for a 10GB+ binary. Reviewed By: wenlei Differential Revision: https://reviews.llvm.org/D136698
-
Teizhu Yang authored
Use `break 0x5` for LoongArch software breakpoint traps. The magic number 0x5 means `BRK_SSTEPBP` as defined in the kernel header `asm/break.h` on LoongArch. Reviewed By: SixWeining, xen0n Differential Revision: https://reviews.llvm.org/D137519
-
zhanglimin authored
Due to https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes. Reviewed By: SixWeining, MaskRay Differential Revision: https://reviews.llvm.org/D137543
-
Youling Tang authored
See https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes. Reviewed By: SixWeining Differential Revision: https://reviews.llvm.org/D137696
-
bixia1 authored
Add size_hint operand to the Python interface. Fix pytaco. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D137754
-
Youling Tang authored
Reviewed By: xry111 Differential Revision: https://reviews.llvm.org/D137383
-
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
-