You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[CIR][CodeGen] Support trailing_zeros for constant string literals (llvm#617)
The patch resolves [issue
llvm#248](llvm/clangir#248). It can be considered
a subsequent patch to [llvm#373](llvm/clangir#373),
where the case of empty strings was processed.
The new patch adds processing for non-empty strings that may contain
trailing zeros, such as:
```
char big_string[100000] = "123";
```
That is converted to
```
@big_string = #cir.const_array<"123" : !cir.array<!s8i x 3>, trailing_zeros> : !cir.array<!s8i x 100000>
```
0 commit comments