Lines Matching refs:Attrs

919 bool LLParser::ParseOptionalAttrs(Attributes &Attrs, unsigned AttrKind) {
920 Attrs = Attribute::None;
926 if (AttrKind != 2 && (Attrs & Attribute::FunctionOnly))
932 (Attrs & ~(Attribute::FunctionOnly | Attribute::Alignment)))
935 if (AttrKind != 0 && (Attrs & Attribute::ParameterOnly))
939 case lltok::kw_zeroext: Attrs |= Attribute::ZExt; break;
940 case lltok::kw_signext: Attrs |= Attribute::SExt; break;
941 case lltok::kw_inreg: Attrs |= Attribute::InReg; break;
942 case lltok::kw_sret: Attrs |= Attribute::StructRet; break;
943 case lltok::kw_noalias: Attrs |= Attribute::NoAlias; break;
944 case lltok::kw_nocapture: Attrs |= Attribute::NoCapture; break;
945 case lltok::kw_byval: Attrs |= Attribute::ByVal; break;
946 case lltok::kw_nest: Attrs |= Attribute::Nest; break;
948 case lltok::kw_noreturn: Attrs |= Attribute::NoReturn; break;
949 case lltok::kw_nounwind: Attrs |= Attribute::NoUnwind; break;
950 case lltok::kw_uwtable: Attrs |= Attribute::UWTable; break;
951 case lltok::kw_returns_twice: Attrs |= Attribute::ReturnsTwice; break;
952 case lltok::kw_noinline: Attrs |= Attribute::NoInline; break;
953 case lltok::kw_readnone: Attrs |= Attribute::ReadNone; break;
954 case lltok::kw_readonly: Attrs |= Attribute::ReadOnly; break;
955 case lltok::kw_inlinehint: Attrs |= Attribute::InlineHint; break;
956 case lltok::kw_alwaysinline: Attrs |= Attribute::AlwaysInline; break;
957 case lltok::kw_optsize: Attrs |= Attribute::OptimizeForSize; break;
958 case lltok::kw_ssp: Attrs |= Attribute::StackProtect; break;
959 case lltok::kw_sspreq: Attrs |= Attribute::StackProtectReq; break;
960 case lltok::kw_noredzone: Attrs |= Attribute::NoRedZone; break;
961 case lltok::kw_noimplicitfloat: Attrs |= Attribute::NoImplicitFloat; break;
962 case lltok::kw_naked: Attrs |= Attribute::Naked; break;
963 case lltok::kw_nonlazybind: Attrs |= Attribute::NonLazyBind; break;
964 case lltok::kw_address_safety: Attrs |= Attribute::AddressSafety; break;
970 Attrs |= Attribute::constructStackAlignmentFromInt(Alignment);
978 Attrs |= Attribute::constructAlignmentFromInt(Alignment);
1439 Attributes Attrs;
1443 ParseOptionalAttrs(Attrs, 0)) return true;
1456 ArgList.push_back(ArgInfo(TypeLoc, ArgTy, Attrs, Name));
1467 if (ParseType(ArgTy) || ParseOptionalAttrs(Attrs, 0)) return true;
1482 ArgList.push_back(ArgInfo(TypeLoc, ArgTy, Attrs, Name));
1506 if (ArgList[i].Attrs)
2727 SmallVector<AttributeWithIndex, 8> Attrs;
2730 Attrs.push_back(AttributeWithIndex::get(0, RetAttrs));
2734 if (ArgList[i].Attrs != Attribute::None)
2735 Attrs.push_back(AttributeWithIndex::get(i+1, ArgList[i].Attrs));
2739 Attrs.push_back(AttributeWithIndex::get(~0, FuncAttrs));
2741 AttrListPtr PAL = AttrListPtr::get(Attrs);
3255 SmallVector<AttributeWithIndex, 8> Attrs;
3257 Attrs.push_back(AttributeWithIndex::get(0, RetAttrs));
3277 if (ArgList[i].Attrs != Attribute::None)
3278 Attrs.push_back(AttributeWithIndex::get(i+1, ArgList[i].Attrs));
3285 Attrs.push_back(AttributeWithIndex::get(~0, FnAttrs));
3288 AttrListPtr PAL = AttrListPtr::get(Attrs);
3651 SmallVector<AttributeWithIndex, 8> Attrs;
3653 Attrs.push_back(AttributeWithIndex::get(0, RetAttrs));
3673 if (ArgList[i].Attrs != Attribute::None)
3674 Attrs.push_back(AttributeWithIndex::get(i+1, ArgList[i].Attrs));
3681 Attrs.push_back(AttributeWithIndex::get(~0, FnAttrs));
3684 AttrListPtr PAL = AttrListPtr::get(Attrs);