AA metadata refactoring (introduce AAMDNodes)
[oota-llvm.git] / lib / IR / Metadata.cpp
index 59137e47fa0271761dbd8fb34267a2a7ebe64162..d7d64641bdb2f2daf86dbec1d496426b3c30e0c4 100644 (file)
@@ -687,6 +687,10 @@ void Instruction::setMetadata(unsigned KindID, MDNode *Node) {
   // Otherwise, removing an entry that doesn't exist on the instruction.
 }
 
+void Instruction::setAAMetadata(const AAMDNodes &N) {
+  setMetadata(LLVMContext::MD_tbaa, N.TBAA);
+}
+
 MDNode *Instruction::getMetadataImpl(unsigned KindID) const {
   // Handle 'dbg' as a special case since it is not stored in the hash table.
   if (KindID == LLVMContext::MD_dbg)