[PATCH] D12920: Add TargetCustom type to PseudoSourceValue

Marcello Maggioni via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 18:31:47 PDT 2015


kariddi added a comment.

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?


http://reviews.llvm.org/D12920





More information about the llvm-commits mailing list