[clang] [clang] Emit i32 args for __builtin_prefetch (PR #202111)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 7 21:18:00 PDT 2026
mygitljf wrote:
oh, It is closely related, but I don't think it is an exact duplicate. #201623 handles the poison/UB immarg case like `2 >> 32`, while this PR handles valid non-`int` constant expressions like `sizeof`/`ULL` that can still produce non-`i32` LLVM constants. From what I can tell, `EmitScalarOrConstFoldImmArg` still preserves the expression's integer type, so it may not cover the `sizeof`/`ULL` case.
https://github.com/llvm/llvm-project/pull/202111
More information about the cfe-commits
mailing list