llvm / clangir

A new (MLIR based) high-level IR for clang.
https://clangir.org
Other
307 stars 84 forks source link

[CIR][ThroughMLIR] lowering cir.vec.create, extract, insert op to MLIR vector Dialect #681

Closed Kritoooo closed 2 weeks ago

Kritoooo commented 3 weeks ago

This pr adds cir.vec.create, extract, insert op lowering to MLIR passes and test files. Can we lower the vector-related operations in CIR to the vector dialect? This is feasible, although the vector dialect hasn't been used in the CIRToMLIR conversion before. If this lowering is acceptable, I will complete the remaining operations' lowering in the next PR. If there is a more suitable dialect, feel free to discuss it.