aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Instruction.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r--include/llvm/Instruction.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h
index 0ac1921682..871ed037ef 100644
--- a/include/llvm/Instruction.h
+++ b/include/llvm/Instruction.h
@@ -85,6 +85,9 @@ public:
return iType >= FirstBinaryOp && iType < NumBinaryOps;
}
+ // isPHINode() - This is used frequently enough to allow it to exist
+ inline bool isPHINode() const { return iType == PHINode; }
+
//----------------------------------------------------------------------
// Exported enumerations...