- Jan 31, 2023
-
-
Matt Arsenault authored
This is already what the CallBase getRetAlign does
-
Yashwant Singh authored
Right now we do opcode wise matching to identify uniform/non-divergent AMDGPU intrinsics. It is duplicated at 2 places once at IR level uniformity analysis and at MIR level. Moving them to single tablegen table for consistency and adding and API rapper to access them. Reviewed By: arsenm, #amdgpu Differential Revision: https://reviews.llvm.org/D142961
-
Kerry McLaughlin authored
Adds intrinsics for the following SME2 instructions: - smax, umax, fmax (single, 2 & 4 vector) - smax, umax, fmax (multi, 2 & 4 vector) - smin, umin, fmin (single, 2 & 4 vector) - smin, umin, fmin (multi, 2 & 4 vector) NOTE: These intrinsics are still in development and are subject to future changes. Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D142485
-
gonglingqin authored
Add baseline testing for upcoming optimization patches according the guideline https://reviews.llvm.org/rG1d6d1ecca7ec.
-
Kerry McLaughlin authored
Adds intrinsics for the following: - smopa / smops - umopa / umops - bmopa / bmops Tests for existing SME mopa/mops intrinsics have also been updated to use the maximum allowed ZA tile number. NOTE: These intrinsics are still in development and are subject to future changes. Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D141849
-
eopXD authored
This commit adds prefix for the overloaded RVV intrinsics. This is the 3rd commit of a patch-set to add __riscv_ for all RVV intrinsics. This follows the naming guideline under riscv-c-api-doc to add the `__riscv_` suffix for all RVV intrinsics. Pull Request: riscv-non-isa/riscv-c-api-doc#31 riscv-non-isa/rvv-intrinsic-doc#189 Depends on D142644. Reviewed By: kito-cheng Differential Revision: https://reviews.llvm.org/D142697
-
Max Kazantsev authored
-
Maya Amrami authored
Checks were too strict and by the time the patch was submitted, the output of the test changed. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D142969
-
Nikita Popov authored
Missed in 5f01a626.
-
esmeyi authored
Summary: Some 64 bit constants can be materialized with fewer instructions than we currently use. We consider a 64 bit immediate value divided into four parts, Hi16OfHi32 (bits 48...63), Lo16OfHi32 (bits 32...47), Hi16OfLo32 (bits 16...31), Lo16OfLo32 (bits 0...15). When any three parts are equal, the immediate can be treated as "almost" a splat of a 32 bit value in a 64 bit register. For such case, we can use 3 instructions to generate the splat and use 1 instruction to modify the different part: Reviewed By: shchenz Differential Revision: https://reviews.llvm.org/D139813
-
Goran Flegar authored
-
Nikita Popov authored
-
Nikita Popov authored
When inferring that a GEP of a global variable is inbounds because there is no notional overindexing, we need to check that the global value type and the GEP source element type match. This was not necessary with typed pointers (because we would have a bitcast in between), but is necessary with opaque pointers. We should be able to recover some of the safe cases by performing an offset based inbounds inference in DL-aware ConstantFolding.
-
Zain Jaffal authored
We can do this by breaking vecreduce into v16i8 vectors generating udot/sdot and concatenating them. Differential Revision: https://reviews.llvm.org/D141693
-
Corentin Jabot authored
-
eopXD authored
This commit adds prefix for the non-overloaded RVV intrinsics. This is the 2nd commit of a patch-set to add __riscv_ for all RVV intrinsics. This follows the naming guideline under riscv-c-api-doc to add the `__riscv_` suffix for all RVV intrinsics. Pull Request: riscv-non-isa/riscv-c-api-doc#31 riscv-non-isa/rvv-intrinsic-doc#189 Depends on D142085. Reviewed By: kito-cheng Differential Revision: https://reviews.llvm.org/D142644
-
Nikita Popov authored
-
Zain Jaffal authored
Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D141922
-
Sergei Barannikov authored
Enabling opaque pointers has changed the mangled names of these two ARM intrinsics: `arm.mve.vldr.gather.offset.predicated.v2i64.p0i64.v2i64.v4i1` `arm.mve.vstr.scatter.offset.predicated.p0i64.v2i64.v2i64.v4i1` They are now spelled as: `arm.mve.vldr.gather.offset.predicated.v2i64.p0.v2i64.v4i1` `arm.mve.vstr.scatter.offset.predicated.p0.v2i64.v2i64.v4i1` Upgrade intrinsic upgrading code to account for the change in names. Differential Revision: https://reviews.llvm.org/D142900
-
Corentin Jabot authored
This implements P2036R3 and P2579R0. That is, explicit, int, and implicit capture become visible at the start of the parameter head. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D124351
-
David Spickett authored
The orginal single folder layout produced libraries in the form: lib/linux/<libname>-<archname>.a That archname for Arm depended on whether you had hard or soft float. This is sometimes shown as "arm" (soft) vs. "armhf" (hard). If this is set in a triple we do it in the final portion, the ABI. "gnueabi" for soft float, "gnueabihf" for hard float. Meaning that the expected triple is: arm-unknown-linux-gnueabihf Not this: armhf-unknown-linux-gnueabihf For the per target layout I have decided to rely on the ABI portion of the triple instead of the arch name used for the old layout (doing that would produce the invalid triple above). This means that building with triple: armv8l-unknown-linux-gnueabihf Will result in libraries in: lib/arm-unknown-linux-gnueabihf/ And clang will now know to look for "arm" instead of "armv8l". Meaning that we can share libraries between an armv8 and armv7 build as we did with the previous layout. In addition to handling spelling differences e.g. "armv8l" with an "l" on some Linux distros. compiler-rt will autodetect that the "armhf" and/or "arm" architecture can be built. We then replace the given triple's architecture with that. Then if the triple's float ABI doesn't match, we change that. That new triple is then used as the folder name. If you select to build only the given triple, with COMPILER_RT_DEFAULT_TARGET_ONLY, compiler-rt will not autodetect the architecture and for that I assume you know what you're doing. In that case the library path will use the unomdified triple. From what I can tell, this is how most large builds e.g Android and Arm's Embedded Toolchain for llvm do things. I assume that big endian "armeb" builds would end up doing this too. Bare metal builds will not be using per target runtime dirs so they remain as they were. Depends on D139536 Reviewed By: MaskRay, phosek Differential Revision: https://reviews.llvm.org/D140011
-
eopXD authored
This reverts commit 21535448. Buildbot failure https://lab.llvm.org/buildbot#builders/139/builds/35218 shows left-out test cases that were not updated.
-
eopXD authored
This commit adds prefix for the non-overloaded RVV intrinsics. This is the 2nd commit of a patch-set to add __riscv_ for all RVV intrinsics. This follows the naming guideline under riscv-c-api-doc to add the `__riscv_` suffix for all RVV intrinsics. Pull Request: riscv-non-isa/riscv-c-api-doc#31 riscv-non-isa/rvv-intrinsic-doc#189 Depends on D142085. Reviewed By: kito-cheng Differential Revision: https://reviews.llvm.org/D142644
-
Maya Amrami authored
OneShotModuleBufferize fails if the input IR cannot be analyzed. One can set CopyBeforeWrite=true in order to skip analysis. In that case, a buffer copy is inserted on every write. This leads to many copies, also in FuncOps that could be analyzed. This change aims to copy buffers only when it is a must. When running OneShotModuleBufferize with CopyBeforeWrite=false, FuncOps whose names are specified in noAnalysisFuncFilter will not be analyzed. Ops in these FuncOps will not be analyzed as well. They will be bufferized with CopyBeforeWrite=true, while the other ops will be bufferized with CopyBeforeWrite=false. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D142631
-
eopXD authored
This commit adds prefix for intrinsics that are defined through `HeaderCode` under `riscv_vector.td`. This is the 1st commit of a patch-set to add `__riscv_` for all RVV intrinsics. This follows the naming guideline under riscv-c-api-doc to add the `__riscv_` suffix for all RVV intrinsics. Pull Request: riscv-non-isa/riscv-c-api-doc#31 riscv-non-isa/rvv-intrinsic-doc#189 Depends on D142016. Reviewed By: kito-cheng Differential Revision: https://reviews.llvm.org/D142085
-
Valentin Clement authored
Lower STOARGE_SIZE intrinsic when the argument is polymoprhic or unlimited polymorphic. STOARGE_SIZE for monomorphic entity is folded by the frontend. Reviewed By: vzakhari, vdonaldson Differential Revision: https://reviews.llvm.org/D142896
-
Max Kazantsev authored
This reverts commit 5cb568a3. Internal testing found failures, need to investigate.
-
Matthias Springer authored
-
Guillaume Chatelet authored
Context https://reviews.llvm.org/D142459#4081179 Differential Revision: https://reviews.llvm.org/D142625
-
Christian Ulmann authored
This change was reverted because it introduced a linking issue due to duplicated symbols. Making sure that the detail helper only has a static header implementation fixes this issue. Reviewed By: gysit Differential Revision: https://reviews.llvm.org/D142635
-
Matthias Springer authored
The masked op can currently not bufferize out-of-place. Such IR would be rejected by the One-Shot Bufferize because it would mean that a new buffer allocation is yielded from a block. Furthermore, only one operation is currently allowed inside `vector.mask`. Differential Revision: https://reviews.llvm.org/D141686
-
Adrian Kuegel authored
walk() skips identical sub-attributes. Adjust the unit test to show this. Differential Revision: https://reviews.llvm.org/D142956
-
Siva Chandra Reddy authored
-
Petr Hosek authored
This is now supported. Differential Revision: https://reviews.llvm.org/D142917
-
Siva Chandra Reddy authored
It currently renamed to "llvmlibc" under the runtimes/boostrap build. This prevents us from making a full libc build. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D142919
-
Adrian Kuegel authored
Found by ClangTidyLegacy check.
-
Kadir Cetinkaya authored
We are performing this filtering due to having unix style file paths in certain tests. Hence we're actually trying to filter based on host platform and not the target-triple LLVM is using. 2493a701 introduced filtering based on host platform already, so we can get rid of target-triple based filtering now.
-
River Riddle authored
It's much cleaner and simpler to drive wacky configs via the AttrTypeSubElementHandler interface, instead of override.
-
Max Kazantsev authored
When guards are represented as widenable branches, there is a tricky situation when the branch stays in loop but widenable condition doesn't. It means that the widenable condition is loop-invariant, and some other optimizations could have done changes using this fact. If widening is allowed to create widened condition inside this loop, and join the loop-invariant wc with some non-invariant facts, it can cause miscompile. See example of this at https://github.com/llvm/llvm-project/issues/60234. The solution is to adjust the point of generationg the wide condition, and therefore of hoisting all related parts there. It should not be before the branch, but before the widenable_condition call. The fact that `wc()` and the wide condition are in the same block guarantees that they will not violate the invariance property for any loop. Differential Revision: https://reviews.llvm.org/D142693 Reviewed By: apilipenko
-
Quinn Dawkins authored
This is a similar to the existing folder for f16 to f32 added with D96041 but instead for integer types where destination bits > source bits. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D142922
-