jit: further doc fixes

Further jit doc fixes, which fix links to
gcc_jit_function_type_get_param_type and gcc_jit_struct_get_field.

gcc/jit/ChangeLog:
	* docs/topics/expressions.rst: Fix formatting.
	* docs/topics/types.rst: Likewise.
	* docs/_build/texinfo/libgccjit.texi: Regenerate

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
This commit is contained in:
David Malcolm 2022-04-01 09:18:26 -04:00
parent aed0f01478
commit 1a172da8a3
3 changed files with 1320 additions and 702 deletions

File diff suppressed because it is too large Load Diff

View File

@ -24,7 +24,7 @@ Rvalues
-------
.. type:: gcc_jit_rvalue
A :c:type:`gcc_jit_rvalue *` is an expression that can be computed.
A :c:type:`gcc_jit_rvalue` is an expression that can be computed.
It can be simple, e.g.:
@ -602,7 +602,7 @@ Function calls
gcc_jit_rvalue_set_bool_require_tail_call (gcc_jit_rvalue *call,\
int require_tail_call)
Given an :c:type:`gcc_jit_rvalue *` for a call created through
Given an :c:type:`gcc_jit_rvalue` for a call created through
:c:func:`gcc_jit_context_new_call` or
:c:func:`gcc_jit_context_new_call_through_ptr`, mark/clear the
call as needing tail-call optimization. The optimizer will
@ -721,8 +721,8 @@ where the rvalue is computed by reading from the storage area.
#ifdef LIBGCCJIT_HAVE_gcc_jit_lvalue_set_tls_model
.. function:: void
gcc_jit_lvalue_set_link_section (gcc_jit_lvalue *lvalue,
.. function:: void\
gcc_jit_lvalue_set_link_section (gcc_jit_lvalue *lvalue,\
const char *section_name)
Set the link section of a variable.

View File

@ -192,7 +192,7 @@ A compound type analagous to a C `struct`.
A field within a :c:type:`gcc_jit_struct`.
You can model C `struct` types by creating :c:type:`gcc_jit_struct *` and
You can model C `struct` types by creating :c:type:`gcc_jit_struct` and
:c:type:`gcc_jit_field` instances, in either order:
* by creating the fields, then the structure. For example, to model:
@ -375,7 +375,7 @@ Reflection API
Given a function type, return its number of parameters.
.. function:: gcc_jit_type *\
gcc_jit_function_type_get_param_type (gcc_jit_function_type *function_type,
gcc_jit_function_type_get_param_type (gcc_jit_function_type *function_type,\
size_t index)
Given a function type, return the type of the specified parameter.
@ -417,7 +417,7 @@ Reflection API
alignment qualifiers.
.. function:: gcc_jit_field *\
gcc_jit_struct_get_field (gcc_jit_struct *struct_type,
gcc_jit_struct_get_field (gcc_jit_struct *struct_type,\
size_t index)
Get a struct field by index.