@@ -486,7 +486,7 @@ Success values are very cheap to construct and return - they have minimal
486
486
impact on program performance.
487
487
488
488
Failure values are constructed using ``make_error<T> ``, where ``T `` is any class
489
- that inherits from the ErrorInfo utility, E.g.:
489
+ that inherits from the `` ErrorInfo `` utility, E.g.:
490
490
491
491
.. code-block :: c++
492
492
@@ -1351,7 +1351,7 @@ The ``llvm/Support/DebugCounter.h`` (`doxygen
1351
1351
provides a class named ``DebugCounter `` that can be used to create
1352
1352
command-line counter options that control execution of parts of your code.
1353
1353
1354
- Define your DebugCounter like this:
1354
+ Define your `` DebugCounter `` like this:
1355
1355
1356
1356
.. code-block :: c++
1357
1357
@@ -1677,7 +1677,7 @@ page and one extra indirection when accessing elements with their positional
1677
1677
index.
1678
1678
1679
1679
In order to minimise the memory footprint of this container, it's important to
1680
- balance the PageSize so that it's not too small (otherwise the overhead of the
1680
+ balance the `` PageSize `` so that it's not too small (otherwise the overhead of the
1681
1681
pointer per page might become too high) and not too big (otherwise the memory
1682
1682
is wasted if the page is not fully used).
1683
1683
@@ -2203,17 +2203,17 @@ inserting elements into both a set-like container and the sequential container,
2203
2203
using the set-like container for uniquing and the sequential container for
2204
2204
iteration.
2205
2205
2206
- The difference between SetVector and other sets is that the order of iteration
2207
- is guaranteed to match the order of insertion into the SetVector. This property
2206
+ The difference between `` SetVector `` and other sets is that the order of iteration
2207
+ is guaranteed to match the order of insertion into the `` SetVector `` . This property
2208
2208
is really important for things like sets of pointers. Because pointer values
2209
2209
are non-deterministic (e.g. vary across runs of the program on different
2210
2210
machines), iterating over the pointers in the set will not be in a well-defined
2211
2211
order.
2212
2212
2213
- The drawback of SetVector is that it requires twice as much space as a normal
2213
+ The drawback of `` SetVector `` is that it requires twice as much space as a normal
2214
2214
set and has the sum of constant factors from the set-like container and the
2215
2215
sequential container that it uses. Use it **only ** if you need to iterate over
2216
- the elements in a deterministic order. SetVector is also expensive to delete
2216
+ the elements in a deterministic order. `` SetVector `` is also expensive to delete
2217
2217
elements out of (linear time), unless you use its "pop_back" method, which is
2218
2218
faster.
2219
2219
@@ -2369,22 +2369,22 @@ llvm/IR/ValueMap.h
2369
2369
2370
2370
ValueMap is a wrapper around a :ref: `DenseMap <dss_densemap >` mapping
2371
2371
``Value* ``\ s (or subclasses) to another type. When a Value is deleted or
2372
- RAUW'ed, ValueMap will update itself so the new version of the key is mapped to
2372
+ RAUW'ed, `` ValueMap `` will update itself so the new version of the key is mapped to
2373
2373
the same value, just as if the key were a WeakVH. You can configure exactly how
2374
2374
this happens, and what else happens on these two events, by passing a ``Config ``
2375
- parameter to the ValueMap template.
2375
+ parameter to the `` ValueMap `` template.
2376
2376
2377
2377
.. _dss_intervalmap :
2378
2378
2379
2379
llvm/ADT/IntervalMap.h
2380
2380
^^^^^^^^^^^^^^^^^^^^^^
2381
2381
2382
- IntervalMap is a compact map for small keys and values. It maps key intervals
2382
+ `` IntervalMap `` is a compact map for small keys and values. It maps key intervals
2383
2383
instead of single keys, and it will automatically coalesce adjacent intervals.
2384
2384
When the map only contains a few intervals, they are stored in the map object
2385
2385
itself to avoid allocations.
2386
2386
2387
- The IntervalMap iterators are quite big, so they should not be passed around as
2387
+ The `` IntervalMap `` iterators are quite big, so they should not be passed around as
2388
2388
STL iterators. The heavyweight iterators allow a smaller data structure.
2389
2389
2390
2390
.. _dss_intervaltree :
@@ -2396,7 +2396,7 @@ llvm/ADT/IntervalTree.h
2396
2396
allows finding all intervals that overlap with any given point. At this time,
2397
2397
it does not support any deletion or rebalancing operations.
2398
2398
2399
- The IntervalTree is designed to be set up once, and then queried without any
2399
+ The `` IntervalTree `` is designed to be set up once, and then queried without any
2400
2400
further additions.
2401
2401
2402
2402
.. _dss_map :
@@ -2435,10 +2435,10 @@ necessary to remove elements, it's best to remove them in bulk using
2435
2435
llvm/ADT/IntEqClasses.h
2436
2436
^^^^^^^^^^^^^^^^^^^^^^^
2437
2437
2438
- IntEqClasses provides a compact representation of equivalence classes of small
2438
+ `` IntEqClasses `` provides a compact representation of equivalence classes of small
2439
2439
integers. Initially, each integer in the range 0..n-1 has its own equivalence
2440
2440
class. Classes can be joined by passing two class representatives to the
2441
- join(a, b) method. Two integers are in the same class when findLeader() returns
2441
+ `` join(a, b) `` method. Two integers are in the same class when `` findLeader() `` returns
2442
2442
the same representative.
2443
2443
2444
2444
Once all equivalence classes are formed, the map can be compressed so each
@@ -2451,11 +2451,11 @@ it can be edited again.
2451
2451
llvm/ADT/ImmutableMap.h
2452
2452
^^^^^^^^^^^^^^^^^^^^^^^
2453
2453
2454
- ImmutableMap is an immutable (functional) map implementation based on an AVL
2454
+ `` ImmutableMap `` is an immutable (functional) map implementation based on an AVL
2455
2455
tree. Adding or removing elements is done through a Factory object and results
2456
- in the creation of a new ImmutableMap object. If an ImmutableMap already exists
2456
+ in the creation of a new `` ImmutableMap `` object. If an `` ImmutableMap `` already exists
2457
2457
with the given key set, then the existing one is returned; equality is compared
2458
- with a FoldingSetNodeID. The time and space complexity of add or remove
2458
+ with a `` FoldingSetNodeID `` . The time and space complexity of add or remove
2459
2459
operations is logarithmic in the size of the original map.
2460
2460
2461
2461
.. _dss_othermap :
@@ -2490,11 +2490,11 @@ somehow. In any case, please don't use it.
2490
2490
BitVector
2491
2491
^^^^^^^^^
2492
2492
2493
- The BitVector container provides a dynamic size set of bits for manipulation.
2493
+ The `` BitVector `` container provides a dynamic size set of bits for manipulation.
2494
2494
It supports individual bit setting/testing, as well as set operations. The set
2495
2495
operations take time O(size of bitvector), but operations are performed one word
2496
- at a time, instead of one bit at a time. This makes the BitVector very fast for
2497
- set operations compared to other containers. Use the BitVector when you expect
2496
+ at a time, instead of one bit at a time. This makes the `` BitVector `` very fast for
2497
+ set operations compared to other containers. Use the `` BitVector `` when you expect
2498
2498
the number of set bits to be high (i.e. a dense set).
2499
2499
2500
2500
.. _dss_smallbitvector :
@@ -2516,29 +2516,29 @@ its operator[] does not provide an assignable lvalue.
2516
2516
SparseBitVector
2517
2517
^^^^^^^^^^^^^^^
2518
2518
2519
- The SparseBitVector container is much like BitVector, with one major difference:
2520
- Only the bits that are set, are stored. This makes the SparseBitVector much
2521
- more space efficient than BitVector when the set is sparse, as well as making
2519
+ The `` SparseBitVector `` container is much like `` BitVector `` , with one major difference:
2520
+ Only the bits that are set, are stored. This makes the `` SparseBitVector `` much
2521
+ more space efficient than `` BitVector `` when the set is sparse, as well as making
2522
2522
set operations O(number of set bits) instead of O(size of universe). The
2523
- downside to the SparseBitVector is that setting and testing of random bits is
2524
- O(N), and on large SparseBitVectors, this can be slower than BitVector. In our
2523
+ downside to the `` SparseBitVector `` is that setting and testing of random bits is
2524
+ O(N), and on large `` SparseBitVectors `` , this can be slower than `` BitVector `` . In our
2525
2525
implementation, setting or testing bits in sorted order (either forwards or
2526
2526
reverse) is O(1) worst case. Testing and setting bits within 128 bits (depends
2527
2527
on size) of the current bit is also O(1). As a general statement,
2528
- testing/setting bits in a SparseBitVector is O(distance away from last set bit).
2528
+ testing/setting bits in a `` SparseBitVector `` is O(distance away from last set bit).
2529
2529
2530
2530
.. _dss_coalescingbitvector :
2531
2531
2532
2532
CoalescingBitVector
2533
2533
^^^^^^^^^^^^^^^^^^^
2534
2534
2535
- The CoalescingBitVector container is similar in principle to a SparseBitVector,
2535
+ The `` CoalescingBitVector `` container is similar in principle to a `` SparseBitVector `` ,
2536
2536
but is optimized to represent large contiguous ranges of set bits compactly. It
2537
2537
does this by coalescing contiguous ranges of set bits into intervals. Searching
2538
- for a bit in a CoalescingBitVector is O(log(gaps between contiguous ranges)).
2538
+ for a bit in a `` CoalescingBitVector `` is O(log(gaps between contiguous ranges)).
2539
2539
2540
- CoalescingBitVector is a better choice than BitVector when gaps between ranges
2541
- of set bits are large. It's a better choice than SparseBitVector when find()
2540
+ `` CoalescingBitVector `` is a better choice than `` BitVector `` when gaps between ranges
2541
+ of set bits are large. It's a better choice than `` SparseBitVector `` when find()
2542
2542
operations must have fast, predictable performance. However, it's not a good
2543
2543
choice for representing sets which have lots of very short ranges. E.g. the set
2544
2544
`{2*x : x \in [0, n)} ` would be a pathological input.
@@ -2773,7 +2773,7 @@ Turning an iterator into a class pointer (and vice-versa)
2773
2773
2774
2774
Sometimes, it'll be useful to grab a reference (or pointer) to a class instance
2775
2775
when all you've got at hand is an iterator. Well, extracting a reference or a
2776
- pointer from an iterator is very straight-forward . Assuming that ``i `` is a
2776
+ pointer from an iterator is very straightforward . Assuming that ``i `` is a
2777
2777
``BasicBlock::iterator `` and ``j `` is a ``BasicBlock::const_iterator ``:
2778
2778
2779
2779
.. code-block :: c++
@@ -2805,7 +2805,7 @@ Say that you're writing a FunctionPass and would like to count all the locations
2805
2805
in the entire module (that is, across every ``Function ``) where a certain
2806
2806
function (i.e., some ``Function * ``) is already in scope. As you'll learn
2807
2807
later, you may want to use an ``InstVisitor `` to accomplish this in a much more
2808
- straight-forward manner, but this example will allow us to explore how you'd do
2808
+ straightforward manner, but this example will allow us to explore how you'd do
2809
2809
it if you didn't have ``InstVisitor `` around. In pseudo-code, this is what we
2810
2810
want to do:
2811
2811
@@ -2932,7 +2932,7 @@ Creating and inserting new ``Instruction``\ s
2932
2932
2933
2933
*Instantiating Instructions *
2934
2934
2935
- Creation of ``Instruction ``\ s is straight-forward : simply call the constructor
2935
+ Creation of ``Instruction ``\ s is straightforward : simply call the constructor
2936
2936
for the kind of instruction to instantiate and provide the necessary parameters.
2937
2937
For example, an ``AllocaInst `` only *requires * a (const-ptr-to) ``Type ``. Thus:
2938
2938
@@ -3050,7 +3050,7 @@ Deleting Instructions
3050
3050
^^^^^^^^^^^^^^^^^^^^^
3051
3051
3052
3052
Deleting an instruction from an existing sequence of instructions that form a
3053
- BasicBlock _ is very straight-forward : just call the instruction's
3053
+ `` BasicBlock `` is very straightforward : just call the instruction's
3054
3054
``eraseFromParent() `` method. For example:
3055
3055
3056
3056
.. code-block :: c++
@@ -3850,16 +3850,16 @@ Important Subclasses of Constant
3850
3850
any width.
3851
3851
3852
3852
* ``const APInt& getValue() const ``: Returns the underlying
3853
- value of this constant, an APInt value.
3853
+ value of this constant, an `` APInt `` value.
3854
3854
3855
3855
* ``int64_t getSExtValue() const ``: Converts the underlying APInt value to an
3856
- int64_t via sign extension. If the value (not the bit width) of the APInt
3857
- is too large to fit in an int64_t, an assertion will result. For this
3856
+ `` int64_t `` via sign extension. If the value (not the bit width) of the APInt
3857
+ is too large to fit in an `` int64_t `` , an assertion will result. For this
3858
3858
reason, use of this method is discouraged.
3859
3859
3860
- * ``uint64_t getZExtValue() const ``: Converts the underlying APInt value
3861
- to a uint64_t via zero extension. IF the value (not the bit width) of the
3862
- APInt is too large to fit in a uint64_t, an assertion will result. For this
3860
+ * ``uint64_t getZExtValue() const ``: Converts the underlying `` APInt `` value
3861
+ to a `` uint64_t `` via zero extension. If the value (not the bit width) of the
3862
+ APInt is too large to fit in a `` uint64_t `` , an assertion will result. For this
3863
3863
reason, use of this method is discouraged.
3864
3864
3865
3865
* ``static ConstantInt* get(const APInt& Val) ``: Returns the ConstantInt
@@ -4148,7 +4148,7 @@ Important Public Members of the ``BasicBlock`` class
4148
4148
new block, and a :ref: `Function <c_Function >` to insert it into. If the
4149
4149
``Parent `` parameter is specified, the new ``BasicBlock `` is automatically
4150
4150
inserted at the end of the specified :ref: `Function <c_Function >`, if not
4151
- specified, the BasicBlock must be manually inserted into the :ref: `Function
4151
+ specified, the `` BasicBlock `` must be manually inserted into the :ref: `Function
4152
4152
<c_Function>`.
4153
4153
4154
4154
* | ``BasicBlock::iterator `` - Typedef for instruction list iterator
0 commit comments