[clang] [llvm] [Clang][BPF] Allow sign/zero extension for call parameters with int/uint types (PR #84874)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 12 16:25:20 PDT 2024


https://github.com/efriedma-quic commented:

Oh, this is making a bit more sense now... I didn't realize this was overriding method that handles char/short already.  And I guess for BPF targets, you can assume "long" is 64 bits.

That said, this isn't handling "unsigned int" correctly.  "unsigned int" is supposed to be sign-extended on RISC-V targets.  (How you resolve the conflict with PowerPC, where "unsigned int" is supposed to be zero-extended, I'm not sure.)

https://github.com/llvm/llvm-project/pull/84874


More information about the cfe-commits mailing list