aboutsummaryrefslogtreecommitdiff
path: root/libc/test/src/wchar/wcsncpy_test.cpp
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2026-02-18 02:34:53 +0100
committerGitHub <noreply@github.com>2026-02-17 17:34:53 -0800
commit3210e2013eded053a43bfad0e212fc0eff99fee0 (patch)
tree47b3ec9cf925c7ff7bc3803a516a279942292de9 /libc/test/src/wchar/wcsncpy_test.cpp
parent63db233b3891412368189ddc7fcea8a38d9c3749 (diff)
downloadllvm-main.zip
llvm-main.tar.gz
llvm-main.tar.bz2
[CIR] Implement shouldCreateMemCpyFromGlobal in LoweringPrepare (#181276)HEADmain
CIRGen emits cir.const + cir.store for aggregate initialization, keeping closer to source-level semantics. LoweringPrepare transforms stores of constant aggregates (arrays, records) into cir.global + cir.get_global + cir.copy, matching OG codegen's shouldCreateMemCpyFromGlobal optimization. The transform only applies to stores targeting cir.alloca (local variables inside cir.func). Stores in other contexts (e.g. OpenACC reduction recipe init blocks, base class initialization) are left as cir.const + cir.store. Also fixes CopyOp lowering to use i64 for the memcpy length instead of i32, matching OG codegen behavior.
Diffstat (limited to 'libc/test/src/wchar/wcsncpy_test.cpp')
0 files changed, 0 insertions, 0 deletions