llvm/llvm-project

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

開放

#174,584 建立於 2026年1月6日

 (9 則留言) (1 個反應) (1 位負責人)C++ (10,782 個分叉)batch import
good first issuellvm:SelectionDAG

倉庫指標

星標
 (26,378 顆星)
PR 合併指標
 (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

貢獻者指南