llvm/llvm-project

[mlir][Vector] Improve support for 0-d vectors in vector dialect lowerings

Open

#112 913 ouverte le 18 oct. 2024

Voir sur GitHub
 (6 commentaires) (0 réactions) (1 assigné)C++ (10 782 forks)batch import
good first issuemlir:vector

Métriques du dépôt

Stars
 (26 378 stars)
Métriques de merge PR
 (Merge moyen 1j 2h) (1 000 PRs mergées en 30 j)

Description

A number of patterns in vector dialect lowerings predate 0-d vector support and side step from 0-d vectors by converting them to scalars and then broadcasting them. An example patch fixing this: https://github.com/llvm/llvm-project/pull/112907

Some example issues:

I have tested removing these, and the llvm ir generated from llvm.store with 0-d vectors is correct. (Good first issue)

Guide contributeur