[PATCH] D12920: Add TargetCustom type to PseudoSourceValue

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 18:32:52 PDT 2015


arsenm added a comment.

In http://reviews.llvm.org/D12920#247564, @kariddi wrote:

> Do you mean change "isTargetCustom()" to something like (not final):
>
> unsigned isTargetCustom() const {
>
>   unsigned KindVal = (unsigned) Kind;
>   return (KindVal >= TargetCustom) ? ((KindVal+1) - TargetCustom) : 0;
>
> }
>
> such that it returns 1, 2, 3 ... if the Kind is bigger or equal to TargetCustom and 0 if it is not a TargetCustom?


Yes, exactly


http://reviews.llvm.org/D12920





More information about the llvm-commits mailing list