llvm / clangir

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

[CIR][ThroughMLIR] fix BinOp, CmpOp Lowering to MLIR and lowering cir.vec.cmp to MLIR #694

Closed Kritoooo closed 1 week ago

Kritoooo commented 2 weeks ago

This PR does Three things:

  1. Fixes the BinOp lowering to MLIR issue where signed numbers were not handled correctly, and adds support for vector types. The corresponding test files have been modified.
  2. Fixes the CmpOp lowering to MLIR issue where signed numbers were not handled correctly And modified test files.
  3. Adds cir.vec.cmp lowering to MLIR along with the corresponding test files.

I originally planned to complete the remaining cir.vec.* lowerings in this PR, but it seems there's quite a lot to do, so I'll split it into multiple PRs.