[PATCH] D69139: [Types] Define a changeBitWidth for Types and make use of it.

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 17 23:12:07 PDT 2019


lebedev.ri added a comment.

In D69139#1713852 <https://reviews.llvm.org/D69139#1713852>, @dmgreen wrote:

> Hows about a static getWithNewBitWidth(Type*, NewBitWidth)? Similar to Types existing static get methods.
>
> So used like: `Type *CondTy = Type::getWithNewBitWidth(RetTy, 1)`


AH yes, i think that would be good.
I don't really see why it should be static, `getExtendedType()` isn't.


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

https://reviews.llvm.org/D69139





More information about the llvm-commits mailing list