[clang] [clang][NFC] Refactor CodeGen's hasBooleanRepresentation (PR #134159)

Michele Scandale via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 15 22:12:45 PDT 2025


michele-scandale wrote:

Given that there are already similar functions in the `Type` class -- e.g. `has{Signed,Unsigned,}IntegerRepresentation`, `hasFloatingRepresentation` -- it seems a bit inconsistent the definition of `hasBooleanRepresentation`. I would expect that "vector of booleans" to have `hasBooleanRepresentation` returning `true`, and I would expect `_Atomic(<type with boolean representation>)` to have `hasBooleanRepresentation` returning `false`.
Any thoughts?

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


More information about the cfe-commits mailing list