mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 02:33:53 +00:00
some more tweaks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99643 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
525bf8ee8e
commit
ce94319533
@ -1977,9 +1977,9 @@ for (Value::use_iterator i = F->use_begin(), e = F->use_end(); i != e; ++i
|
|||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
Note that dereferencing a <tt>Value::use_iterator</tt> is not a very cheap
|
<p>Note that dereferencing a <tt>Value::use_iterator</tt> is not a very cheap
|
||||||
operation. Instead of performing <tt>*i</tt> above several times, consider
|
operation. Instead of performing <tt>*i</tt> above several times, consider
|
||||||
doing it only once in the loop body and reusing its result.
|
doing it only once in the loop body and reusing its result.</p>
|
||||||
|
|
||||||
<p>Alternatively, it's common to have an instance of the <a
|
<p>Alternatively, it's common to have an instance of the <a
|
||||||
href="/doxygen/classllvm_1_1User.html">User Class</a> and need to know what
|
href="/doxygen/classllvm_1_1User.html">User Class</a> and need to know what
|
||||||
@ -2001,12 +2001,13 @@ for (User::op_iterator i = pi->op_begin(), e = pi->op_end(); i != e; ++i)
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>Declaring objects as <tt>const</tt> is an important tool of enforcing
|
<p>Declaring objects as <tt>const</tt> is an important tool of enforcing
|
||||||
mutation free algorithms (such as analyses etc.). For this purpose above
|
mutation free algorithms (such as analyses, etc.). For this purpose above
|
||||||
iterators come in constant flavors as <tt>Value::const_use_iterator</tt>
|
iterators come in constant flavors as <tt>Value::const_use_iterator</tt>
|
||||||
and <tt>Value::const_op_iterator</tt>. They automatically arise when
|
and <tt>Value::const_op_iterator</tt>. They automatically arise when
|
||||||
calling <tt>use/op_begin()</tt> on <tt>const Value*</tt>s or
|
calling <tt>use/op_begin()</tt> on <tt>const Value*</tt>s or
|
||||||
<tt>const User*</tt>s respectively. Upon dereferencing, they return
|
<tt>const User*</tt>s respectively. Upon dereferencing, they return
|
||||||
<tt>const Use*</tt>s. Otherwise the above patterns remain unchanged.
|
<tt>const Use*</tt>s. Otherwise the above patterns remain unchanged.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--_______________________________________________________________________-->
|
<!--_______________________________________________________________________-->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user