[PATCH] D109555: [APInt] Enable APInt to support zero bit integers.

Chris Lattner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 9 16:26:43 PDT 2021


lattner added a comment.

One random example of where zero bit values would be better: https://github.com/llvm/circt/blob/main/lib/Dialect/Comb/CombFolds.cpp#L1909

The bigger problem is that things like firrtl.constant cannot represent zero bit values, which causes no end of problem, e.g. here:
https://github.com/llvm/circt/blob/main/lib/Dialect/FIRRTL/FIRRTLFolds.cpp


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109555



More information about the llvm-commits mailing list