aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Attributes.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-08-20 10:28:32 -0700
committerArthur Eubanks <aeubanks@google.com>2021-08-20 10:38:35 -0700
commitd7df81274066dcf76c5fb12ff66ce994c2789224 (patch)
tree90c923e1c04adecb6fdf9d84f33d414acab9d34f /llvm/lib/IR/Attributes.cpp
parent25599c3ff915242bf53e7594e7f695e5c6a53120 (diff)
downloadllvm-d7df81274066dcf76c5fb12ff66ce994c2789224.zip
llvm-d7df81274066dcf76c5fb12ff66ce994c2789224.tar.gz
llvm-d7df81274066dcf76c5fb12ff66ce994c2789224.tar.bz2
[NFC] Cleanup/remove some AttributeList setter methods
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r--llvm/lib/IR/Attributes.cpp22
1 files changed, 7 insertions, 15 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index 3eca9a0..d0bf6c1 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -1351,28 +1351,20 @@ AttributeList AttributeList::addDereferenceableParamAttr(LLVMContext &C,
}
AttributeList
-AttributeList::addDereferenceableOrNullAttr(LLVMContext &C, unsigned Index,
- uint64_t Bytes) const {
+AttributeList::addDereferenceableOrNullParamAttr(LLVMContext &C, unsigned Index,
+ uint64_t Bytes) const {
AttrBuilder B;
B.addDereferenceableOrNullAttr(Bytes);
- return addAttributes(C, Index, B);
+ return addParamAttributes(C, Index, B);
}
AttributeList
-AttributeList::addAllocSizeAttr(LLVMContext &C, unsigned Index,
- unsigned ElemSizeArg,
- const Optional<unsigned> &NumElemsArg) {
+AttributeList::addAllocSizeParamAttr(LLVMContext &C, unsigned Index,
+ unsigned ElemSizeArg,
+ const Optional<unsigned> &NumElemsArg) {
AttrBuilder B;
B.addAllocSizeAttr(ElemSizeArg, NumElemsArg);
- return addAttributes(C, Index, B);
-}
-
-AttributeList AttributeList::addVScaleRangeAttr(LLVMContext &C, unsigned Index,
- unsigned MinValue,
- unsigned MaxValue) {
- AttrBuilder B;
- B.addVScaleRangeAttr(MinValue, MaxValue);
- return addAttributes(C, Index, B);
+ return addParamAttributes(C, Index, B);
}
//===----------------------------------------------------------------------===//