mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
HTML-escape '>' as '>' in sample C++ code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70569 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5ee24e54d7
commit
1af789f74c
@ -2097,20 +2097,20 @@ GV->eraseFromParent();
|
|||||||
<div class="doc_text">
|
<div class="doc_text">
|
||||||
|
|
||||||
<p>In generating IR, you may need some complex types. If you know these types
|
<p>In generating IR, you may need some complex types. If you know these types
|
||||||
statically, you can use <tt>TypeBuilder<...>::get()</tt>, defined
|
statically, you can use <tt>TypeBuilder<...>::get()</tt>, defined
|
||||||
in <tt>llvm/Support/TypeBuilder.h</tt>, to retrieve them. <tt>TypeBuilder</tt>
|
in <tt>llvm/Support/TypeBuilder.h</tt>, to retrieve them. <tt>TypeBuilder</tt>
|
||||||
has two forms depending on whether you're building types for cross-compilation
|
has two forms depending on whether you're building types for cross-compilation
|
||||||
or native library use. <tt>TypeBuilder<T, true></tt> requires
|
or native library use. <tt>TypeBuilder<T, true></tt> requires
|
||||||
that <tt>T</tt> be independent of the host environment, meaning that it's built
|
that <tt>T</tt> be independent of the host environment, meaning that it's built
|
||||||
out of types from
|
out of types from
|
||||||
the <a href="/doxygen/namespacellvm_1_1types.html"><tt>llvm::types</tt></a>
|
the <a href="/doxygen/namespacellvm_1_1types.html"><tt>llvm::types</tt></a>
|
||||||
namespace and pointers, functions, arrays, etc. built of
|
namespace and pointers, functions, arrays, etc. built of
|
||||||
those. <tt>TypeBuilder<T, false></tt> additionally allows native C types
|
those. <tt>TypeBuilder<T, false></tt> additionally allows native C types
|
||||||
whose size may depend on the host compiler. For example,</p>
|
whose size may depend on the host compiler. For example,</p>
|
||||||
|
|
||||||
<div class="doc_code">
|
<div class="doc_code">
|
||||||
<pre>
|
<pre>
|
||||||
FunctionType *ft = TypeBuilder<types::i<8>(types::i<32>*), true>::get();
|
FunctionType *ft = TypeBuilder<types::i<8>(types::i<32>*), true>::get();
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user