[OperandBundles] Identify operand bundles with both their names and IDs
[oota-llvm.git] / include / llvm / IR / CallSite.h
index ffea707a32def1c8c50ed64310b1cc54f3ebc219..820f96356c6791f0bb7bf7127d6ba7adb5ef1acb 100644 (file)
@@ -383,6 +383,10 @@ public:
     CALLSITE_DELEGATE_GETTER(getOperandBundle(Name));
   }
 
+  Optional<OperandBundleUse> getOperandBundle(uint32_t ID) const {
+    CALLSITE_DELEGATE_GETTER(getOperandBundle(ID));
+  }
+
 #undef CALLSITE_DELEGATE_GETTER
 #undef CALLSITE_DELEGATE_SETTER