Provide a way to specify inliner's attribute compatibility and merging.
[oota-llvm.git] / lib / IR / LLVMContext.cpp
index ee971c1be194e001ad6fd1a571c3970af939ec82..af998c861357121ee5732cdcc3395dd714bda180 100644 (file)
@@ -123,6 +123,15 @@ LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) {
          "invariant.group kind id drifted");
   (void)InvariantGroupId;
 
+  // Create the 'align' metadata kind.
+  unsigned AlignID = getMDKindID("align");
+  assert(AlignID == MD_align && "align kind id drifted");
+  (void)AlignID;
+
+  auto *DeoptEntry = pImpl->getOrInsertBundleTag("deopt");
+  assert(DeoptEntry->second == LLVMContext::OB_deopt &&
+         "deopt operand bundle id drifted!");
+  (void)DeoptEntry;
 }
 LLVMContext::~LLVMContext() { delete pImpl; }