@@ -373,38 +373,38 @@ class AttributeSet {
373
373
374
374
// / Add an argument attribute. Returns a new set because attribute sets are
375
375
// / immutable.
376
- LLVM_ABI [[nodiscard]] AttributeSet addAttribute (LLVMContext &C,
376
+ [[nodiscard]] LLVM_ABI AttributeSet addAttribute (LLVMContext &C,
377
377
Attribute::AttrKind Kind) const ;
378
378
379
379
// / Add a target-dependent attribute. Returns a new set because attribute sets
380
380
// / are immutable.
381
- LLVM_ABI [[nodiscard]] AttributeSet addAttribute (LLVMContext &C, StringRef Kind,
381
+ [[nodiscard]] LLVM_ABI AttributeSet addAttribute (LLVMContext &C, StringRef Kind,
382
382
StringRef Value = StringRef()) const ;
383
383
384
384
// / Add attributes to the attribute set. Returns a new set because attribute
385
385
// / sets are immutable.
386
- LLVM_ABI [[nodiscard]] AttributeSet addAttributes (LLVMContext &C,
386
+ [[nodiscard]] LLVM_ABI AttributeSet addAttributes (LLVMContext &C,
387
387
AttributeSet AS) const ;
388
388
389
389
// / Remove the specified attribute from this set. Returns a new set because
390
390
// / attribute sets are immutable.
391
- LLVM_ABI [[nodiscard]] AttributeSet removeAttribute (LLVMContext &C,
391
+ [[nodiscard]] LLVM_ABI AttributeSet removeAttribute (LLVMContext &C,
392
392
Attribute::AttrKind Kind) const ;
393
393
394
394
// / Remove the specified attribute from this set. Returns a new set because
395
395
// / attribute sets are immutable.
396
- LLVM_ABI [[nodiscard]] AttributeSet removeAttribute (LLVMContext &C,
396
+ [[nodiscard]] LLVM_ABI AttributeSet removeAttribute (LLVMContext &C,
397
397
StringRef Kind) const ;
398
398
399
399
// / Remove the specified attributes from this set. Returns a new set because
400
400
// / attribute sets are immutable.
401
- LLVM_ABI [[nodiscard]] AttributeSet
401
+ [[nodiscard]] LLVM_ABI AttributeSet
402
402
removeAttributes (LLVMContext &C, const AttributeMask &AttrsToRemove) const ;
403
403
404
404
// / Try to intersect this AttributeSet with Other. Returns std::nullopt if
405
405
// / the two lists are inherently incompatible (imply different behavior, not
406
406
// / just analysis).
407
- LLVM_ABI [[nodiscard]] std::optional<AttributeSet>
407
+ [[nodiscard]] LLVM_ABI std::optional<AttributeSet>
408
408
intersectWith (LLVMContext &C, AttributeSet Other) const ;
409
409
410
410
// / Return the number of attributes in this set.
@@ -554,24 +554,24 @@ class AttributeList {
554
554
// TODO: remove non-AtIndex versions of these methods.
555
555
// / Add an attribute to the attribute set at the given index.
556
556
// / Returns a new list because attribute lists are immutable.
557
- LLVM_ABI [[nodiscard]] AttributeList
557
+ [[nodiscard]] LLVM_ABI AttributeList
558
558
addAttributeAtIndex (LLVMContext &C, unsigned Index,
559
559
Attribute::AttrKind Kind) const ;
560
560
561
561
// / Add an attribute to the attribute set at the given index.
562
562
// / Returns a new list because attribute lists are immutable.
563
- LLVM_ABI [[nodiscard]] AttributeList
563
+ [[nodiscard]] LLVM_ABI AttributeList
564
564
addAttributeAtIndex (LLVMContext &C, unsigned Index, StringRef Kind,
565
565
StringRef Value = StringRef()) const ;
566
566
567
567
// / Add an attribute to the attribute set at the given index.
568
568
// / Returns a new list because attribute lists are immutable.
569
- LLVM_ABI [[nodiscard]] AttributeList
569
+ [[nodiscard]] LLVM_ABI AttributeList
570
570
addAttributeAtIndex (LLVMContext &C, unsigned Index, Attribute A) const ;
571
571
572
572
// / Add attributes to the attribute set at the given index.
573
573
// / Returns a new list because attribute lists are immutable.
574
- LLVM_ABI [[nodiscard]] AttributeList addAttributesAtIndex (LLVMContext &C,
574
+ [[nodiscard]] LLVM_ABI AttributeList addAttributesAtIndex (LLVMContext &C,
575
575
unsigned Index,
576
576
const AttrBuilder &B) const ;
577
577
@@ -643,7 +643,7 @@ class AttributeList {
643
643
644
644
// / Add an attribute to the attribute list at the given arg indices. Returns a
645
645
// / new list because attribute lists are immutable.
646
- LLVM_ABI [[nodiscard]] AttributeList addParamAttribute (LLVMContext &C,
646
+ [[nodiscard]] LLVM_ABI AttributeList addParamAttribute (LLVMContext &C,
647
647
ArrayRef<unsigned > ArgNos,
648
648
Attribute A) const ;
649
649
@@ -656,13 +656,13 @@ class AttributeList {
656
656
657
657
// / Remove the specified attribute at the specified index from this
658
658
// / attribute list. Returns a new list because attribute lists are immutable.
659
- LLVM_ABI [[nodiscard]] AttributeList
659
+ [[nodiscard]] LLVM_ABI AttributeList
660
660
removeAttributeAtIndex (LLVMContext &C, unsigned Index,
661
661
Attribute::AttrKind Kind) const ;
662
662
663
663
// / Remove the specified attribute at the specified index from this
664
664
// / attribute list. Returns a new list because attribute lists are immutable.
665
- LLVM_ABI [[nodiscard]] AttributeList
665
+ [[nodiscard]] LLVM_ABI AttributeList
666
666
removeAttributeAtIndex (LLVMContext &C, unsigned Index, StringRef Kind) const ;
667
667
[[nodiscard]] AttributeList removeAttribute (LLVMContext &C, unsigned Index,
668
668
StringRef Kind) const {
@@ -671,13 +671,13 @@ class AttributeList {
671
671
672
672
// / Remove the specified attributes at the specified index from this
673
673
// / attribute list. Returns a new list because attribute lists are immutable.
674
- LLVM_ABI [[nodiscard]] AttributeList
674
+ [[nodiscard]] LLVM_ABI AttributeList
675
675
removeAttributesAtIndex (LLVMContext &C, unsigned Index,
676
676
const AttributeMask &AttrsToRemove) const ;
677
677
678
678
// / Remove all attributes at the specified index from this
679
679
// / attribute list. Returns a new list because attribute lists are immutable.
680
- LLVM_ABI [[nodiscard]] AttributeList removeAttributesAtIndex (LLVMContext &C,
680
+ [[nodiscard]] LLVM_ABI AttributeList removeAttributesAtIndex (LLVMContext &C,
681
681
unsigned Index) const ;
682
682
683
683
// / Remove the specified attribute at the function index from this
@@ -773,37 +773,37 @@ class AttributeList {
773
773
774
774
// / \brief Add the dereferenceable attribute to the attribute set at the given
775
775
// / index. Returns a new list because attribute lists are immutable.
776
- LLVM_ABI [[nodiscard]] AttributeList addDereferenceableRetAttr (LLVMContext &C,
776
+ [[nodiscard]] LLVM_ABI AttributeList addDereferenceableRetAttr (LLVMContext &C,
777
777
uint64_t Bytes) const ;
778
778
779
779
// / \brief Add the dereferenceable attribute to the attribute set at the given
780
780
// / arg index. Returns a new list because attribute lists are immutable.
781
- LLVM_ABI [[nodiscard]] AttributeList addDereferenceableParamAttr (LLVMContext &C,
781
+ [[nodiscard]] LLVM_ABI AttributeList addDereferenceableParamAttr (LLVMContext &C,
782
782
unsigned ArgNo,
783
783
uint64_t Bytes) const ;
784
784
785
785
// / Add the dereferenceable_or_null attribute to the attribute set at
786
786
// / the given arg index. Returns a new list because attribute lists are
787
787
// / immutable.
788
- LLVM_ABI [[nodiscard]] AttributeList
788
+ [[nodiscard]] LLVM_ABI AttributeList
789
789
addDereferenceableOrNullParamAttr (LLVMContext &C, unsigned ArgNo,
790
790
uint64_t Bytes) const ;
791
791
792
792
// / Add the range attribute to the attribute set at the return value index.
793
793
// / Returns a new list because attribute lists are immutable.
794
- LLVM_ABI [[nodiscard]] AttributeList addRangeRetAttr (LLVMContext &C,
794
+ [[nodiscard]] LLVM_ABI AttributeList addRangeRetAttr (LLVMContext &C,
795
795
const ConstantRange &CR) const ;
796
796
797
797
// / Add the allocsize attribute to the attribute set at the given arg index.
798
798
// / Returns a new list because attribute lists are immutable.
799
- LLVM_ABI [[nodiscard]] AttributeList
799
+ [[nodiscard]] LLVM_ABI AttributeList
800
800
addAllocSizeParamAttr (LLVMContext &C, unsigned ArgNo, unsigned ElemSizeArg,
801
801
const std::optional<unsigned > &NumElemsArg) const ;
802
802
803
803
// / Try to intersect this AttributeList with Other. Returns std::nullopt if
804
804
// / the two lists are inherently incompatible (imply different behavior, not
805
805
// / just analysis).
806
- LLVM_ABI [[nodiscard]] std::optional<AttributeList>
806
+ [[nodiscard]] LLVM_ABI std::optional<AttributeList>
807
807
intersectWith (LLVMContext &C, AttributeList Other) const ;
808
808
809
809
// ===--------------------------------------------------------------------===//
0 commit comments