[PATCH] D81580: [ADT] Add Bitfield utilities

Clement Courbet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 01:50:47 PDT 2020


courbet added a comment.

Can you create an example patch rebased on this to show how this changes the bit twiddling code for an example instruction ? Maybe this could go through an RFC ? I'm personally, this would make the code much cleaner.

The only thing that this would not handle is if an instruction does its bit twidling based on some dynamic property, e.g. `SubclassData & 1 << (dynamic_value) `. But your proposal does not have to be used for that case.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81580/new/

https://reviews.llvm.org/D81580





More information about the llvm-commits mailing list