- Nov 11, 2022
-
-
Caroline Concatto authored
This patch adds the assembly/disassembly for the following instruction: SEL: Multi-vector conditionally select elements from two vectors for 2 and 4 registers Non-constiguous load with stride resgisters: LD1B (scalar + immediate): Contiguous load of bytes to multiple strided vectors (immediate index). (scalar + scalar): Contiguous load of bytes to multiple strided vectors (scalar index). LD1D (scalar + immediate): Contiguous load of doublewords to multiple strided vectors (immediate index). (scalar + scalar): Contiguous load of doublewords to multiple strided vectors (scalar index). LD1H (scalar + immediate): Contiguous load of halfwords to multiple strided vectors (immediate index). (scalar + scalar): Contiguous load of halfwords to multiple strided vectors (scalar index). LD1W (scalar + immediate): Contiguous load of words to multiple strided vectors (immediate index). (scalar + scalar): Contiguous load of words to multiple strided vectors (scalar index). LDNT1B (scalar + immediate): Contiguous load non-temporal of bytes to multiple strided vectors (immediate index). (scalar + scalar): Contiguous load non-temporal of bytes to multiple strided vectors (scalar index). LDNT1D (scalar + immediate): Contiguous load non-temporal of doublewords to multiple strided vectors (immediate index). (scalar + scalar): Contiguous load non-temporal of doublewords to multiple strided vectors (scalar index). LDNT1H (scalar + immediate): Contiguous load non-temporal of halfwords to multiple strided vectors (immediate index). (scalar + scalar): Contiguous load non-temporal of halfwords to multiple strided vectors (scalar index). LDNT1W (scalar + immediate): Contiguous load non-temporal of words to multiple strided vectors (immediate index). (scalar + scalar): Contiguous load non-temporal of words to multiple strided vectors (scalar index). Non-constiguous store with stride resgisters: ST1B (scalar + immediate): Contiguous store of bytes from multiple strided vectors (immediate index). (scalar + scalar): Contiguous store of bytes from multiple strided vectors (scalar index). ST1D (scalar + immediate): Contiguous store of doublewords from multiple strided vectors (immediate index). (scalar + scalar): Contiguous store of doublewords from multiple strided vectors (scalar index). ST1H (scalar + immediate): Contiguous store of halfwords from multiple strided vectors (immediate index). (scalar + scalar): Contiguous store of halfwords from multiple strided vectors (scalar index). ST1W (scalar + immediate): Contiguous store of words from multiple strided vectors (immediate index). (scalar + scalar): Contiguous store of words from multiple strided vectors (scalar index). STNT1B (scalar + immediate): Contiguous store non-temporal of bytes from multiple strided vectors (immediate index). (scalar + scalar): Contiguous store non-temporal of bytes from multiple strided vectors (scalar index). STNT1D (scalar + immediate): Contiguous store non-temporal of doublewords from multiple strided vectors (immediate index). (scalar + scalar): Contiguous store non-temporal of doublewords from multiple strided vectors (scalar index). STNT1H (scalar + immediate): Contiguous store non-temporal of halfwords from multiple strided vectors (immediate index). (scalar + scalar): Contiguous store non-temporal of halfwords from multiple strided vectors (scalar index). STNT1W (scalar + immediate): Contiguous store non-temporal of words from multiple strided vectors (immediate index). (scalar + scalar): Contiguous store non-temporal of words from multiple strided vectors (scalar index). The reference can be found here: https://developer.arm.com/documentation/ddi0602/2022-09 This patch also adds a new SVE vector list to represent the stride loads/stores ZPRVectorListStrided and the sets of 2 and 4 ZA registers: ZZ_[b|h|w|d]_strided and ZZZZ_[b|h|w|d]_strided Differential Revision: https://reviews.llvm.org/D136172
-
- Nov 10, 2022
-
-
Andrzej Warzynski authored
D129156 has caused a buildbot failure: * https://lab.llvm.org/buildbot/#/builders/175/builds/20472. Clearly `examples` is missing from the `REQUIRES` list. Sending this without a review as a quick fix.
-
bixia1 authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D137733
-
Nico Weber authored
-
Tarun Prabhu authored
This patch adds the -fpass-plugin option to flang which dynamically loads LLVM passes from the shared object passed as the argument to the flag. The behavior of the option is designed to replicate that of the same option in clang and thus has the same capabilities and limitations. Features: Multiple instances of -fpass-plugin=path-to-file can be specified and each of the files will be loaded in that order. The flag can be passed to both flang-new and flang-new -fc1. The flag will be listed when the -help flag is passed to both flang-new and flang-new -fc1. It will also be listed when the --help-hidden flag is passed. Limitations: Dynamically loaded plugins are not supported in clang on Windows and are not supported in flang either. Addenda: Some minor stylistic changes are made in the files that were modified to enable this functionality. Those changes make the naming of functions more consistent, but do not change any functionality that is not directly related to enabling -fpass-plugin. Differential Revision: https://reviews.llvm.org/D129156
-
Haojian Wu authored
- add support to PragmaIncludes to handle IWYU export/begin_exports/end_exports pragma; - implement an API to retrieve the direct exporter headers; Differential Revision: https://reviews.llvm.org/D137319
-
Stefan Pintilie authored
Add a new instruction called SUBUFS that does saturating subtract. This instruction is only for Future CPU. Reviewed By: amyk Differential Revision: https://reviews.llvm.org/D137643
-
Benjamin Kramer authored
-
Matthias Springer authored
Ops such as `%1 = vector.extractelement %0[%pos : index] : vector<96xf32>`. In case of an extract from a 1D vector, the source vector is distributed. The lane into which the requested position falls, extracts the element and shuffles it to all other lanes. Differential Revision: https://reviews.llvm.org/D137336
-
Keith Walker authored
This patch adds assembler/disassembler support for RME MEC (Memory Encryption Contexts). Cache maintence instructions added: - DC CIPAPA - DC CIGDPAPA System registers added: - MECIDR_EL2 - MECID_P0_EL2 - MECID_A0_EL2 - MECID_P1_EL2 - MECID_A1_EL2 - VMECID_P_EL2 - VMECID_A_EL2 - MECID_RL_A_EL3 Differential Revision: https://reviews.llvm.org/D137431
-
Valentin Clement authored
RewriteLoop.cpp is containing more than just loop conversion. It will soon contains the fir.select_type conversion as well. This patch renames the file so it is in line with the pass name. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D137773
-
Timm Bäder authored
This causes unnecessary churn for downstreams. For the full discussion, see https://discourse.llvm.org/t/should-we-continue-embed-the-full-llvm-version-in-lib-clang/62094 Differential Revision: https://reviews.llvm.org/D125860
-
LLVM GN Syncbot authored
-
LLVM GN Syncbot authored
-
Nico Weber authored
-
Hassnaa Hamdi authored
Add sve-fixed-length testing files and enable streaming mode flag for: and-combine.ll bitcast.ll reshuffle.ll rev.ll sdiv-pow2.ll splat-vector.ll int-extends.ll Differential Revision: https://reviews.llvm.org/D137093
-
Krasimir Georgiev authored
-
jinge90 authored
Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D137529 Signed-off-by:
jinge90 <ge.jin@intel.com>
-
wanglei authored
When using `llvm.returnaddress` intrinsic, special handling is required for the spill of the `RA` register. Otherwise it will cause the verifier fail in some cases (e.g. pr17377.c of the GCC C Torture Suite). Specifically: ``` *** Bad machine code: Using an undefined physical register *** - function: f - basic block: %bb.0 entry (0xd94d18) - instruction: ST_D killed $r1, $r22, -40 :: (store (s64) into %stack.2) - operand 0: killed $r1 ``` Reviewed By: SixWeining Differential Revision: https://reviews.llvm.org/D137387
-
Bing1 Yu authored
Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D137388
-
Alexander Timofeev authored
This is required for the upcoming backward PEI::replaceFrameIndices version. Both forward and backward versions will use same code for debug instruction processing. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D137741
-
wanglei authored
These hooks ensure that the LoongArch backend can serialize and parse MIR correctly. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D137482
-
Ivan Kosarev authored
https://reviews.llvm.org/D137549 makes them unnecessary. Reviewed By: dp Differential Revision: https://reviews.llvm.org/D137638
-
Ivan Kosarev authored
Currently, the asm parser stops matching instruction operands as soon as the first optional operand is encountered. This leads to the need for custom checks on missing mandatory operands that come after optional operands. The patch changes the parser to always match all optional and mandatory instruction operands, thus making the custom checks unnecessary. This is particularly useful for the AMDGPU backend where we have numerous optional instruction modifiers. Differential Revision: https://reviews.llvm.org/D137549
-
Ivan Kosarev authored
Currently, the asm parser stops matching instruction operands as soon as the first optional operand is encountered. This leads to the need for custom checks on missing mandatory operands that come after optional operands. The patch changes the parser to always match all optional and mandatory instruction operands, thus making the custom checks unnecessary. This is particularly useful for the AMDGPU backend where we have numerous optional instruction modifiers. Reviewed By: dp Differential Revision: https://reviews.llvm.org/D137549
-
Simon Pilgrim authored
Fixes a lot of throughput mismatches - the more complicated conversion instructions use SKLPort5+SKLPort01, not SKLPort5+SKLPort015 (SKLPort015 is mainly used for basic Logic + blend ops) Fixing this should allow us to remove a lot of unnecessary scheduler overrides from SkylakeClientModel Confirmed by both Agner + uops.info
-
Hassnaa Hamdi authored
When streaming mode is enabled, custom-lower arithmetic and logical fixed-width vector ops; to force generateing code compatible to streaming mode. Differential Revision: https://reviews.llvm.org/D135324
-
Yeting Kuo authored
Reviewed By: frasercrmck Differential Revision: https://reviews.llvm.org/D137633
-
wanglei authored
1, spill/reload When a function call is made immediately after a floating point comparison, the result of the comparison needs to be spilled before function call and reloaded after the function returns. 2, copy Support `GPR` to `CFR` and `CFR` to `GRP` copys. Therefore, the correct register class can be used in the pattern template, and the hard-coding of mutual coping of `CFR` and `GRP` is eliminated, reducing redundant comparison instructions. Note: Since the `COPY` instruction between CFRs is not provided in LoongArch, we only use `$fcc0` in the register allocation. Reviewed By: SixWeining Differential Revision: https://reviews.llvm.org/D137004
-
Alvin Wong authored
This maps to -errorlimit:<N> in the COFF linker and is functionally identical to the same option in the ELF and MachO linker. Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D137489
-
Sergio Afonso authored
OpenMP 5.0 adds support for the "requires" directive. This patch adds parser support for it in flang. Differential revision: https://reviews.llvm.org/D136867
-
v1nh1shungry authored
Show string-literals' type and size in a hover card Issue related: https://github.com/clangd/clangd/issues/1016 Reviewed By: kadircet Differential Revision: https://reviews.llvm.org/D137650
-
Sander de Smalen authored
It turns that the issue was unrelated to the code-changes, but only triggered by one of the tests. The SMEABI pass incorrectly marked the CFG as preserved, even though it modified the CFG. This reverts commit 8bcf5df3.
-
Vladislav Vinogradov authored
To allow interface usage in standalone projects outside of `mlir` namespace. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D137769
-
Simon Pilgrim authored
This patch adds support for detecting all current Zen/Zen3+ submodels Based off a mixture of https://github.com/torvalds/linux/blob/master/drivers/hwmon/k10temp.c#L436 and InstLatx64 https://github.com/InstLatx64/InstLatx64/tree/master/AuthenticAMD CPUID dumps and confirmed by @GGanesh Differential Revision: https://reviews.llvm.org/D137695
-
Hassnaa Hamdi authored
Add tests for masked/truncating/extending load/store and enable streaming-mode. Differential Revision: https://reviews.llvm.org/D136585
-
Tim Northover authored
We've been shipping implementations of these with a soft-float ABI since MacOS 10.10 in 2014 and there's evidence they're in binaries now, so we can't easily switch to %xmm0. This emits special libcalls with casts in place to restore the soft-float ABI for __truncdfhf2, __truncsfhf2, and __extendhfsf2.
-
gonglingqin authored
Differential Revision: https://reviews.llvm.org/D136906
-
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
-