[PATCH] D12920: Add TargetCustom type to PseudoSourceValue

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 12:03:31 PDT 2015


arsenm added inline comments.

================
Comment at: include/llvm/CodeGen/PseudoSourceValue.h:67
@@ -65,1 +66,3 @@
   bool isJumpTable() const { return Kind == JumpTable; }
+  unsigned isTargetCustom() const {
+    return (Kind >= TargetCustom) ? ((Kind+1) - TargetCustom) : 0;
----------------
Since this returns the Kind ID value instead of a bool, a name like getTargetCustom would be better


http://reviews.llvm.org/D12920





More information about the llvm-commits mailing list