llvm.org GIT mirror llvm / 0b36bb3
Remove the methods for attaching metadata to instructions/retrieving metadata from instructions. Chandler doesn't like them being here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154813 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan Sands 8 years ago
1 changed file(s) with 0 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
1616
1717 #include "llvm/Constants.h"
1818 #include "llvm/DerivedTypes.h"
19 #include "llvm/Instructions.h"
2019 #include "llvm/LLVMContext.h"
2120 #include "llvm/Metadata.h"
2221 #include "llvm/ADT/APInt.h"
4948 Type *Ty = IntegerType::get(Context, Lo.getBitWidth());
5049 Value *Range[2] = { ConstantInt::get(Ty, Lo), ConstantInt::get(Ty, Hi) };
5150 return MDNode::get(Context, Range);
52 }
53
54 /// GetRangeMetadata - Get range metadata attached to an instruction.
55 MDNode *GetRangeMetadata(Instruction *I) const {
56 return I->getMetadata(LLVMContext::MD_range);
57 }
58
59 /// SetRangeMetadata - Attach range metadata to an instruction.
60 void SetRangeMetadata(Instruction *I, MDNode *RangeTag) {
61 I->setMetadata(LLVMContext::MD_range, RangeTag);
6251 }
6352
6453
10594 }
10695 }
10796
108 /// GetTBAAMetadata - Get tbaa metadata attached to an instruction.
109 MDNode *GetTBAAMetadata(Instruction *I) const {
110 return I->getMetadata(LLVMContext::MD_tbaa);
111 }
112
113 /// SetTBAAMetadata - Attach tbaa metadata to an instruction.
114 void SetTBAAMetadata(Instruction *I, MDNode *TBAATag) {
115 I->setMetadata(LLVMContext::MD_tbaa, TBAATag);
116 }
117
11897 };
11998
12099 } // end namespace llvm