llvm / clangir

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

[CIR][CIRGen] Support OpenCL Vector Types #613

Closed seven-mile closed 1 month ago

seven-mile commented 1 month ago

Resolve #532 .

Support CIRGen of ExtVectorElementExpr that includes swizzle v.xyx and subscription v.s0.

seven-mile commented 1 month ago

Test cases improved. Tell me if I missed something! ; )

seven-mile commented 1 month ago

Nice catch! I appreciate it. Updated.

Removed test cases for int7 and the code path to support odd-component vectors. Will submit the patch for 3-component vectors and the removed part afterward.