Home | History | Annotate | Download | only in IPO

Lines Matching refs:ReadOnly

12 // non-local memory, and marking them readnone/readonly.  It does the
13 // same with function arguments independently, marking them readonly/
47 STATISTIC(NumReadOnly, "Number of functions marked readonly");
50 STATISTIC(NumReadOnlyArg, "Number of arguments marked readonly");
106 /// The three kinds of memory access relevant to 'readonly' and
219 /// Deduce readonly/readnone attributes for the SCC.
223 // write memory then they can't be marked readnone or readonly.
257 B.addAttribute(Attribute::ReadOnly).addAttribute(Attribute::ReadNone);
264 ReadsMemory ? Attribute::ReadOnly : Attribute::ReadNone);
403 /// Returns Attribute::None, Attribute::ReadOnly or Attribute::ReadNone.
524 return IsRead ? Attribute::ReadOnly : Attribute::ReadNone;
544 // Functions that are readonly (or readnone) and nounwind and don't return
592 // Can we determine that it's readonly/readnone without doing an SCC?
604 R == Attribute::ReadOnly ? ++NumReadOnlyArg : ++NumReadNoneArg;
676 // We also want to compute readonly/readnone. With a small number of false
678 // to be provably readonly or readnone, since by definition we can't
682 // that promises readonly/readnone behaviour on the pointer, then the
684 // Also, a readonly/readnone pointer may be returned, but returning a
693 if (K == Attribute::ReadOnly) {
694 ReadAttr = Attribute::ReadOnly;
704 R.addAttribute(Attribute::ReadOnly).addAttribute(Attribute::ReadNone);
707 // Clear out existing readonly/readnone attributes
710 ReadAttr == Attribute::ReadOnly ? ++NumReadOnlyArg : ++NumReadNoneArg;
1876 .Case("readonly", Attribute::ReadOnly)