Home | History | Annotate | Download | only in AsmParser

Lines Matching refs:Attrs

882 bool LLParser::ParseOptionalAttrs(unsigned &Attrs, unsigned AttrKind) {
883 Attrs = Attribute::None;
889 if (AttrKind != 2 && (Attrs & Attribute::FunctionOnly))
895 (Attrs & ~(Attribute::FunctionOnly | Attribute::Alignment)))
898 if (AttrKind != 0 && (Attrs & Attribute::ParameterOnly))
902 case lltok::kw_zeroext: Attrs |= Attribute::ZExt; break;
903 case lltok::kw_signext: Attrs |= Attribute::SExt; break;
904 case lltok::kw_inreg: Attrs |= Attribute::InReg; break;
905 case lltok::kw_sret: Attrs |= Attribute::StructRet; break;
906 case lltok::kw_noalias: Attrs |= Attribute::NoAlias; break;
907 case lltok::kw_nocapture: Attrs |= Attribute::NoCapture; break;
908 case lltok::kw_byval: Attrs |= Attribute::ByVal; break;
909 case lltok::kw_nest: Attrs |= Attribute::Nest; break;
911 case lltok::kw_noreturn: Attrs |= Attribute::NoReturn; break;
912 case lltok::kw_nounwind: Attrs |= Attribute::NoUnwind; break;
913 case lltok::kw_uwtable: Attrs |= Attribute::UWTable; break;
914 case lltok::kw_returns_twice: Attrs |= Attribute::ReturnsTwice; break;
915 case lltok::kw_noinline: Attrs |= Attribute::NoInline; break;
916 case lltok::kw_readnone: Attrs |= Attribute::ReadNone; break;
917 case lltok::kw_readonly: Attrs |= Attribute::ReadOnly; break;
918 case lltok::kw_inlinehint: Attrs |= Attribute::InlineHint; break;
919 case lltok::kw_alwaysinline: Attrs |= Attribute::AlwaysInline; break;
920 case lltok::kw_optsize: Attrs |= Attribute::OptimizeForSize; break;
921 case lltok::kw_ssp: Attrs |= Attribute::StackProtect; break;
922 case lltok::kw_sspreq: Attrs |= Attribute::StackProtectReq; break;
923 case lltok::kw_noredzone: Attrs |= Attribute::NoRedZone; break;
924 case lltok::kw_noimplicitfloat: Attrs |= Attribute::NoImplicitFloat; break;
925 case lltok::kw_naked: Attrs |= Attribute::Naked; break;
926 case lltok::kw_nonlazybind: Attrs |= Attribute::NonLazyBind; break;
932 Attrs |= Attribute::constructStackAlignmentFromInt(Alignment);
940 Attrs |= Attribute::constructAlignmentFromInt(Alignment);
1402 unsigned Attrs;
1406 ParseOptionalAttrs(Attrs, 0)) return true;
1419 ArgList.push_back(ArgInfo(TypeLoc, ArgTy, Attrs, Name));
1430 if (ParseType(ArgTy) || ParseOptionalAttrs(Attrs, 0)) return true;
1445 ArgList.push_back(ArgInfo(TypeLoc, ArgTy, Attrs, Name));
1469 if (ArgList[i].Attrs != 0)
2679 SmallVector<AttributeWithIndex, 8> Attrs;
2682 Attrs.push_back(AttributeWithIndex::get(0, RetAttrs));
2686 if (ArgList[i].Attrs != Attribute::None)
2687 Attrs.push_back(AttributeWithIndex::get(i+1, ArgList[i].Attrs));
2691 Attrs.push_back(AttributeWithIndex::get(~0, FuncAttrs));
2693 AttrListPtr PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());
3216 SmallVector<AttributeWithIndex, 8> Attrs;
3218 Attrs.push_back(AttributeWithIndex::get(0, RetAttrs));
3238 if (ArgList[i].Attrs != Attribute::None)
3239 Attrs.push_back(AttributeWithIndex::get(i+1, ArgList[i].Attrs));
3246 Attrs.push_back(AttributeWithIndex::get(~0, FnAttrs));
3249 AttrListPtr PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());
3612 SmallVector<AttributeWithIndex, 8> Attrs;
3614 Attrs.push_back(AttributeWithIndex::get(0, RetAttrs));
3634 if (ArgList[i].Attrs != Attribute::None)
3635 Attrs.push_back(AttributeWithIndex::get(i+1, ArgList[i].Attrs));
3642 Attrs.push_back(AttributeWithIndex::get(~0, FnAttrs));
3645 AttrListPtr PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());