llvm/llvm-project

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

Open

#174,584 opened on 2026年1月6日

GitHub で見る
 (9 comments) (1 reaction) (1 assignee)C++ (10,782 forks)batch import
good first issuellvm:SelectionDAG

Repository metrics

Stars
 (26,378 stars)
PR merge metrics
 (平均マージ 1d 2h) (30d で 1,000 merged PRs)

説明

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

コントリビューターガイド