huixie90 wrote: @efriedma-quic
I refactored the code which does the following 1. Breadth first search the AST type, fill in "occupied bits intervals" 2. sort and merge the occupied bits interval and work out the "padding" bits intervals 3. clear the padding intervals. current converting to the byte level and write zeros byte. todo: need to deal with bits that don't occupy the full byte. need to generate instructions like `Byte &= ~PaddingBitMask` . How to generate such an IR instruction ? https://github.com/llvm/llvm-project/pull/75371 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits