This repository was archived by the owner on Feb 21, 2026. It is now read-only.
Commit 466b19e
committed
[CIR] Support mixed scalar/vector init-list vector construction
Extend vector init-list emission to accept a mix of scalar and
vector-valued initializers by flattening sub-vectors elementwise.
This enables nested vector construction patterns such as
(int3)(int2, scalar) and aligns CIR behavior with Clang vector semantics.1 parent 5237bd4 commit 466b19e
2 files changed
Lines changed: 79 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2239 | 2239 | | |
2240 | 2240 | | |
2241 | 2241 | | |
| 2242 | + | |
2242 | 2243 | | |
2243 | | - | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
2244 | 2247 | | |
| 2248 | + | |
2245 | 2249 | | |
2246 | | - | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
2247 | 2273 | | |
2248 | | - | |
2249 | | - | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
2250 | 2277 | | |
2251 | 2278 | | |
2252 | | - | |
2253 | | - | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
2254 | 2282 | | |
2255 | | - | |
2256 | 2283 | | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
2257 | 2288 | | |
2258 | 2289 | | |
2259 | 2290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
0 commit comments