Repository navigation
llvm-export: encode enum debug tags as unsigned storage - #1222
Conversation
Signed-off-by: ZenAlexa <[email protected]>
|
H100 integration is complete. Both examples built with Rust 1.100 nightly and LLVM 23.1, emitted |
|
Worth landing. I reproduced the chain with a hand-written module through llc-21, llc-22 and the toolchain's llc 23.1: The
One change before I merge: rewrite the comment at Optional: have |
Signed-off-by: ZenAlexa <[email protected]>
|
Thanks for tracing the LLVM MC path. The comment now records the NVPTX text-emission failure, signless |
Summary
DebugEnumVariant.discriminantraw bit pattern and ordinary signed-local metadatallc -O0NVPTX loweringMotivation
DebugEnumVariant.discriminantstores the physical tag bits in au64. LLVM's NVPTX DWARF path derives extension behavior from the artificial discriminator carrier. A signed i8 carrier sign-extends tags255and251, producing.b8 4294967295and.b8 4294967291;ptxasrejects both records. The same-width unsigned carrier selects zero extension and emits.b8 255and.b8 251.The conversion is scoped to the artificial enum discriminator member. Ordinary signed locals retain
DW_ATE_signed.Validation
cargo test -p llvm-exportllc -O0.b8 0xffffffffffffffff.b8 255.b8 255and.b8 251, and assembled with CUDA 13.1.115ptxasat exit code 0cargo clippy -p llvm-export --all-targets -- -D warningsgit diff --checkFixes #1220