[PATCH] D12920: Add TargetCustom type to PseudoSourceValue

Marcello Maggioni via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 17:50:47 PDT 2015


kariddi marked an inline comment as done.

================
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;
----------------
arsenm wrote:
> Since this returns the Kind ID value instead of a bool, a name like getTargetCustom would be better
Agreed , done in the next patch


http://reviews.llvm.org/D12920





More information about the llvm-commits mailing list