Lines Matching defs:example
118 checking of various sorts (example below).
125 something is of the right type. An example of the ``isa<>`` and ``cast<>``
217 example, the ``StringMap`` find function is declared as:
247 class is an efficient way for APIs to accept concatenated strings. For example,
249 instruction with a suffix, for example:
309 formatting of the value. For example, to format a floating point value as a percentage,
443 Recoverable errors represent an error in the program's environment, for example
574 semantics. For example:
593 ``Optional<T>``. For example:
692 will always succeed (for example, a call to a function that can only fail on a
922 In some contexts, certain types of error are known to be benign. For example,
950 In the archive walking example above ``BadFileFormat`` errors are simply
1109 For example:
1222 This allows, for example, all debug information for instruction scheduling to be
1232 takes an additional first parameter, which is the type to use. For example, the
1233 preceding example could be written as:
1333 happen or not. For example, there are times the minimization tooling
1420 Several of the important data structures in LLVM are graphs: for example CFGs
1427 exactly that. If you call the ``Function::viewCFG()`` method, for example, the
1433 methods. Within GDB, for example, you can usually use something like ``call
1506 elements (but could contain many), for example, it's much better to use
1591 inlined elements reasonable for allocation on the stack (for example, trying
1789 For example:
1956 This example forms a string like "blarg.42" by concatenating the values
1961 inherently dangerous API. For example, this simple variant contains undefined
2145 complex object (for example, a node in the code generator). The client has a
2158 the set (for example, you can have SDNode instances mixed with LoadSDNodes).
2562 at the same time. For example:
2576 The ``zip``\ * functions support temporary ranges, for example:
2606 keeping track of the index of the current loop iteration. For example:
2666 traversed. Following the example of the C++ standard template library, the
2688 constitute the ``Function``. The following is an example that prints the name
2733 ``InstIterator``\ s explicitly in your code. Here's a small example that shows
2745 its initial contents. For example, if you wanted to initialize a work list to
2792 Finding call sites: a slightly more complex example
2799 straight-forward manner, but this example will allow us to explore how you'd do
2850 ``Value`` is called a *def-use* chain. For example, let's say we have a
2917 describes some of the common methods for doing so and gives example code.
2928 For example, an ``AllocaInst`` only *requires* a (const-ptr-to) ``Type``. Thus:
2949 example, say that I'm writing a transformation that dynamically allocates space
2983 pointer to a ``BasicBlock`` to be appended to. For example code that looked
3011 The example below demonstrates a very simple use of the ``IRBuilder`` where
3024 The example below is similar to the above example except that the created
3045 ``eraseFromParent()`` method. For example:
3077 removes the original instruction. The following example illustrates the
3093 new instruction. The following example illustrates the replacement of one
3122 For example:
3347 polymorphism"). For example, a template over some type parameter ``T`` can be
3349 interface or *concept*. A good example here is the highly generic properties of
3621 program. For example, an incoming argument to a function (represented with an
3649 argument, for example) is represented as a direct pointer to the instance of the
3685 current value to refer to "``V``" instead. For example, if you detect that an
3686 instruction always produces a constant value (for example through constant
3768 (for example ``Instruction::Add`` and ``Instruction::ICmp``), as well as the
3770 example BinaryOperator_ and CmpInst_). Unfortunately, the use of macros in this
3913 instruction because this pointer must be dereferenced first. For example, if