[llvm] [CodeGen] Represent ISD::ArgFlagsTy flags as a bitmask (NFC) (PR #217548)
Cullen Rhodes via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 00:50:46 PDT 2026
c-rhodes wrote:
I discovered before posting this it was actually a raw mask before it was replaced with bitfields in 2017 by https://github.com/llvm/llvm-project/commit/b74485dfaaf42e58e2b240bcb040c5f93910338e (following https://reviews.llvm.org/D29668#inline-258469). The old design packed flags and alignment/byval size into one uint64_t, requiring manual masks and offsets. This makes it so only booleans use a typed mask and other data remains separate.
I've been looking at call lowering compile-time in GISel recently (https://github.com/c-rhodes/llvm-project/commit/a3f10f89b510f74a7cda1e621d44e81d9ac0a5ce) and CTMark instrumention shows pointer dominates but the existing API necessitates checking lots of flags.
https://github.com/llvm/llvm-project/pull/217548
More information about the llvm-commits
mailing list