|
128 | 128 | <li class="nav-group-task"> |
129 | 129 | <a href="../Enums/TargetMachineError.html">TargetMachineError</a> |
130 | 130 | </li> |
| 131 | + <li class="nav-group-task"> |
| 132 | + <a href="../Enums/ThreadLocalModel.html">ThreadLocalModel</a> |
| 133 | + </li> |
131 | 134 | <li class="nav-group-task"> |
132 | 135 | <a href="../Enums.html#/s:O4LLVM8Unsigned">Unsigned</a> |
133 | 136 | </li> |
|
223 | 226 | <li class="nav-group-task"> |
224 | 227 | <a href="../Structs/BasicBlock.html">BasicBlock</a> |
225 | 228 | </li> |
| 229 | + <li class="nav-group-task"> |
| 230 | + <a href="../Structs/BasicBlock/Address.html">– Address</a> |
| 231 | + </li> |
226 | 232 | <li class="nav-group-task"> |
227 | 233 | <a href="../Structs/Constant.html">Constant</a> |
228 | 234 | </li> |
@@ -443,6 +449,72 @@ <h4>Declaration</h4> |
443 | 449 | </section> |
444 | 450 | </div> |
445 | 451 | </li> |
| 452 | + <li class="item"> |
| 453 | + <div> |
| 454 | + <code> |
| 455 | + <a name="/s:FC4LLVM8Function7addressFT2ofVS_10BasicBlock_GSqVS1_7Address_"></a> |
| 456 | + <a name="//apple_ref/swift/Method/address(of:)" class="dashAnchor"></a> |
| 457 | + <a class="token" href="#/s:FC4LLVM8Function7addressFT2ofVS_10BasicBlock_GSqVS1_7Address_">address(of:)</a> |
| 458 | + </code> |
| 459 | + </div> |
| 460 | + <div class="height-container"> |
| 461 | + <div class="pointer-container"></div> |
| 462 | + <section class="section"> |
| 463 | + <div class="pointer"></div> |
| 464 | + <div class="abstract"> |
| 465 | + <p>Computes the address of the specified basic block in this function.</p> |
| 466 | + |
| 467 | +<p>Taking the address of the entry block is illegal.</p> |
| 468 | + |
| 469 | +<p>This value only has defined behavior when used as an operand to the |
| 470 | +<code>indirectbr</code> instruction, or for comparisons against null. Pointer |
| 471 | +equality tests between labels addresses results in undefined behavior. |
| 472 | +Though, again, comparison against null is ok, and no label is equal to |
| 473 | +the null pointer. This may be passed around as an opaque pointer sized |
| 474 | +value as long as the bits are not inspected. This allows <code>ptrtoint</code> and |
| 475 | +arithmetic to be performed on these values so long as the original value |
| 476 | +is reconstituted before the indirectbr instruction.</p> |
| 477 | + |
| 478 | +<p>Finally, some targets may provide defined semantics when using the value |
| 479 | +as the operand to an inline assembly, but that is target specific.</p> |
| 480 | + |
| 481 | + </div> |
| 482 | + <div class="declaration"> |
| 483 | + <h4>Declaration</h4> |
| 484 | + <div class="language"> |
| 485 | + <p class="aside-title">Swift</p> |
| 486 | + <pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">address</span><span class="p">(</span><span class="n">of</span> <span class="nv">block</span><span class="p">:</span> <span class="kt"><a href="../Structs/BasicBlock.html">BasicBlock</a></span><span class="p">)</span> <span class="o">-></span> <span class="kt"><a href="../Structs/BasicBlock.html">BasicBlock</a></span><span class="o">.</span><span class="kt">Address</span><span class="p">?</span></code></pre> |
| 487 | + |
| 488 | + </div> |
| 489 | + </div> |
| 490 | + <div> |
| 491 | + <h4>Parameters</h4> |
| 492 | + <table class="graybox"> |
| 493 | + <tbody> |
| 494 | + <tr> |
| 495 | + <td> |
| 496 | + <code> |
| 497 | + <em>block</em> |
| 498 | + </code> |
| 499 | + </td> |
| 500 | + <td> |
| 501 | + <div> |
| 502 | + <p>The basic block to compute the address of.</p> |
| 503 | + |
| 504 | + </div> |
| 505 | + </td> |
| 506 | + </tr> |
| 507 | + </tbody> |
| 508 | + </table> |
| 509 | + </div> |
| 510 | + <div> |
| 511 | + <h4>Return Value</h4> |
| 512 | + <p>An IRValue representing the address of the given basic block in this function, else nil if the address cannot be computed or the basic block does not reside in this function.</p> |
| 513 | + |
| 514 | + </div> |
| 515 | + </section> |
| 516 | + </div> |
| 517 | + </li> |
446 | 518 | <li class="item"> |
447 | 519 | <div> |
448 | 520 | <code> |
@@ -752,7 +824,7 @@ <h4>Declaration</h4> |
752 | 824 | </section> |
753 | 825 | </section> |
754 | 826 | <section id="footer"> |
755 | | - <p>© 2017 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2017-01-27)</p> |
| 827 | + <p>© 2017 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2017-02-13)</p> |
756 | 828 | <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.7.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p> |
757 | 829 | </section> |
758 | 830 | </article> |
|
0 commit comments