llvm/llvm-project

[DAG] Add MVT:changeVectorElementCount and EVT::changeVectorElementCount

Open

#174.584 geöffnet am 6. Jan. 2026

Auf GitHub ansehen
 (9 Kommentare) (1 Reaktion) (1 zugewiesene Person)C++ (10.782 Forks)batch import
good first issuellvm:SelectionDAG

Repository-Metriken

Stars
 (26.378 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 2h) (1.000 gemergte PRs in 30 T)

Beschreibung

Similar to EVT::changeVectorElementType - but this will allow us to adjust the ElementCount on the fly.

We should assert that the original type was a vector already, but we will need to support Simple<->Extended transitions similar to EVT::changeVectorElementType.

There are a number of EVT::getVectorVT() calls in DAGCombine that would benefit from converting to changeVectorElementCount for clarity, but don't attempt to do too many in an initial patch

Contributor Guide