llvm/llvm-project

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

Open

#174,584 创建于 2026年1月6日

在 GitHub 查看
 (9 评论) (1 反应) (1 负责人)C++ (10,782 fork)batch import
good first issuellvm:SelectionDAG

仓库指标

Star
 (26,378 star)
PR 合并指标
 (平均合并 1天 2小时) (30 天内合并 1,000 个 PR)

描述

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

贡献者指南