Lines Matching full:readonly
12 // non-local memory, and marking them readnone/readonly. It does the
13 // same with function arguments independently, marking them readonly/
39 STATISTIC(NumReadOnly, "Number of functions marked readonly");
42 STATISTIC(NumReadOnlyArg, "Number of arguments marked readonly");
56 // AddReadAttrs - Deduce readonly/readnone attributes for the SCC.
147 /// AddReadAttrs - Deduce readonly/readnone attributes for the SCC.
157 // write memory then they can't be marked readnone or readonly.
277 B.addAttribute(Attribute::ReadOnly)
285 ReadsMemory ? Attribute::ReadOnly : Attribute::ReadNone);
406 // Returns Attribute::None, Attribute::ReadOnly or Attribute::ReadNone.
495 return IsRead ? Attribute::ReadOnly : Attribute::ReadNone;
531 // Functions that are readonly (or readnone) and nounwind and don't return
575 // Can we determine that it's readonly/readnone without doing an SCC?
587 R == Attribute::ReadOnly ? ++NumReadOnlyArg : ++NumReadNoneArg;
657 // We also want to compute readonly/readnone. With a small number of false
659 // to be provably readonly or readnone, since by definition we can't
663 // that promises readonly/readnone behaviour on the pointer, then the
665 // Also, a readonly/readnone pointer may be returned, but returning a
674 if (K == Attribute::ReadOnly) {
675 ReadAttr = Attribute::ReadOnly;
688 ReadAttr == Attribute::ReadOnly ? ++NumReadOnlyArg : ++NumReadNoneArg;