DI: Rewrite the DIBuilder local variable API
[oota-llvm.git] / include / llvm / IR / Intrinsics.h
index e12ccace25cab386e411b345b8d03fafcc60c2f0..43b8325107fa429ea025f5434994a21781bfef36 100644 (file)
@@ -52,6 +52,11 @@ namespace Intrinsic {
   /// Returns true if the intrinsic can be overloaded.
   bool isOverloaded(ID id);
 
+  /// Returns true if the intrinsic is a leaf, i.e. it does not make any calls
+  /// itself.  Most intrinsics are leafs, the exceptions being the patchpoint
+  /// and statepoint intrinsics. These call (or invoke) their "target" argument.
+  bool isLeaf(ID id);
+
   /// Return the attributes for an intrinsic.
   AttributeSet getAttributes(LLVMContext &C, ID id);