llvm-project
c173281c - [MachineInst] Increase LLVM_MI_FLAGS_BITS to 32 bits (NFCI) (#175542)

Commit
69 days ago
[MachineInst] Increase LLVM_MI_FLAGS_BITS to 32 bits (NFCI) (#175542) We have hit the limit of 24 bits for LLVM_MI_FLAGS_BITS in upstream. In our downstream target we are using additional bits, so we're hitting the "Flag is out of range" assertions in get/setFlag functions. Increase LLVM_MI_FLAGS_BITS to 32 bits, and reorder the fields of MachineInstr to avoid extra padding and the subsequent increase in size. Since the alignment of the class is 8 and the last member was 16-bit before this change we can get more bits by moving things around.
Author
Parents
Loading