Home | History | Annotate | Download | only in IR

Lines Matching full:attributeset

12 // AttributeSetImpl, and AttributeSet classes.
606 AttributeSet(const_cast<AttributeSetImpl *>(this)).dump();
610 // AttributeSet Construction and Mutation Methods
613 AttributeSet
614 AttributeSet::getImpl(LLVMContext &C,
634 return AttributeSet(PA);
637 AttributeSet AttributeSet::get(LLVMContext &C,
641 return AttributeSet();
671 AttributeSet AttributeSet::get(LLVMContext &C,
676 return AttributeSet();
681 AttributeSet AttributeSet::get(LLVMContext &C, unsigned Index,
684 return AttributeSet();
723 AttributeSet AttributeSet::get(LLVMContext &C, unsigned Index,
731 AttributeSet AttributeSet::get(LLVMContext &C, ArrayRef<AttributeSet> Attrs) {
732 if (Attrs.empty()) return AttributeSet();
761 AttributeSet AttributeSet::addAttribute(LLVMContext &C, unsigned Index,
764 return addAttributes(C, Index, AttributeSet::get(C, Index, Attr));
767 AttributeSet AttributeSet::addAttribute(LLVMContext &C, unsigned Index,
771 return addAttributes(C, Index, AttributeSet::get(C, Index, B));
774 AttributeSet AttributeSet::addAttribute(LLVMContext &C, unsigned Index,
778 return addAttributes(C, Index, AttributeSet::get(C, Index, B));
781 AttributeSet AttributeSet::addAttribute(LLVMContext &C,
786 SmallVector<AttributeSet, 4> AttrSet;
792 AttrSet.emplace_back(AttributeSet::get(C, std::make_pair(*IdxI++, A)));
796 AttrSet.emplace_back(AttributeSet::get(C, *IdxI, B));
806 AttrSet.emplace_back(AttributeSet::get(C, std::make_pair(*IdxI++, A)));
811 AttributeSet AttributeSet::addAttributes(LLVMContext &C, unsigned Index,
812 AttributeSet Attrs) const {
826 SmallVector<AttributeSet, 4> AttrSet;
828 AttributeSet AS;
840 // AttributeSet there.
851 AttrSet.push_back(AttributeSet::get(C, Index, B));
860 AttributeSet AttributeSet::removeAttribute(LLVMContext &C, unsigned Index,
863 return removeAttributes(C, Index, AttributeSet::get(C, Index, Attr));
866 AttributeSet AttributeSet::removeAttributes(LLVMContext &C, unsigned Index,
867 AttributeSet Attrs) const {
868 if (!pImpl) return AttributeSet();
877 SmallVector<AttributeSet, 4> AttrSet;
879 AttributeSet AS;
891 // AttributeSet there.
900 AttrSet.push_back(AttributeSet::get(C, Index, B));
909 AttributeSet AttributeSet::removeAttributes(LLVMContext &C, unsigned Index,
911 if (!pImpl) return AttributeSet();
918 SmallVector<AttributeSet, 4> AttrSet;
920 AttributeSet AS;
932 // AttributeSet there.
936 AttrSet.push_back(AttributeSet::get(C, Index, B));
945 AttributeSet AttributeSet::addDereferenceableAttr(LLVMContext &C, unsigned Index,
949 return addAttributes(C, Index, AttributeSet::get(C, Index, B));
952 AttributeSet AttributeSet::addDereferenceableOrNullAttr(LLVMContext &C,
957 return addAttributes(C, Index, AttributeSet::get(C, Index, B));
961 // AttributeSet Accessor Methods
964 LLVMContext &AttributeSet::getContext() const {
968 AttributeSet AttributeSet::getParamAttributes(unsigned Index) const {
970 AttributeSet::get(pImpl->getContext(),
973 AttributeSet();
976 AttributeSet AttributeSet::getRetAttributes() const {
978 AttributeSet::get(pImpl->getContext(),
982 AttributeSet();
985 AttributeSet AttributeSet::getFnAttributes() const {
987 AttributeSet::get(pImpl->getContext(),
991 AttributeSet();
994 bool AttributeSet::hasAttribute(unsigned Index, Attribute::AttrKind Kind) const{
999 bool AttributeSet::hasAttribute(unsigned Index, StringRef Kind) const {
1004 bool AttributeSet::hasAttributes(unsigned Index) const {
1011 bool AttributeSet::hasAttrSomewhere(Attribute::AttrKind Attr) const {
1023 Attribute AttributeSet::getAttribute(unsigned Index,
1029 Attribute AttributeSet::getAttribute(unsigned Index,
1035 unsigned AttributeSet::getParamAlignment(unsigned Index) const {
1040 unsigned AttributeSet::getStackAlignment(unsigned Index) const {
1045 uint64_t AttributeSet::getDereferenceableBytes(unsigned Index) const {
1050 uint64_t AttributeSet::getDereferenceableOrNullBytes(unsigned Index) const {
1055 std::string AttributeSet::getAsString(unsigned Index,
1062 AttributeSetNode *AttributeSet::getAttributes(unsigned Index) const {
1073 AttributeSet::iterator AttributeSet::begin(unsigned Slot) const {
1079 AttributeSet::iterator AttributeSet::end(unsigned Slot) const {
1086 // AttributeSet Introspection Methods
1092 unsigned AttributeSet::getNumSlots() const {
1096 unsigned AttributeSet::getSlotIndex(unsigned Slot) const {
1102 AttributeSet AttributeSet::getSlotAttributes(unsigned Slot) const {
1108 uint64_t AttributeSet::Raw(unsigned Index) const {
1113 void AttributeSet::dump() const {
1133 AttrBuilder::AttrBuilder(AttributeSet AS, unsigned Index)
1206 AttrBuilder &AttrBuilder::removeAttributes(AttributeSet A, uint64_t Index) {
1214 assert(Slot != ~0U && "Couldn't find index in AttributeSet!");
1216 for (AttributeSet::iterator I = A.begin(Slot), E = A.end(Slot); I != E; ++I) {
1341 bool AttrBuilder::hasAttributes(AttributeSet A, uint64_t Index) const {
1351 for (AttributeSet::iterator I = A.begin(Slot), E = A.end(Slot); I != E; ++I) {