From 0981cf960d07752f9844a2f2799fbc85a7f1efd8 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 25 May 2020 09:13:16 -0400 Subject: [PATCH] jit: fix sphinx formatting issues in docs gcc/jit/ChangeLog: * docs/topics/compatibility.rst: Fix underline. Fix missing labels. * docs/topics/types.rst: Fix missing blank line. * docs/_build/texinfo/libgccjit.texi: Regenerate. --- gcc/jit/docs/_build/texinfo/libgccjit.texi | 1226 ++++++++++++++-------------- gcc/jit/docs/topics/compatibility.rst | 6 +- gcc/jit/docs/topics/types.rst | 1 + 3 files changed, 618 insertions(+), 615 deletions(-) diff --git a/gcc/jit/docs/_build/texinfo/libgccjit.texi b/gcc/jit/docs/_build/texinfo/libgccjit.texi index 8795b1d..8eed7d2 100644 --- a/gcc/jit/docs/_build/texinfo/libgccjit.texi +++ b/gcc/jit/docs/_build/texinfo/libgccjit.texi @@ -5701,25 +5701,23 @@ The parameter @code{type} must be an integer type. The parameter @code{width} must be a positive integer that does not exceed the size of @code{type}. -This API entrypoint was added in LIBGCCJIT_ABI_12; you can test +This API entrypoint was added in @ref{8d,,LIBGCCJIT_ABI_12}; you can test for its presence using -.. code-block:: c - -@quotation +@example #ifdef LIBGCCJIT_HAVE_gcc_jit_context_new_bitfield -@end quotation +@end example @end deffn @geindex gcc_jit_field_as_object (C function) -@anchor{topics/types c gcc_jit_field_as_object}@anchor{8d} +@anchor{topics/types c gcc_jit_field_as_object}@anchor{8e} @deffn {C Function} gcc_jit_object * gcc_jit_field_as_object (gcc_jit_field@w{ }*field) Upcast from field to object. @end deffn @geindex gcc_jit_context_new_struct_type (C function) -@anchor{topics/types c gcc_jit_context_new_struct_type}@anchor{8e} +@anchor{topics/types c gcc_jit_context_new_struct_type}@anchor{8f} @deffn {C Function} gcc_jit_struct *gcc_jit_context_new_struct_type (gcc_jit_context@w{ }*ctxt, gcc_jit_location@w{ }*loc, const char@w{ }*name, int@w{ }num_fields, gcc_jit_field@w{ }**fields) @quotation @@ -5733,13 +5731,13 @@ on-stack buffer. @end deffn @geindex gcc_jit_context_new_opaque_struct (C function) -@anchor{topics/types c gcc_jit_context_new_opaque_struct}@anchor{8f} +@anchor{topics/types c gcc_jit_context_new_opaque_struct}@anchor{90} @deffn {C Function} gcc_jit_struct * gcc_jit_context_new_opaque_struct (gcc_jit_context@w{ }*ctxt, gcc_jit_location@w{ }*loc, const char@w{ }*name) Construct a new struct type, with the given name, but without specifying the fields. The fields can be omitted (in which case the size of the struct is not known), or later specified using -@ref{90,,gcc_jit_struct_set_fields()}. +@ref{91,,gcc_jit_struct_set_fields()}. The parameter @code{name} must be non-NULL. The call takes a copy of the underlying string, so it is valid to pass in a pointer to an @@ -5747,14 +5745,14 @@ on-stack buffer. @end deffn @geindex gcc_jit_struct_as_type (C function) -@anchor{topics/types c gcc_jit_struct_as_type}@anchor{91} +@anchor{topics/types c gcc_jit_struct_as_type}@anchor{92} @deffn {C Function} gcc_jit_type * gcc_jit_struct_as_type (gcc_jit_struct@w{ }*struct_type) Upcast from struct to type. @end deffn @geindex gcc_jit_struct_set_fields (C function) -@anchor{topics/types c gcc_jit_struct_set_fields}@anchor{90} +@anchor{topics/types c gcc_jit_struct_set_fields}@anchor{91} @deffn {C Function} void gcc_jit_struct_set_fields (gcc_jit_struct@w{ }*struct_type, gcc_jit_location@w{ }*loc, int@w{ }num_fields, gcc_jit_field@w{ }**fields) Populate the fields of a formerly-opaque struct type. @@ -5763,7 +5761,7 @@ This can only be called once on a given struct type. @end deffn @geindex gcc_jit_context_new_union_type (C function) -@anchor{topics/types c gcc_jit_context_new_union_type}@anchor{92} +@anchor{topics/types c gcc_jit_context_new_union_type}@anchor{93} @deffn {C Function} gcc_jit_type * gcc_jit_context_new_union_type (gcc_jit_context@w{ }*ctxt, gcc_jit_location@w{ }*loc, const char@w{ }*name, int@w{ }num_fields, gcc_jit_field@w{ }**fields) Construct a new union type, with the given name and fields. @@ -5851,12 +5849,12 @@ create_code (gcc_jit_context *ctxt, void *user_data) @end deffn @node Function pointer types,,Structures and unions,Types -@anchor{topics/types function-pointer-types}@anchor{93} +@anchor{topics/types function-pointer-types}@anchor{94} @subsection Function pointer types Function pointer types can be created using -@ref{94,,gcc_jit_context_new_function_ptr_type()}. +@ref{95,,gcc_jit_context_new_function_ptr_type()}. @c Copyright (C) 2014-2020 Free Software Foundation, Inc. @c Originally contributed by David Malcolm @@ -5876,7 +5874,7 @@ Function pointer types can be created using @c . @node Expressions,Creating and using functions,Types,Topic Reference -@anchor{topics/expressions doc}@anchor{95}@anchor{topics/expressions expressions}@anchor{96} +@anchor{topics/expressions doc}@anchor{96}@anchor{topics/expressions expressions}@anchor{97} @section Expressions @@ -5888,7 +5886,7 @@ Function pointer types can be created using @end menu @node Rvalues,Lvalues,,Expressions -@anchor{topics/expressions rvalues}@anchor{97} +@anchor{topics/expressions rvalues}@anchor{98} @subsection Rvalues @@ -5942,7 +5940,7 @@ Every rvalue has an associated type, and the API will check to ensure that types match up correctly (otherwise the context will emit an error). @geindex gcc_jit_rvalue_get_type (C function) -@anchor{topics/expressions c gcc_jit_rvalue_get_type}@anchor{98} +@anchor{topics/expressions c gcc_jit_rvalue_get_type}@anchor{99} @deffn {C Function} gcc_jit_type *gcc_jit_rvalue_get_type (gcc_jit_rvalue@w{ }*rvalue) Get the type of this rvalue. @@ -5968,7 +5966,7 @@ Upcast the given rvalue to be an object. @end menu @node Simple expressions,Vector expressions,,Rvalues -@anchor{topics/expressions simple-expressions}@anchor{99} +@anchor{topics/expressions simple-expressions}@anchor{9a} @subsubsection Simple expressions @@ -5981,7 +5979,7 @@ the given constant @code{int} value. @end deffn @geindex gcc_jit_context_new_rvalue_from_long (C function) -@anchor{topics/expressions c gcc_jit_context_new_rvalue_from_long}@anchor{9a} +@anchor{topics/expressions c gcc_jit_context_new_rvalue_from_long}@anchor{9b} @deffn {C Function} gcc_jit_rvalue * gcc_jit_context_new_rvalue_from_long (gcc_jit_context@w{ }*ctxt, gcc_jit_type@w{ }*numeric_type, long@w{ }value) Given a numeric type (integer or floating point), build an rvalue for @@ -6021,14 +6019,14 @@ the given constant @code{double} value. @end deffn @geindex gcc_jit_context_new_rvalue_from_ptr (C function) -@anchor{topics/expressions c gcc_jit_context_new_rvalue_from_ptr}@anchor{9b} +@anchor{topics/expressions c gcc_jit_context_new_rvalue_from_ptr}@anchor{9c} @deffn {C Function} gcc_jit_rvalue * gcc_jit_context_new_rvalue_from_ptr (gcc_jit_context@w{ }*ctxt, gcc_jit_type@w{ }*pointer_type, void@w{ }*value) Given a pointer type, build an rvalue for the given address. @end deffn @geindex gcc_jit_context_null (C function) -@anchor{topics/expressions c gcc_jit_context_null}@anchor{9c} +@anchor{topics/expressions c gcc_jit_context_null}@anchor{9d} @deffn {C Function} gcc_jit_rvalue *gcc_jit_context_null (gcc_jit_context@w{ }*ctxt, gcc_jit_type@w{ }*pointer_type) Given a pointer type, build an rvalue for @code{NULL}. Essentially this @@ -6040,7 +6038,7 @@ gcc_jit_context_new_rvalue_from_ptr (ctxt, pointer_type, NULL) @end deffn @geindex gcc_jit_context_new_string_literal (C function) -@anchor{topics/expressions c gcc_jit_context_new_string_literal}@anchor{9d} +@anchor{topics/expressions c gcc_jit_context_new_string_literal}@anchor{9e} @deffn {C Function} gcc_jit_rvalue * gcc_jit_context_new_string_literal (gcc_jit_context@w{ }*ctxt, const char@w{ }*value) Generate an rvalue for the given NIL-terminated string, of type @@ -6052,7 +6050,7 @@ buffer. @end deffn @node Vector expressions,Unary Operations,Simple expressions,Rvalues -@anchor{topics/expressions vector-expressions}@anchor{9e} +@anchor{topics/expressions vector-expressions}@anchor{9f} @subsubsection Vector expressions @@ -6067,7 +6065,7 @@ Build a vector rvalue from an array of elements. “num_elements” should match that of the vector type. -This entrypoint was added in @ref{9f,,LIBGCCJIT_ABI_10}; you can test for +This entrypoint was added in @ref{a0,,LIBGCCJIT_ABI_10}; you can test for its presence using @example @@ -6076,12 +6074,12 @@ its presence using @end deffn @node Unary Operations,Binary Operations,Vector expressions,Rvalues -@anchor{topics/expressions unary-operations}@anchor{a0} +@anchor{topics/expressions unary-operations}@anchor{a1} @subsubsection Unary Operations @geindex gcc_jit_context_new_unary_op (C function) -@anchor{topics/expressions c gcc_jit_context_new_unary_op}@anchor{a1} +@anchor{topics/expressions c gcc_jit_context_new_unary_op}@anchor{a2} @deffn {C Function} gcc_jit_rvalue * gcc_jit_context_new_unary_op (gcc_jit_context@w{ }*ctxt, gcc_jit_location@w{ }*loc, enum gcc_jit_unary_op@w{ }op, gcc_jit_type@w{ }*result_type, gcc_jit_rvalue@w{ }*rvalue) Build a unary operation out of an input rvalue. @@ -6090,7 +6088,7 @@ The parameter @code{result_type} must be a numeric type. @end deffn @geindex gcc_jit_unary_op (C type) -@anchor{topics/expressions c gcc_jit_unary_op}@anchor{a2} +@anchor{topics/expressions c gcc_jit_unary_op}@anchor{a3} @deffn {C Type} enum gcc_jit_unary_op @end deffn @@ -6108,7 +6106,7 @@ C equivalent @item -@ref{a3,,GCC_JIT_UNARY_OP_MINUS} +@ref{a4,,GCC_JIT_UNARY_OP_MINUS} @tab @@ -6116,7 +6114,7 @@ C equivalent @item -@ref{a4,,GCC_JIT_UNARY_OP_BITWISE_NEGATE} +@ref{a5,,GCC_JIT_UNARY_OP_BITWISE_NEGATE} @tab @@ -6124,7 +6122,7 @@ C equivalent @item -@ref{a5,,GCC_JIT_UNARY_OP_LOGICAL_NEGATE} +@ref{a6,,GCC_JIT_UNARY_OP_LOGICAL_NEGATE} @tab @@ -6132,7 +6130,7 @@ C equivalent @item -@ref{a6,,GCC_JIT_UNARY_OP_ABS} +@ref{a7,,GCC_JIT_UNARY_OP_ABS} @tab @@ -6142,7 +6140,7 @@ C equivalent @geindex GCC_JIT_UNARY_OP_MINUS (C macro) -@anchor{topics/expressions c GCC_JIT_UNARY_OP_MINUS}@anchor{a3} +@anchor{topics/expressions c GCC_JIT_UNARY_OP_MINUS}@anchor{a4} @deffn {C Macro} GCC_JIT_UNARY_OP_MINUS Negate an arithmetic value; analogous to: @@ -6155,7 +6153,7 @@ in C. @end deffn @geindex GCC_JIT_UNARY_OP_BITWISE_NEGATE (C macro) -@anchor{topics/expressions c GCC_JIT_UNARY_OP_BITWISE_NEGATE}@anchor{a4} +@anchor{topics/expressions c GCC_JIT_UNARY_OP_BITWISE_NEGATE}@anchor{a5} @deffn {C Macro} GCC_JIT_UNARY_OP_BITWISE_NEGATE Bitwise negation of an integer value (one’s complement); analogous @@ -6169,7 +6167,7 @@ in C. @end deffn @geindex GCC_JIT_UNARY_OP_LOGICAL_NEGATE (C macro) -@anchor{topics/expressions c GCC_JIT_UNARY_OP_LOGICAL_NEGATE}@anchor{a5} +@anchor{topics/expressions c GCC_JIT_UNARY_OP_LOGICAL_NEGATE}@anchor{a6} @deffn {C Macro} GCC_JIT_UNARY_OP_LOGICAL_NEGATE Logical negation of an arithmetic or pointer value; analogous to: @@ -6182,7 +6180,7 @@ in C. @end deffn @geindex GCC_JIT_UNARY_OP_ABS (C macro) -@anchor{topics/expressions c GCC_JIT_UNARY_OP_ABS}@anchor{a6} +@anchor{topics/expressions c GCC_JIT_UNARY_OP_ABS}@anchor{a7} @deffn {C Macro} GCC_JIT_UNARY_OP_ABS Absolute value of an arithmetic expression; analogous to: @@ -6195,7 +6193,7 @@ in C. @end deffn @node Binary Operations,Comparisons,Unary Operations,Rvalues -@anchor{topics/expressions binary-operations}@anchor{a7} +@anchor{topics/expressions binary-operations}@anchor{a8} @subsubsection Binary Operations @@ -6209,7 +6207,7 @@ The parameter @code{result_type} must be a numeric type. @end deffn @geindex gcc_jit_binary_op (C type) -@anchor{topics/expressions c gcc_jit_binary_op}@anchor{a8} +@anchor{topics/expressions c gcc_jit_binary_op}@anchor{a9} @deffn {C Type} enum gcc_jit_binary_op @end deffn @@ -6227,7 +6225,7 @@ C equivalent @item -@ref{a9,,GCC_JIT_BINARY_OP_PLUS} +@ref{aa,,GCC_JIT_BINARY_OP_PLUS} @tab @@ -6235,7 +6233,7 @@ C equivalent @item -@ref{aa,,GCC_JIT_BINARY_OP_MINUS} +@ref{ab,,GCC_JIT_BINARY_OP_MINUS} @tab @@ -6243,7 +6241,7 @@ C equivalent @item -@ref{ab,,GCC_JIT_BINARY_OP_MULT} +@ref{ac,,GCC_JIT_BINARY_OP_MULT} @tab @@ -6251,7 +6249,7 @@ C equivalent @item -@ref{ac,,GCC_JIT_BINARY_OP_DIVIDE} +@ref{ad,,GCC_JIT_BINARY_OP_DIVIDE} @tab @@ -6259,7 +6257,7 @@ C equivalent @item -@ref{ad,,GCC_JIT_BINARY_OP_MODULO} +@ref{ae,,GCC_JIT_BINARY_OP_MODULO} @tab @@ -6267,7 +6265,7 @@ C equivalent @item -@ref{ae,,GCC_JIT_BINARY_OP_BITWISE_AND} +@ref{af,,GCC_JIT_BINARY_OP_BITWISE_AND} @tab @@ -6275,7 +6273,7 @@ C equivalent @item -@ref{af,,GCC_JIT_BINARY_OP_BITWISE_XOR} +@ref{b0,,GCC_JIT_BINARY_OP_BITWISE_XOR} @tab @@ -6283,7 +6281,7 @@ C equivalent @item -@ref{b0,,GCC_JIT_BINARY_OP_BITWISE_OR} +@ref{b1,,GCC_JIT_BINARY_OP_BITWISE_OR} @tab @@ -6291,7 +6289,7 @@ C equivalent @item -@ref{b1,,GCC_JIT_BINARY_OP_LOGICAL_AND} +@ref{b2,,GCC_JIT_BINARY_OP_LOGICAL_AND} @tab @@ -6299,7 +6297,7 @@ C equivalent @item -@ref{b2,,GCC_JIT_BINARY_OP_LOGICAL_OR} +@ref{b3,,GCC_JIT_BINARY_OP_LOGICAL_OR} @tab @@ -6307,7 +6305,7 @@ C equivalent @item -@ref{b3,,GCC_JIT_BINARY_OP_LSHIFT} +@ref{b4,,GCC_JIT_BINARY_OP_LSHIFT} @tab @@ -6315,7 +6313,7 @@ C equivalent @item -@ref{b4,,GCC_JIT_BINARY_OP_RSHIFT} +@ref{b5,,GCC_JIT_BINARY_OP_RSHIFT} @tab @@ -6325,7 +6323,7 @@ C equivalent @geindex GCC_JIT_BINARY_OP_PLUS (C macro) -@anchor{topics/expressions c GCC_JIT_BINARY_OP_PLUS}@anchor{a9} +@anchor{topics/expressions c GCC_JIT_BINARY_OP_PLUS}@anchor{aa} @deffn {C Macro} GCC_JIT_BINARY_OP_PLUS Addition of arithmetic values; analogous to: @@ -6336,11 +6334,11 @@ Addition of arithmetic values; analogous to: in C. -For pointer addition, use @ref{b5,,gcc_jit_context_new_array_access()}. +For pointer addition, use @ref{b6,,gcc_jit_context_new_array_access()}. @end deffn @geindex GCC_JIT_BINARY_OP_MINUS (C macro) -@anchor{topics/expressions c GCC_JIT_BINARY_OP_MINUS}@anchor{aa} +@anchor{topics/expressions c GCC_JIT_BINARY_OP_MINUS}@anchor{ab} @deffn {C Macro} GCC_JIT_BINARY_OP_MINUS Subtraction of arithmetic values; analogous to: @@ -6353,7 +6351,7 @@ in C. @end deffn @geindex GCC_JIT_BINARY_OP_MULT (C macro) -@anchor{topics/expressions c GCC_JIT_BINARY_OP_MULT}@anchor{ab} +@anchor{topics/expressions c GCC_JIT_BINARY_OP_MULT}@anchor{ac} @deffn {C Macro} GCC_JIT_BINARY_OP_MULT Multiplication of a pair of arithmetic values; analogous to: @@ -6366,7 +6364,7 @@ in C. @end deffn @geindex GCC_JIT_BINARY_OP_DIVIDE (C macro) -@anchor{topics/expressions c GCC_JIT_BINARY_OP_DIVIDE}@anchor{ac} +@anchor{topics/expressions c GCC_JIT_BINARY_OP_DIVIDE}@anchor{ad} @deffn {C Macro} GCC_JIT_BINARY_OP_DIVIDE Quotient of division of arithmetic values; analogous to: @@ -6383,7 +6381,7 @@ a floating-point result type indicates floating-point division. @end deffn @geindex GCC_JIT_BINARY_OP_MODULO (C macro) -@anchor{topics/expressions c GCC_JIT_BINARY_OP_MODULO}@anchor{ad} +@anchor{topics/expressions c GCC_JIT_BINARY_OP_MODULO}@anchor{ae} @deffn {C Macro} GCC_JIT_BINARY_OP_MODULO Remainder of division of arithmetic values; analogous to: @@ -6396,7 +6394,7 @@ in C. @end deffn @geindex GCC_JIT_BINARY_OP_BITWISE_AND (C macro) -@anchor{topics/expressions c GCC_JIT_BINARY_OP_BITWISE_AND}@anchor{ae} +@anchor{topics/expressions c GCC_JIT_BINARY_OP_BITWISE_AND}@anchor{af} @deffn {C Macro} GCC_JIT_BINARY_OP_BITWISE_AND Bitwise AND; analogous to: @@ -6409,7 +6407,7 @@ in C. @end deffn @geindex GCC_JIT_BINARY_OP_BITWISE_XOR (C macro) -@anchor{topics/expressions c GCC_JIT_BINARY_OP_BITWISE_XOR}@anchor{af} +@anchor{topics/expressions c GCC_JIT_BINARY_OP_BITWISE_XOR}@anchor{b0} @deffn {C Macro} GCC_JIT_BINARY_OP_BITWISE_XOR Bitwise exclusive OR; analogous to: @@ -6422,7 +6420,7 @@ in C. @end deffn @geindex GCC_JIT_BINARY_OP_BITWISE_OR (C macro) -@anchor{topics/expressions c GCC_JIT_BINARY_OP_BITWISE_OR}@anchor{b0} +@anchor{topics/expressions c GCC_JIT_BINARY_OP_BITWISE_OR}@anchor{b1} @deffn {C Macro} GCC_JIT_BINARY_OP_BITWISE_OR Bitwise inclusive OR; analogous to: @@ -6435,7 +6433,7 @@ in C. @end deffn @geindex GCC_JIT_BINARY_OP_LOGICAL_AND (C macro) -@anchor{topics/expressions c GCC_JIT_BINARY_OP_LOGICAL_AND}@anchor{b1} +@anchor{topics/expressions c GCC_JIT_BINARY_OP_LOGICAL_AND}@anchor{b2} @deffn {C Macro} GCC_JIT_BINARY_OP_LOGICAL_AND Logical AND; analogous to: @@ -6448,7 +6446,7 @@ in C. @end deffn @geindex GCC_JIT_BINARY_OP_LOGICAL_OR (C macro) -@anchor{topics/expressions c GCC_JIT_BINARY_OP_LOGICAL_OR}@anchor{b2} +@anchor{topics/expressions c GCC_JIT_BINARY_OP_LOGICAL_OR}@anchor{b3} @deffn {C Macro} GCC_JIT_BINARY_OP_LOGICAL_OR Logical OR; analogous to: @@ -6461,7 +6459,7 @@ in C. @end deffn @geindex GCC_JIT_BINARY_OP_LSHIFT (C macro) -@anchor{topics/expressions c GCC_JIT_BINARY_OP_LSHIFT}@anchor{b3} +@anchor{topics/expressions c GCC_JIT_BINARY_OP_LSHIFT}@anchor{b4} @deffn {C Macro} GCC_JIT_BINARY_OP_LSHIFT Left shift; analogous to: @@ -6474,7 +6472,7 @@ in C. @end deffn @geindex GCC_JIT_BINARY_OP_RSHIFT (C macro) -@anchor{topics/expressions c GCC_JIT_BINARY_OP_RSHIFT}@anchor{b4} +@anchor{topics/expressions c GCC_JIT_BINARY_OP_RSHIFT}@anchor{b5} @deffn {C Macro} GCC_JIT_BINARY_OP_RSHIFT Right shift; analogous to: @@ -6487,7 +6485,7 @@ in C. @end deffn @node Comparisons,Function calls,Binary Operations,Rvalues -@anchor{topics/expressions comparisons}@anchor{b6} +@anchor{topics/expressions comparisons}@anchor{b7} @subsubsection Comparisons @@ -6499,7 +6497,7 @@ Build a boolean rvalue out of the comparison of two other rvalues. @end deffn @geindex gcc_jit_comparison (C type) -@anchor{topics/expressions c gcc_jit_comparison}@anchor{b7} +@anchor{topics/expressions c gcc_jit_comparison}@anchor{b8} @deffn {C Type} enum gcc_jit_comparison @end deffn @@ -6565,12 +6563,12 @@ C equivalent @node Function calls,Function pointers,Comparisons,Rvalues -@anchor{topics/expressions function-calls}@anchor{b8} +@anchor{topics/expressions function-calls}@anchor{b9} @subsubsection Function calls @geindex gcc_jit_context_new_call (C function) -@anchor{topics/expressions c gcc_jit_context_new_call}@anchor{b9} +@anchor{topics/expressions c gcc_jit_context_new_call}@anchor{ba} @deffn {C Function} gcc_jit_rvalue * gcc_jit_context_new_call (gcc_jit_context@w{ }*ctxt, gcc_jit_location@w{ }*loc, gcc_jit_function@w{ }*func, int@w{ }numargs, gcc_jit_rvalue@w{ }**args) Given a function and the given table of argument rvalues, construct a @@ -6578,7 +6576,7 @@ call to the function, with the result as an rvalue. @cartouche @quotation Note -@ref{b9,,gcc_jit_context_new_call()} merely builds a +@ref{ba,,gcc_jit_context_new_call()} merely builds a @ref{13,,gcc_jit_rvalue} i.e. an expression that can be evaluated, perhaps as part of a more complicated expression. The call @emph{won’t} happen unless you add a statement to a function @@ -6586,7 +6584,7 @@ that evaluates the expression. For example, if you want to call a function and discard the result (or to call a function with @code{void} return type), use -@ref{ba,,gcc_jit_block_add_eval()}: +@ref{bb,,gcc_jit_block_add_eval()}: @example /* Add "(void)printf (arg0, arg1);". */ @@ -6603,28 +6601,28 @@ gcc_jit_block_add_eval ( @end deffn @geindex gcc_jit_context_new_call_through_ptr (C function) -@anchor{topics/expressions c gcc_jit_context_new_call_through_ptr}@anchor{bb} +@anchor{topics/expressions c gcc_jit_context_new_call_through_ptr}@anchor{bc} @deffn {C Function} gcc_jit_rvalue * gcc_jit_context_new_call_through_ptr (gcc_jit_context@w{ }*ctxt, gcc_jit_location@w{ }*loc, gcc_jit_rvalue@w{ }*fn_ptr, int@w{ }numargs, gcc_jit_rvalue@w{ }**args) Given an rvalue of function pointer type (e.g. from -@ref{94,,gcc_jit_context_new_function_ptr_type()}), and the given table of +@ref{95,,gcc_jit_context_new_function_ptr_type()}), and the given table of argument rvalues, construct a call to the function pointer, with the result as an rvalue. @cartouche @quotation Note -The same caveat as for @ref{b9,,gcc_jit_context_new_call()} applies. +The same caveat as for @ref{ba,,gcc_jit_context_new_call()} applies. @end quotation @end cartouche @end deffn @geindex gcc_jit_rvalue_set_bool_require_tail_call (C function) -@anchor{topics/expressions c gcc_jit_rvalue_set_bool_require_tail_call}@anchor{bc} +@anchor{topics/expressions c gcc_jit_rvalue_set_bool_require_tail_call}@anchor{bd} @deffn {C Function} void gcc_jit_rvalue_set_bool_require_tail_call (gcc_jit_rvalue@w{ }*call, int@w{ }require_tail_call) Given an @ref{13,,gcc_jit_rvalue *} for a call created through -@ref{b9,,gcc_jit_context_new_call()} or -@ref{bb,,gcc_jit_context_new_call_through_ptr()}, mark/clear the +@ref{ba,,gcc_jit_context_new_call()} or +@ref{bc,,gcc_jit_context_new_call_through_ptr()}, mark/clear the call as needing tail-call optimization. The optimizer will attempt to optimize the call into a jump instruction; if it is unable to do do, an error will be emitted. @@ -6636,7 +6634,7 @@ languages), in which every function “returns” by calling a guaranteed to be implemented as a jump, otherwise the program could consume an arbitrary amount of stack space as it executed. -This entrypoint was added in @ref{bd,,LIBGCCJIT_ABI_6}; you can test for +This entrypoint was added in @ref{be,,LIBGCCJIT_ABI_6}; you can test for its presence using @example @@ -6645,7 +6643,7 @@ its presence using @end deffn @node Function pointers,Type-coercion,Function calls,Rvalues -@anchor{topics/expressions function-pointers}@anchor{be} +@anchor{topics/expressions function-pointers}@anchor{bf} @subsubsection Function pointers @@ -6658,23 +6656,23 @@ Function pointers can be obtained: @item from a @ref{29,,gcc_jit_function} using -@ref{bf,,gcc_jit_function_get_address()}, or +@ref{c0,,gcc_jit_function_get_address()}, or @item from an existing function using -@ref{9b,,gcc_jit_context_new_rvalue_from_ptr()}, +@ref{9c,,gcc_jit_context_new_rvalue_from_ptr()}, using a function pointer type obtained using -@ref{94,,gcc_jit_context_new_function_ptr_type()}. +@ref{95,,gcc_jit_context_new_function_ptr_type()}. @end itemize @end quotation @node Type-coercion,,Function pointers,Rvalues -@anchor{topics/expressions type-coercion}@anchor{c0} +@anchor{topics/expressions type-coercion}@anchor{c1} @subsubsection Type-coercion @geindex gcc_jit_context_new_cast (C function) -@anchor{topics/expressions c gcc_jit_context_new_cast}@anchor{c1} +@anchor{topics/expressions c gcc_jit_context_new_cast}@anchor{c2} @deffn {C Function} gcc_jit_rvalue * gcc_jit_context_new_cast (gcc_jit_context@w{ }*ctxt, gcc_jit_location@w{ }*loc, gcc_jit_rvalue@w{ }*rvalue, gcc_jit_type@w{ }*type) Given an rvalue of T, construct another rvalue of another type. @@ -6699,7 +6697,7 @@ P* <-> Q*, for pointer types P and Q @end deffn @node Lvalues,Working with pointers structs and unions,Rvalues,Expressions -@anchor{topics/expressions lvalues}@anchor{c2} +@anchor{topics/expressions lvalues}@anchor{c3} @subsection Lvalues @@ -6713,21 +6711,21 @@ a storage area (such as a variable). It is also usable as an rvalue, where the rvalue is computed by reading from the storage area. @geindex gcc_jit_lvalue_as_object (C function) -@anchor{topics/expressions c gcc_jit_lvalue_as_object}@anchor{c3} +@anchor{topics/expressions c gcc_jit_lvalue_as_object}@anchor{c4} @deffn {C Function} gcc_jit_object * gcc_jit_lvalue_as_object (gcc_jit_lvalue@w{ }*lvalue) Upcast an lvalue to be an object. @end deffn @geindex gcc_jit_lvalue_as_rvalue (C function) -@anchor{topics/expressions c gcc_jit_lvalue_as_rvalue}@anchor{c4} +@anchor{topics/expressions c gcc_jit_lvalue_as_rvalue}@anchor{c5} @deffn {C Function} gcc_jit_rvalue * gcc_jit_lvalue_as_rvalue (gcc_jit_lvalue@w{ }*lvalue) Upcast an lvalue to be an rvalue. @end deffn @geindex gcc_jit_lvalue_get_address (C function) -@anchor{topics/expressions c gcc_jit_lvalue_get_address}@anchor{c5} +@anchor{topics/expressions c gcc_jit_lvalue_get_address}@anchor{c6} @deffn {C Function} gcc_jit_rvalue * gcc_jit_lvalue_get_address (gcc_jit_lvalue@w{ }*lvalue, gcc_jit_location@w{ }*loc) Take the address of an lvalue; analogous to: @@ -6745,12 +6743,12 @@ in C. @end menu @node Global variables,,,Lvalues -@anchor{topics/expressions global-variables}@anchor{c6} +@anchor{topics/expressions global-variables}@anchor{c7} @subsubsection Global variables @geindex gcc_jit_context_new_global (C function) -@anchor{topics/expressions c gcc_jit_context_new_global}@anchor{c7} +@anchor{topics/expressions c gcc_jit_context_new_global}@anchor{c8} @deffn {C Function} gcc_jit_lvalue * gcc_jit_context_new_global (gcc_jit_context@w{ }*ctxt, gcc_jit_location@w{ }*loc, enum gcc_jit_global_kind@w{ }kind, gcc_jit_type@w{ }*type, const char@w{ }*name) Add a new global variable of the given type and name to the context. @@ -6765,22 +6763,22 @@ The “kind” parameter determines the visibility of the “global” outside of the @ref{16,,gcc_jit_result}: @geindex gcc_jit_global_kind (C type) -@anchor{topics/expressions c gcc_jit_global_kind}@anchor{c8} +@anchor{topics/expressions c gcc_jit_global_kind}@anchor{c9} @deffn {C Type} enum gcc_jit_global_kind @end deffn @geindex GCC_JIT_GLOBAL_EXPORTED (C macro) -@anchor{topics/expressions c GCC_JIT_GLOBAL_EXPORTED}@anchor{c9} +@anchor{topics/expressions c GCC_JIT_GLOBAL_EXPORTED}@anchor{ca} @deffn {C Macro} GCC_JIT_GLOBAL_EXPORTED Global is defined by the client code and is visible by name outside of this JIT context via -@ref{ca,,gcc_jit_result_get_global()} (and this value is required for +@ref{cb,,gcc_jit_result_get_global()} (and this value is required for the global to be accessible via that entrypoint). @end deffn @geindex GCC_JIT_GLOBAL_INTERNAL (C macro) -@anchor{topics/expressions c GCC_JIT_GLOBAL_INTERNAL}@anchor{cb} +@anchor{topics/expressions c GCC_JIT_GLOBAL_INTERNAL}@anchor{cc} @deffn {C Macro} GCC_JIT_GLOBAL_INTERNAL Global is defined by the client code, but is invisible @@ -6790,7 +6788,7 @@ context and within child contexts. @end deffn @geindex GCC_JIT_GLOBAL_IMPORTED (C macro) -@anchor{topics/expressions c GCC_JIT_GLOBAL_IMPORTED}@anchor{cc} +@anchor{topics/expressions c GCC_JIT_GLOBAL_IMPORTED}@anchor{cd} @deffn {C Macro} GCC_JIT_GLOBAL_IMPORTED Global is not defined by the client code; we’re merely @@ -6800,12 +6798,12 @@ header file. @end deffn @node Working with pointers structs and unions,,Lvalues,Expressions -@anchor{topics/expressions working-with-pointers-structs-and-unions}@anchor{cd} +@anchor{topics/expressions working-with-pointers-structs-and-unions}@anchor{ce} @subsection Working with pointers, structs and unions @geindex gcc_jit_rvalue_dereference (C function) -@anchor{topics/expressions c gcc_jit_rvalue_dereference}@anchor{ce} +@anchor{topics/expressions c gcc_jit_rvalue_dereference}@anchor{cf} @deffn {C Function} gcc_jit_lvalue * gcc_jit_rvalue_dereference (gcc_jit_rvalue@w{ }*rvalue, gcc_jit_location@w{ }*loc) Given an rvalue of pointer type @code{T *}, dereferencing the pointer, @@ -6821,7 +6819,7 @@ in C. Field access is provided separately for both lvalues and rvalues. @geindex gcc_jit_lvalue_access_field (C function) -@anchor{topics/expressions c gcc_jit_lvalue_access_field}@anchor{cf} +@anchor{topics/expressions c gcc_jit_lvalue_access_field}@anchor{d0} @deffn {C Function} gcc_jit_lvalue * gcc_jit_lvalue_access_field (gcc_jit_lvalue@w{ }*struct_, gcc_jit_location@w{ }*loc, gcc_jit_field@w{ }*field) Given an lvalue of struct or union type, access the given field, @@ -6835,7 +6833,7 @@ in C. @end deffn @geindex gcc_jit_rvalue_access_field (C function) -@anchor{topics/expressions c gcc_jit_rvalue_access_field}@anchor{d0} +@anchor{topics/expressions c gcc_jit_rvalue_access_field}@anchor{d1} @deffn {C Function} gcc_jit_rvalue * gcc_jit_rvalue_access_field (gcc_jit_rvalue@w{ }*struct_, gcc_jit_location@w{ }*loc, gcc_jit_field@w{ }*field) Given an rvalue of struct or union type, access the given field @@ -6849,7 +6847,7 @@ in C. @end deffn @geindex gcc_jit_rvalue_dereference_field (C function) -@anchor{topics/expressions c gcc_jit_rvalue_dereference_field}@anchor{d1} +@anchor{topics/expressions c gcc_jit_rvalue_dereference_field}@anchor{d2} @deffn {C Function} gcc_jit_lvalue * gcc_jit_rvalue_dereference_field (gcc_jit_rvalue@w{ }*ptr, gcc_jit_location@w{ }*loc, gcc_jit_field@w{ }*field) Given an rvalue of pointer type @code{T *} where T is of struct or union @@ -6863,7 +6861,7 @@ in C, itself equivalent to @code{(*EXPR).FIELD}. @end deffn @geindex gcc_jit_context_new_array_access (C function) -@anchor{topics/expressions c gcc_jit_context_new_array_access}@anchor{b5} +@anchor{topics/expressions c gcc_jit_context_new_array_access}@anchor{b6} @deffn {C Function} gcc_jit_lvalue * gcc_jit_context_new_array_access (gcc_jit_context@w{ }*ctxt, gcc_jit_location@w{ }*loc, gcc_jit_rvalue@w{ }*ptr, gcc_jit_rvalue@w{ }*index) Given an rvalue of pointer type @code{T *}, get at the element @cite{T} at @@ -6896,7 +6894,7 @@ in C (or, indeed, to @code{PTR + INDEX}). @c . @node Creating and using functions,Function pointers<2>,Expressions,Topic Reference -@anchor{topics/functions doc}@anchor{d2}@anchor{topics/functions creating-and-using-functions}@anchor{d3} +@anchor{topics/functions doc}@anchor{d3}@anchor{topics/functions creating-and-using-functions}@anchor{d4} @section Creating and using functions @@ -6909,7 +6907,7 @@ in C (or, indeed, to @code{PTR + INDEX}). @end menu @node Params,Functions,,Creating and using functions -@anchor{topics/functions params}@anchor{d4} +@anchor{topics/functions params}@anchor{d5} @subsection Params @@ -6938,28 +6936,28 @@ Parameters are lvalues, and thus are also rvalues (and objects), so the following upcasts are available: @geindex gcc_jit_param_as_lvalue (C function) -@anchor{topics/functions c gcc_jit_param_as_lvalue}@anchor{d5} +@anchor{topics/functions c gcc_jit_param_as_lvalue}@anchor{d6} @deffn {C Function} gcc_jit_lvalue * gcc_jit_param_as_lvalue (gcc_jit_param@w{ }*param) Upcasting from param to lvalue. @end deffn @geindex gcc_jit_param_as_rvalue (C function) -@anchor{topics/functions c gcc_jit_param_as_rvalue}@anchor{d6} +@anchor{topics/functions c gcc_jit_param_as_rvalue}@anchor{d7} @deffn {C Function} gcc_jit_rvalue * gcc_jit_param_as_rvalue (gcc_jit_param@w{ }*param) Upcasting from param to rvalue. @end deffn @geindex gcc_jit_param_as_object (C function) -@anchor{topics/functions c gcc_jit_param_as_object}@anchor{d7} +@anchor{topics/functions c gcc_jit_param_as_object}@anchor{d8} @deffn {C Function} gcc_jit_object * gcc_jit_param_as_object (gcc_jit_param@w{ }*param) Upcasting from param to object. @end deffn @node Functions,Blocks,Params,Creating and using functions -@anchor{topics/functions functions}@anchor{d8} +@anchor{topics/functions functions}@anchor{d9} @subsection Functions @@ -6978,7 +6976,7 @@ creating ourselves, or one that we’re referencing. Create a gcc_jit_function with the given name and parameters. @geindex gcc_jit_function_kind (C type) -@anchor{topics/functions c gcc_jit_function_kind}@anchor{d9} +@anchor{topics/functions c gcc_jit_function_kind}@anchor{da} @deffn {C Type} enum gcc_jit_function_kind @end deffn @@ -6988,7 +6986,7 @@ values: @quotation @geindex GCC_JIT_FUNCTION_EXPORTED (C macro) -@anchor{topics/functions c GCC_JIT_FUNCTION_EXPORTED}@anchor{da} +@anchor{topics/functions c GCC_JIT_FUNCTION_EXPORTED}@anchor{db} @deffn {C Macro} GCC_JIT_FUNCTION_EXPORTED Function is defined by the client code and visible @@ -7000,7 +6998,7 @@ for this function from a @ref{16,,gcc_jit_result} via @end deffn @geindex GCC_JIT_FUNCTION_INTERNAL (C macro) -@anchor{topics/functions c GCC_JIT_FUNCTION_INTERNAL}@anchor{db} +@anchor{topics/functions c GCC_JIT_FUNCTION_INTERNAL}@anchor{dc} @deffn {C Macro} GCC_JIT_FUNCTION_INTERNAL Function is defined by the client code, but is invisible @@ -7008,7 +7006,7 @@ outside of the JIT. Analogous to a “static” function. @end deffn @geindex GCC_JIT_FUNCTION_IMPORTED (C macro) -@anchor{topics/functions c GCC_JIT_FUNCTION_IMPORTED}@anchor{dc} +@anchor{topics/functions c GCC_JIT_FUNCTION_IMPORTED}@anchor{dd} @deffn {C Macro} GCC_JIT_FUNCTION_IMPORTED Function is not defined by the client code; we’re merely @@ -7017,7 +7015,7 @@ header file. @end deffn @geindex GCC_JIT_FUNCTION_ALWAYS_INLINE (C macro) -@anchor{topics/functions c GCC_JIT_FUNCTION_ALWAYS_INLINE}@anchor{dd} +@anchor{topics/functions c GCC_JIT_FUNCTION_ALWAYS_INLINE}@anchor{de} @deffn {C Macro} GCC_JIT_FUNCTION_ALWAYS_INLINE Function is only ever inlined into other functions, and is @@ -7038,19 +7036,19 @@ buffer. @end deffn @geindex gcc_jit_context_get_builtin_function (C function) -@anchor{topics/functions c gcc_jit_context_get_builtin_function}@anchor{de} +@anchor{topics/functions c gcc_jit_context_get_builtin_function}@anchor{df} @deffn {C Function} gcc_jit_function *gcc_jit_context_get_builtin_function (gcc_jit_context@w{ }*ctxt, const char@w{ }*name) @end deffn @geindex gcc_jit_function_as_object (C function) -@anchor{topics/functions c gcc_jit_function_as_object}@anchor{df} +@anchor{topics/functions c gcc_jit_function_as_object}@anchor{e0} @deffn {C Function} gcc_jit_object * gcc_jit_function_as_object (gcc_jit_function@w{ }*func) Upcasting from function to object. @end deffn @geindex gcc_jit_function_get_param (C function) -@anchor{topics/functions c gcc_jit_function_get_param}@anchor{e0} +@anchor{topics/functions c gcc_jit_function_get_param}@anchor{e1} @deffn {C Function} gcc_jit_param * gcc_jit_function_get_param (gcc_jit_function@w{ }*func, int@w{ }index) Get the param of the given index (0-based). @@ -7078,7 +7076,7 @@ buffer. @end deffn @node Blocks,Statements,Functions,Creating and using functions -@anchor{topics/functions blocks}@anchor{e1} +@anchor{topics/functions blocks}@anchor{e2} @subsection Blocks @@ -7102,7 +7100,7 @@ one function. @end deffn @geindex gcc_jit_function_new_block (C function) -@anchor{topics/functions c gcc_jit_function_new_block}@anchor{e2} +@anchor{topics/functions c gcc_jit_function_new_block}@anchor{e3} @deffn {C Function} gcc_jit_block * gcc_jit_function_new_block (gcc_jit_function@w{ }*func, const char@w{ }*name) Create a basic block of the given name. The name may be NULL, but @@ -7122,26 +7120,26 @@ for (pc = 0; pc < fn->fn_num_ops; pc++) @end deffn @geindex gcc_jit_block_as_object (C function) -@anchor{topics/functions c gcc_jit_block_as_object}@anchor{e3} +@anchor{topics/functions c gcc_jit_block_as_object}@anchor{e4} @deffn {C Function} gcc_jit_object * gcc_jit_block_as_object (gcc_jit_block@w{ }*block) Upcast from block to object. @end deffn @geindex gcc_jit_block_get_function (C function) -@anchor{topics/functions c gcc_jit_block_get_function}@anchor{e4} +@anchor{topics/functions c gcc_jit_block_get_function}@anchor{e5} @deffn {C Function} gcc_jit_function * gcc_jit_block_get_function (gcc_jit_block@w{ }*block) Which function is this block within? @end deffn @node Statements,,Blocks,Creating and using functions -@anchor{topics/functions statements}@anchor{e5} +@anchor{topics/functions statements}@anchor{e6} @subsection Statements @geindex gcc_jit_block_add_eval (C function) -@anchor{topics/functions c gcc_jit_block_add_eval}@anchor{ba} +@anchor{topics/functions c gcc_jit_block_add_eval}@anchor{bb} @deffn {C Function} void gcc_jit_block_add_eval (gcc_jit_block@w{ }*block, gcc_jit_location@w{ }*loc, gcc_jit_rvalue@w{ }*rvalue) Add evaluation of an rvalue, discarding the result @@ -7238,7 +7236,7 @@ block, boolval, on_true, and on_false must be non-NULL. @end deffn @geindex gcc_jit_block_end_with_jump (C function) -@anchor{topics/functions c gcc_jit_block_end_with_jump}@anchor{e6} +@anchor{topics/functions c gcc_jit_block_end_with_jump}@anchor{e7} @deffn {C Function} void gcc_jit_block_end_with_jump (gcc_jit_block@w{ }*block, gcc_jit_location@w{ }*loc, gcc_jit_block@w{ }*target) Terminate a block by adding a jump to the given target block. @@ -7251,7 +7249,7 @@ goto target; @end deffn @geindex gcc_jit_block_end_with_return (C function) -@anchor{topics/functions c gcc_jit_block_end_with_return}@anchor{e7} +@anchor{topics/functions c gcc_jit_block_end_with_return}@anchor{e8} @deffn {C Function} void gcc_jit_block_end_with_return (gcc_jit_block@w{ }*block, gcc_jit_location@w{ }*loc, gcc_jit_rvalue@w{ }*rvalue) Terminate a block by adding evaluation of an rvalue, returning the value. @@ -7264,7 +7262,7 @@ return expression; @end deffn @geindex gcc_jit_block_end_with_void_return (C function) -@anchor{topics/functions c gcc_jit_block_end_with_void_return}@anchor{e8} +@anchor{topics/functions c gcc_jit_block_end_with_void_return}@anchor{e9} @deffn {C Function} void gcc_jit_block_end_with_void_return (gcc_jit_block@w{ }*block, gcc_jit_location@w{ }*loc) Terminate a block by adding a valueless return, for use within a function @@ -7278,7 +7276,7 @@ return; @end deffn @geindex gcc_jit_block_end_with_switch (C function) -@anchor{topics/functions c gcc_jit_block_end_with_switch}@anchor{e9} +@anchor{topics/functions c gcc_jit_block_end_with_switch}@anchor{ea} @deffn {C Function} void gcc_jit_block_end_with_switch (gcc_jit_block@w{ }*block, gcc_jit_location@w{ }*loc, gcc_jit_rvalue@w{ }*expr, gcc_jit_block@w{ }*default_block, int@w{ }num_cases, gcc_jit_case@w{ }**cases) Terminate a block by adding evalation of an rvalue, then performing @@ -7324,17 +7322,17 @@ The API entrypoints relating to switch statements and cases: @itemize * @item -@ref{e9,,gcc_jit_block_end_with_switch()} +@ref{ea,,gcc_jit_block_end_with_switch()} @item -@ref{ea,,gcc_jit_case_as_object()} +@ref{eb,,gcc_jit_case_as_object()} @item -@ref{eb,,gcc_jit_context_new_case()} +@ref{ec,,gcc_jit_context_new_case()} @end itemize @end quotation -were added in @ref{ec,,LIBGCCJIT_ABI_3}; you can test for their presence +were added in @ref{ed,,LIBGCCJIT_ABI_3}; you can test for their presence using @example @@ -7342,20 +7340,20 @@ using @end example @geindex gcc_jit_case (C type) -@anchor{topics/functions c gcc_jit_case}@anchor{ed} +@anchor{topics/functions c gcc_jit_case}@anchor{ee} @deffn {C Type} gcc_jit_case @end deffn A @cite{gcc_jit_case} represents a case within a switch statement, and is created within a particular @ref{8,,gcc_jit_context} using -@ref{eb,,gcc_jit_context_new_case()}. +@ref{ec,,gcc_jit_context_new_case()}. Each case expresses a multivalued range of integer values. You can express single-valued cases by passing in the same value for both @cite{min_value} and @cite{max_value}. @geindex gcc_jit_context_new_case (C function) -@anchor{topics/functions c gcc_jit_context_new_case}@anchor{eb} +@anchor{topics/functions c gcc_jit_context_new_case}@anchor{ec} @deffn {C Function} gcc_jit_case * gcc_jit_context_new_case (gcc_jit_context@w{ }*ctxt, gcc_jit_rvalue@w{ }*min_value, gcc_jit_rvalue@w{ }*max_value, gcc_jit_block@w{ }*dest_block) Create a new gcc_jit_case instance for use in a switch statement. @@ -7367,7 +7365,7 @@ statement. @end deffn @geindex gcc_jit_case_as_object (C function) -@anchor{topics/functions c gcc_jit_case_as_object}@anchor{ea} +@anchor{topics/functions c gcc_jit_case_as_object}@anchor{eb} @deffn {C Function} gcc_jit_object * gcc_jit_case_as_object (gcc_jit_case@w{ }*case_) Upcast from a case to an object. @@ -7499,26 +7497,26 @@ create_code (gcc_jit_context *ctxt, void *user_data) @c . @node Function pointers<2>,Source Locations,Creating and using functions,Topic Reference -@anchor{topics/function-pointers doc}@anchor{ee}@anchor{topics/function-pointers function-pointers}@anchor{ef} +@anchor{topics/function-pointers doc}@anchor{ef}@anchor{topics/function-pointers function-pointers}@anchor{f0} @section Function pointers You can generate calls that use a function pointer via -@ref{bb,,gcc_jit_context_new_call_through_ptr()}. +@ref{bc,,gcc_jit_context_new_call_through_ptr()}. To do requires a @ref{13,,gcc_jit_rvalue} of the correct function pointer type. Function pointers for a @ref{29,,gcc_jit_function} can be obtained -via @ref{bf,,gcc_jit_function_get_address()}. +via @ref{c0,,gcc_jit_function_get_address()}. @geindex gcc_jit_function_get_address (C function) -@anchor{topics/function-pointers c gcc_jit_function_get_address}@anchor{bf} +@anchor{topics/function-pointers c gcc_jit_function_get_address}@anchor{c0} @deffn {C Function} gcc_jit_rvalue * gcc_jit_function_get_address (gcc_jit_function@w{ }*fn, gcc_jit_location@w{ }*loc) Get the address of a function as an rvalue, of function pointer type. -This entrypoint was added in @ref{f0,,LIBGCCJIT_ABI_9}; you can test +This entrypoint was added in @ref{f1,,LIBGCCJIT_ABI_9}; you can test for its presence using @example @@ -7528,8 +7526,8 @@ for its presence using Alternatively, given an existing function, you can obtain a pointer to it in @ref{13,,gcc_jit_rvalue} form using -@ref{9b,,gcc_jit_context_new_rvalue_from_ptr()}, using a function pointer -type obtained using @ref{94,,gcc_jit_context_new_function_ptr_type()}. +@ref{9c,,gcc_jit_context_new_rvalue_from_ptr()}, using a function pointer +type obtained using @ref{95,,gcc_jit_context_new_function_ptr_type()}. Here’s an example of creating a function pointer type corresponding to C’s @code{void (*) (int, int, int)}: @@ -7553,7 +7551,7 @@ gcc_jit_type *fn_ptr_type = @end example @geindex gcc_jit_context_new_function_ptr_type (C function) -@anchor{topics/function-pointers c gcc_jit_context_new_function_ptr_type}@anchor{94} +@anchor{topics/function-pointers c gcc_jit_context_new_function_ptr_type}@anchor{95} @deffn {C Function} gcc_jit_type * gcc_jit_context_new_function_ptr_type (gcc_jit_context@w{ }*ctxt, gcc_jit_location@w{ }*loc, gcc_jit_type@w{ }*return_type, int@w{ }num_params, gcc_jit_type@w{ }**param_types, int@w{ }is_variadic) Generate a @ref{a,,gcc_jit_type} for a function pointer with the @@ -7580,7 +7578,7 @@ Each of @cite{param_types} must be non-@cite{void}; @cite{return_type} may be @c @c . @node Source Locations,Compiling a context,Function pointers<2>,Topic Reference -@anchor{topics/locations doc}@anchor{f1}@anchor{topics/locations source-locations}@anchor{f2} +@anchor{topics/locations doc}@anchor{f2}@anchor{topics/locations source-locations}@anchor{f3} @section Source Locations @@ -7628,7 +7626,7 @@ on-stack buffer. @end menu @node Faking it,,,Source Locations -@anchor{topics/locations faking-it}@anchor{f3} +@anchor{topics/locations faking-it}@anchor{f4} @subsection Faking it @@ -7664,7 +7662,7 @@ file, giving you @emph{something} you can step through in the debugger. @c . @node Compiling a context,ABI and API compatibility,Source Locations,Topic Reference -@anchor{topics/compilation doc}@anchor{f4}@anchor{topics/compilation compiling-a-context}@anchor{f5} +@anchor{topics/compilation doc}@anchor{f5}@anchor{topics/compilation compiling-a-context}@anchor{f6} @section Compiling a context @@ -7683,7 +7681,7 @@ prevent any future compilation of that context. @end menu @node In-memory compilation,Ahead-of-time compilation,,Compiling a context -@anchor{topics/compilation in-memory-compilation}@anchor{f6} +@anchor{topics/compilation in-memory-compilation}@anchor{f7} @subsection In-memory compilation @@ -7718,7 +7716,7 @@ Functions are looked up by name. For this to succeed, a function with a name matching @cite{funcname} must have been created on @cite{result}’s context (or a parent context) via a call to @ref{11,,gcc_jit_context_new_function()} with @cite{kind} -@ref{da,,GCC_JIT_FUNCTION_EXPORTED}: +@ref{db,,GCC_JIT_FUNCTION_EXPORTED}: @example gcc_jit_context_new_function (ctxt, @@ -7746,7 +7744,7 @@ to a segmentation fault. @end deffn @geindex gcc_jit_result_get_global (C function) -@anchor{topics/compilation c gcc_jit_result_get_global}@anchor{ca} +@anchor{topics/compilation c gcc_jit_result_get_global}@anchor{cb} @deffn {C Function} void * gcc_jit_result_get_global (gcc_jit_result@w{ }*result, const char@w{ }*name) Locate a given global within the built machine code. @@ -7754,8 +7752,8 @@ Locate a given global within the built machine code. Globals are looked up by name. For this to succeed, a global with a name matching @cite{name} must have been created on @cite{result}’s context (or a parent context) via a call to -@ref{c7,,gcc_jit_context_new_global()} with @cite{kind} -@ref{c9,,GCC_JIT_GLOBAL_EXPORTED}. +@ref{c8,,gcc_jit_context_new_global()} with @cite{kind} +@ref{ca,,GCC_JIT_GLOBAL_EXPORTED}. If the global is found, the result will need to be cast to a pointer of the correct type before it can be called. @@ -7799,11 +7797,11 @@ Once we’re done with the code, this unloads the built .so file. This cleans up the result; after calling this, it’s no longer valid to use the result, or any code or globals that were obtained by calling @ref{17,,gcc_jit_result_get_code()} or -@ref{ca,,gcc_jit_result_get_global()} on it. +@ref{cb,,gcc_jit_result_get_global()} on it. @end deffn @node Ahead-of-time compilation,,In-memory compilation,Compiling a context -@anchor{topics/compilation ahead-of-time-compilation}@anchor{f7} +@anchor{topics/compilation ahead-of-time-compilation}@anchor{f8} @subsection Ahead-of-time compilation @@ -7832,7 +7830,7 @@ suffix of the output file when determining what to do. @end cartouche @geindex gcc_jit_output_kind (C type) -@anchor{topics/compilation c gcc_jit_output_kind}@anchor{f8} +@anchor{topics/compilation c gcc_jit_output_kind}@anchor{f9} @deffn {C Type} enum gcc_jit_output_kind @end deffn @@ -7850,7 +7848,7 @@ Typical suffix @item -@ref{f9,,GCC_JIT_OUTPUT_KIND_ASSEMBLER} +@ref{fa,,GCC_JIT_OUTPUT_KIND_ASSEMBLER} @tab @@ -7858,7 +7856,7 @@ Typical suffix @item -@ref{fa,,GCC_JIT_OUTPUT_KIND_OBJECT_FILE} +@ref{fb,,GCC_JIT_OUTPUT_KIND_OBJECT_FILE} @tab @@ -7866,7 +7864,7 @@ Typical suffix @item -@ref{fb,,GCC_JIT_OUTPUT_KIND_DYNAMIC_LIBRARY} +@ref{fc,,GCC_JIT_OUTPUT_KIND_DYNAMIC_LIBRARY} @tab @@ -7874,7 +7872,7 @@ Typical suffix @item -@ref{fc,,GCC_JIT_OUTPUT_KIND_EXECUTABLE} +@ref{fd,,GCC_JIT_OUTPUT_KIND_EXECUTABLE} @tab @@ -7884,21 +7882,21 @@ None, or .exe @geindex GCC_JIT_OUTPUT_KIND_ASSEMBLER (C macro) -@anchor{topics/compilation c GCC_JIT_OUTPUT_KIND_ASSEMBLER}@anchor{f9} +@anchor{topics/compilation c GCC_JIT_OUTPUT_KIND_ASSEMBLER}@anchor{fa} @deffn {C Macro} GCC_JIT_OUTPUT_KIND_ASSEMBLER Compile the context to an assembler file. @end deffn @geindex GCC_JIT_OUTPUT_KIND_OBJECT_FILE (C macro) -@anchor{topics/compilation c GCC_JIT_OUTPUT_KIND_OBJECT_FILE}@anchor{fa} +@anchor{topics/compilation c GCC_JIT_OUTPUT_KIND_OBJECT_FILE}@anchor{fb} @deffn {C Macro} GCC_JIT_OUTPUT_KIND_OBJECT_FILE Compile the context to an object file. @end deffn @geindex GCC_JIT_OUTPUT_KIND_DYNAMIC_LIBRARY (C macro) -@anchor{topics/compilation c GCC_JIT_OUTPUT_KIND_DYNAMIC_LIBRARY}@anchor{fb} +@anchor{topics/compilation c GCC_JIT_OUTPUT_KIND_DYNAMIC_LIBRARY}@anchor{fc} @deffn {C Macro} GCC_JIT_OUTPUT_KIND_DYNAMIC_LIBRARY Compile the context to a dynamic library. @@ -7908,7 +7906,7 @@ against. @end deffn @geindex GCC_JIT_OUTPUT_KIND_EXECUTABLE (C macro) -@anchor{topics/compilation c GCC_JIT_OUTPUT_KIND_EXECUTABLE}@anchor{fc} +@anchor{topics/compilation c GCC_JIT_OUTPUT_KIND_EXECUTABLE}@anchor{fd} @deffn {C Macro} GCC_JIT_OUTPUT_KIND_EXECUTABLE Compile the context to an executable. @@ -7935,7 +7933,7 @@ against. @c . @node ABI and API compatibility,Performance,Compiling a context,Topic Reference -@anchor{topics/compatibility doc}@anchor{fd}@anchor{topics/compatibility abi-and-api-compatibility}@anchor{fe} +@anchor{topics/compatibility doc}@anchor{fe}@anchor{topics/compatibility abi-and-api-compatibility}@anchor{ff} @section ABI and API compatibility @@ -7991,21 +7989,21 @@ Version definitions: @end menu @node Programmatically checking version,ABI symbol tags,,ABI and API compatibility -@anchor{topics/compatibility programmatically-checking-version}@anchor{ff} +@anchor{topics/compatibility programmatically-checking-version}@anchor{100} @subsection Programmatically checking version Client code can programmatically check libgccjit version using: @geindex gcc_jit_version_major (C function) -@anchor{topics/compatibility c gcc_jit_version_major}@anchor{100} +@anchor{topics/compatibility c gcc_jit_version_major}@anchor{101} @deffn {C Function} int gcc_jit_version_major (void) Return libgccjit major version. This is analogous to __GNUC__ in C code. @end deffn @geindex gcc_jit_version_minor (C function) -@anchor{topics/compatibility c gcc_jit_version_minor}@anchor{101} +@anchor{topics/compatibility c gcc_jit_version_minor}@anchor{102} @deffn {C Function} int gcc_jit_version_minor (void) Return libgccjit minor version. This is analogous to @@ -8013,7 +8011,7 @@ __GNUC_MINOR__ in C code. @end deffn @geindex gcc_jit_version_patchlevel (C function) -@anchor{topics/compatibility c gcc_jit_version_patchlevel}@anchor{102} +@anchor{topics/compatibility c gcc_jit_version_patchlevel}@anchor{103} @deffn {C Function} int gcc_jit_version_patchlevel (void) Return libgccjit patchlevel version. This is analogous to @@ -8028,7 +8026,7 @@ These entry points has been added with @code{LIBGCCJIT_ABI_13} @end cartouche @node ABI symbol tags,,Programmatically checking version,ABI and API compatibility -@anchor{topics/compatibility abi-symbol-tags}@anchor{103} +@anchor{topics/compatibility abi-symbol-tags}@anchor{104} @subsection ABI symbol tags @@ -8055,7 +8053,7 @@ Newer releases use the following tags. @end menu @node LIBGCCJIT_ABI_0,LIBGCCJIT_ABI_1,,ABI symbol tags -@anchor{topics/compatibility id1}@anchor{104}@anchor{topics/compatibility libgccjit-abi-0}@anchor{105} +@anchor{topics/compatibility id1}@anchor{105}@anchor{topics/compatibility libgccjit-abi-0}@anchor{106} @subsubsection @code{LIBGCCJIT_ABI_0} @@ -8067,7 +8065,7 @@ continue to work, with this being handled transparently by the linker (see this post@footnote{https://gcc.gnu.org/ml/gcc-patches/2015-06/msg02126.html}) @node LIBGCCJIT_ABI_1,LIBGCCJIT_ABI_2,LIBGCCJIT_ABI_0,ABI symbol tags -@anchor{topics/compatibility id2}@anchor{106}@anchor{topics/compatibility libgccjit-abi-1}@anchor{73} +@anchor{topics/compatibility id2}@anchor{107}@anchor{topics/compatibility libgccjit-abi-1}@anchor{73} @subsubsection @code{LIBGCCJIT_ABI_1} @@ -8075,7 +8073,7 @@ continue to work, with this being handled transparently by the linker @ref{72,,gcc_jit_context_add_command_line_option()} @node LIBGCCJIT_ABI_2,LIBGCCJIT_ABI_3,LIBGCCJIT_ABI_1,ABI symbol tags -@anchor{topics/compatibility id3}@anchor{107}@anchor{topics/compatibility libgccjit-abi-2}@anchor{6c} +@anchor{topics/compatibility id3}@anchor{108}@anchor{topics/compatibility libgccjit-abi-2}@anchor{6c} @subsubsection @code{LIBGCCJIT_ABI_2} @@ -8083,7 +8081,7 @@ continue to work, with this being handled transparently by the linker @ref{6b,,gcc_jit_context_set_bool_allow_unreachable_blocks()} @node LIBGCCJIT_ABI_3,LIBGCCJIT_ABI_4,LIBGCCJIT_ABI_2,ABI symbol tags -@anchor{topics/compatibility id4}@anchor{108}@anchor{topics/compatibility libgccjit-abi-3}@anchor{ec} +@anchor{topics/compatibility id4}@anchor{109}@anchor{topics/compatibility libgccjit-abi-3}@anchor{ed} @subsubsection @code{LIBGCCJIT_ABI_3} @@ -8096,18 +8094,18 @@ entrypoints: @itemize * @item -@ref{e9,,gcc_jit_block_end_with_switch()} +@ref{ea,,gcc_jit_block_end_with_switch()} @item -@ref{ea,,gcc_jit_case_as_object()} +@ref{eb,,gcc_jit_case_as_object()} @item -@ref{eb,,gcc_jit_context_new_case()} +@ref{ec,,gcc_jit_context_new_case()} @end itemize @end quotation @node LIBGCCJIT_ABI_4,LIBGCCJIT_ABI_5,LIBGCCJIT_ABI_3,ABI symbol tags -@anchor{topics/compatibility id5}@anchor{109}@anchor{topics/compatibility libgccjit-abi-4}@anchor{10a} +@anchor{topics/compatibility id5}@anchor{10a}@anchor{topics/compatibility libgccjit-abi-4}@anchor{10b} @subsubsection @code{LIBGCCJIT_ABI_4} @@ -8120,30 +8118,30 @@ entrypoints: @itemize * @item -@ref{10b,,gcc_jit_context_get_timer()} +@ref{10c,,gcc_jit_context_get_timer()} @item -@ref{10c,,gcc_jit_context_set_timer()} +@ref{10d,,gcc_jit_context_set_timer()} @item -@ref{10d,,gcc_jit_timer_new()} +@ref{10e,,gcc_jit_timer_new()} @item -@ref{10e,,gcc_jit_timer_release()} +@ref{10f,,gcc_jit_timer_release()} @item -@ref{10f,,gcc_jit_timer_push()} +@ref{110,,gcc_jit_timer_push()} @item -@ref{110,,gcc_jit_timer_pop()} +@ref{111,,gcc_jit_timer_pop()} @item -@ref{111,,gcc_jit_timer_print()} +@ref{112,,gcc_jit_timer_print()} @end itemize @end quotation @node LIBGCCJIT_ABI_5,LIBGCCJIT_ABI_6,LIBGCCJIT_ABI_4,ABI symbol tags -@anchor{topics/compatibility id6}@anchor{112}@anchor{topics/compatibility libgccjit-abi-5}@anchor{6e} +@anchor{topics/compatibility id6}@anchor{113}@anchor{topics/compatibility libgccjit-abi-5}@anchor{6e} @subsubsection @code{LIBGCCJIT_ABI_5} @@ -8151,15 +8149,15 @@ entrypoints: @ref{6d,,gcc_jit_context_set_bool_use_external_driver()} @node LIBGCCJIT_ABI_6,LIBGCCJIT_ABI_7,LIBGCCJIT_ABI_5,ABI symbol tags -@anchor{topics/compatibility id7}@anchor{113}@anchor{topics/compatibility libgccjit-abi-6}@anchor{bd} +@anchor{topics/compatibility id7}@anchor{114}@anchor{topics/compatibility libgccjit-abi-6}@anchor{be} @subsubsection @code{LIBGCCJIT_ABI_6} @code{LIBGCCJIT_ABI_6} covers the addition of -@ref{bc,,gcc_jit_rvalue_set_bool_require_tail_call()} +@ref{bd,,gcc_jit_rvalue_set_bool_require_tail_call()} @node LIBGCCJIT_ABI_7,LIBGCCJIT_ABI_8,LIBGCCJIT_ABI_6,ABI symbol tags -@anchor{topics/compatibility id8}@anchor{114}@anchor{topics/compatibility libgccjit-abi-7}@anchor{83} +@anchor{topics/compatibility id8}@anchor{115}@anchor{topics/compatibility libgccjit-abi-7}@anchor{83} @subsubsection @code{LIBGCCJIT_ABI_7} @@ -8167,7 +8165,7 @@ entrypoints: @ref{82,,gcc_jit_type_get_aligned()} @node LIBGCCJIT_ABI_8,LIBGCCJIT_ABI_9,LIBGCCJIT_ABI_7,ABI symbol tags -@anchor{topics/compatibility id9}@anchor{115}@anchor{topics/compatibility libgccjit-abi-8}@anchor{86} +@anchor{topics/compatibility id9}@anchor{116}@anchor{topics/compatibility libgccjit-abi-8}@anchor{86} @subsubsection @code{LIBGCCJIT_ABI_8} @@ -8175,15 +8173,15 @@ entrypoints: @ref{85,,gcc_jit_type_get_vector()} @node LIBGCCJIT_ABI_9,LIBGCCJIT_ABI_10,LIBGCCJIT_ABI_8,ABI symbol tags -@anchor{topics/compatibility id10}@anchor{116}@anchor{topics/compatibility libgccjit-abi-9}@anchor{f0} +@anchor{topics/compatibility id10}@anchor{117}@anchor{topics/compatibility libgccjit-abi-9}@anchor{f1} @subsubsection @code{LIBGCCJIT_ABI_9} @code{LIBGCCJIT_ABI_9} covers the addition of -@ref{bf,,gcc_jit_function_get_address()} +@ref{c0,,gcc_jit_function_get_address()} @node LIBGCCJIT_ABI_10,LIBGCCJIT_ABI_11,LIBGCCJIT_ABI_9,ABI symbol tags -@anchor{topics/compatibility id11}@anchor{117}@anchor{topics/compatibility libgccjit-abi-10}@anchor{9f} +@anchor{topics/compatibility id11}@anchor{118}@anchor{topics/compatibility libgccjit-abi-10}@anchor{a0} @subsubsection @code{LIBGCCJIT_ABI_10} @@ -8191,7 +8189,7 @@ entrypoints: @ref{87,,gcc_jit_context_new_rvalue_from_vector()} @node LIBGCCJIT_ABI_11,LIBGCCJIT_ABI_12,LIBGCCJIT_ABI_10,ABI symbol tags -@anchor{topics/compatibility id12}@anchor{118}@anchor{topics/compatibility libgccjit-abi-11}@anchor{75} +@anchor{topics/compatibility id12}@anchor{119}@anchor{topics/compatibility libgccjit-abi-11}@anchor{75} @subsubsection @code{LIBGCCJIT_ABI_11} @@ -8199,7 +8197,7 @@ entrypoints: @ref{74,,gcc_jit_context_add_driver_option()} @node LIBGCCJIT_ABI_12,LIBGCCJIT_ABI_13,LIBGCCJIT_ABI_11,ABI symbol tags -@anchor{topics/compatibility libgccjit-abi-12}@anchor{119} +@anchor{topics/compatibility id13}@anchor{11a}@anchor{topics/compatibility libgccjit-abi-12}@anchor{8d} @subsubsection @code{LIBGCCJIT_ABI_12} @@ -8207,7 +8205,7 @@ entrypoints: @ref{8c,,gcc_jit_context_new_bitfield()} @node LIBGCCJIT_ABI_13,,LIBGCCJIT_ABI_12,ABI symbol tags -@anchor{topics/compatibility libgccjit-abi-13}@anchor{11a} +@anchor{topics/compatibility id14}@anchor{11b}@anchor{topics/compatibility libgccjit-abi-13}@anchor{11c} @subsubsection @code{LIBGCCJIT_ABI_13} @@ -8220,13 +8218,13 @@ entrypoints: @itemize * @item -@ref{100,,gcc_jit_version_major()} +@ref{101,,gcc_jit_version_major()} @item -@ref{101,,gcc_jit_version_minor()} +@ref{102,,gcc_jit_version_minor()} @item -@ref{102,,gcc_jit_version_patchlevel()} +@ref{103,,gcc_jit_version_patchlevel()} @end itemize @end quotation @@ -8248,7 +8246,7 @@ entrypoints: @c . @node Performance,,ABI and API compatibility,Topic Reference -@anchor{topics/performance doc}@anchor{11b}@anchor{topics/performance performance}@anchor{11c} +@anchor{topics/performance doc}@anchor{11d}@anchor{topics/performance performance}@anchor{11e} @section Performance @@ -8258,14 +8256,14 @@ entrypoints: @end menu @node The timing API,,,Performance -@anchor{topics/performance the-timing-api}@anchor{11d} +@anchor{topics/performance the-timing-api}@anchor{11f} @subsection The timing API As of GCC 6, libgccjit exposes a timing API, for printing reports on how long was spent in different parts of code. -You can create a @ref{11e,,gcc_jit_timer} instance, which will +You can create a @ref{120,,gcc_jit_timer} instance, which will measure time spent since its creation. The timer maintains a stack of “timer items”: as control flow moves through your code, you can push and pop named items relating to your code onto the stack, and the timer @@ -8363,7 +8361,7 @@ Client items: The exact format is intended to be human-readable, and is subject to change. @geindex LIBGCCJIT_HAVE_TIMING_API (C macro) -@anchor{topics/performance c LIBGCCJIT_HAVE_TIMING_API}@anchor{11f} +@anchor{topics/performance c LIBGCCJIT_HAVE_TIMING_API}@anchor{121} @deffn {C Macro} LIBGCCJIT_HAVE_TIMING_API The timer API was added to libgccjit in GCC 6. @@ -8380,21 +8378,21 @@ gcc_jit_context_set_timer (ctxt, t); @end deffn @geindex gcc_jit_timer (C type) -@anchor{topics/performance c gcc_jit_timer}@anchor{11e} +@anchor{topics/performance c gcc_jit_timer}@anchor{120} @deffn {C Type} gcc_jit_timer @end deffn @geindex gcc_jit_timer_new (C function) -@anchor{topics/performance c gcc_jit_timer_new}@anchor{10d} +@anchor{topics/performance c gcc_jit_timer_new}@anchor{10e} @deffn {C Function} gcc_jit_timer * gcc_jit_timer_new (void) -Create a @ref{11e,,gcc_jit_timer} instance, and start timing: +Create a @ref{120,,gcc_jit_timer} instance, and start timing: @example gcc_jit_timer *t = gcc_jit_timer_new (); @end example -This API entrypoint was added in @ref{10a,,LIBGCCJIT_ABI_4}; you can test +This API entrypoint was added in @ref{10b,,LIBGCCJIT_ABI_4}; you can test for its presence using @example @@ -8403,10 +8401,10 @@ for its presence using @end deffn @geindex gcc_jit_timer_release (C function) -@anchor{topics/performance c gcc_jit_timer_release}@anchor{10e} +@anchor{topics/performance c gcc_jit_timer_release}@anchor{10f} @deffn {C Function} void gcc_jit_timer_release (gcc_jit_timer@w{ }*timer) -Release a @ref{11e,,gcc_jit_timer} instance: +Release a @ref{120,,gcc_jit_timer} instance: @example gcc_jit_timer_release (t); @@ -8414,7 +8412,7 @@ gcc_jit_timer_release (t); This should be called exactly once on a timer. -This API entrypoint was added in @ref{10a,,LIBGCCJIT_ABI_4}; you can test +This API entrypoint was added in @ref{10b,,LIBGCCJIT_ABI_4}; you can test for its presence using @example @@ -8423,10 +8421,10 @@ for its presence using @end deffn @geindex gcc_jit_context_set_timer (C function) -@anchor{topics/performance c gcc_jit_context_set_timer}@anchor{10c} +@anchor{topics/performance c gcc_jit_context_set_timer}@anchor{10d} @deffn {C Function} void gcc_jit_context_set_timer (gcc_jit_context@w{ }*ctxt, gcc_jit_timer@w{ }*timer) -Associate a @ref{11e,,gcc_jit_timer} instance with a context: +Associate a @ref{120,,gcc_jit_timer} instance with a context: @example gcc_jit_context_set_timer (ctxt, t); @@ -8439,7 +8437,7 @@ Timers have no locking, so if you have a multithreaded program, you must provide your own locks if more than one thread could be working with the same timer via timer-associated contexts. -This API entrypoint was added in @ref{10a,,LIBGCCJIT_ABI_4}; you can test +This API entrypoint was added in @ref{10b,,LIBGCCJIT_ABI_4}; you can test for its presence using @example @@ -8448,12 +8446,12 @@ for its presence using @end deffn @geindex gcc_jit_context_get_timer (C function) -@anchor{topics/performance c gcc_jit_context_get_timer}@anchor{10b} +@anchor{topics/performance c gcc_jit_context_get_timer}@anchor{10c} @deffn {C Function} gcc_jit_timer *gcc_jit_context_get_timer (gcc_jit_context@w{ }*ctxt) Get the timer associated with a context (if any). -This API entrypoint was added in @ref{10a,,LIBGCCJIT_ABI_4}; you can test +This API entrypoint was added in @ref{10b,,LIBGCCJIT_ABI_4}; you can test for its presence using @example @@ -8462,7 +8460,7 @@ for its presence using @end deffn @geindex gcc_jit_timer_push (C function) -@anchor{topics/performance c gcc_jit_timer_push}@anchor{10f} +@anchor{topics/performance c gcc_jit_timer_push}@anchor{110} @deffn {C Function} void gcc_jit_timer_push (gcc_jit_timer@w{ }*timer, const char@w{ }*item_name) Push the given item onto the timer’s stack: @@ -8473,7 +8471,7 @@ run_the_code (ctxt, result); gcc_jit_timer_pop (t, "running code"); @end example -This API entrypoint was added in @ref{10a,,LIBGCCJIT_ABI_4}; you can test +This API entrypoint was added in @ref{10b,,LIBGCCJIT_ABI_4}; you can test for its presence using @example @@ -8482,7 +8480,7 @@ for its presence using @end deffn @geindex gcc_jit_timer_pop (C function) -@anchor{topics/performance c gcc_jit_timer_pop}@anchor{110} +@anchor{topics/performance c gcc_jit_timer_pop}@anchor{111} @deffn {C Function} void gcc_jit_timer_pop (gcc_jit_timer@w{ }*timer, const char@w{ }*item_name) Pop the top item from the timer’s stack. @@ -8490,7 +8488,7 @@ Pop the top item from the timer’s stack. If “item_name” is provided, it must match that of the top item. Alternatively, @code{NULL} can be passed in, to suppress checking. -This API entrypoint was added in @ref{10a,,LIBGCCJIT_ABI_4}; you can test +This API entrypoint was added in @ref{10b,,LIBGCCJIT_ABI_4}; you can test for its presence using @example @@ -8499,13 +8497,13 @@ for its presence using @end deffn @geindex gcc_jit_timer_print (C function) -@anchor{topics/performance c gcc_jit_timer_print}@anchor{111} +@anchor{topics/performance c gcc_jit_timer_print}@anchor{112} @deffn {C Function} void gcc_jit_timer_print (gcc_jit_timer@w{ }*timer, FILE@w{ }*f_out) Print timing information to the given stream about activity since the timer was started. -This API entrypoint was added in @ref{10a,,LIBGCCJIT_ABI_4}; you can test +This API entrypoint was added in @ref{10b,,LIBGCCJIT_ABI_4}; you can test for its presence using @example @@ -8531,7 +8529,7 @@ for its presence using @c . @node C++ bindings for libgccjit,Internals,Topic Reference,Top -@anchor{cp/index doc}@anchor{120}@anchor{cp/index c-bindings-for-libgccjit}@anchor{121} +@anchor{cp/index doc}@anchor{122}@anchor{cp/index c-bindings-for-libgccjit}@anchor{123} @chapter C++ bindings for libgccjit @@ -8575,7 +8573,7 @@ Contents: @end menu @node Tutorial<2>,Topic Reference<2>,,C++ bindings for libgccjit -@anchor{cp/intro/index doc}@anchor{122}@anchor{cp/intro/index tutorial}@anchor{123} +@anchor{cp/intro/index doc}@anchor{124}@anchor{cp/intro/index tutorial}@anchor{125} @section Tutorial @@ -8605,7 +8603,7 @@ Contents: @end menu @node Tutorial part 1 “Hello world”<2>,Tutorial part 2 Creating a trivial machine code function<2>,,Tutorial<2> -@anchor{cp/intro/tutorial01 doc}@anchor{124}@anchor{cp/intro/tutorial01 tutorial-part-1-hello-world}@anchor{125} +@anchor{cp/intro/tutorial01 doc}@anchor{126}@anchor{cp/intro/tutorial01 tutorial-part-1-hello-world}@anchor{127} @subsection Tutorial part 1: “Hello world” @@ -8768,7 +8766,7 @@ hello world @c . @node Tutorial part 2 Creating a trivial machine code function<2>,Tutorial part 3 Loops and variables<2>,Tutorial part 1 “Hello world”<2>,Tutorial<2> -@anchor{cp/intro/tutorial02 doc}@anchor{126}@anchor{cp/intro/tutorial02 tutorial-part-2-creating-a-trivial-machine-code-function}@anchor{127} +@anchor{cp/intro/tutorial02 doc}@anchor{128}@anchor{cp/intro/tutorial02 tutorial-part-2-creating-a-trivial-machine-code-function}@anchor{129} @subsection Tutorial part 2: Creating a trivial machine code function @@ -8790,10 +8788,10 @@ First we need to include the relevant header: @end example All state associated with compilation is associated with a -@ref{128,,gccjit;;context}, which is a thin C++ wrapper around the C API’s +@ref{12a,,gccjit;;context}, which is a thin C++ wrapper around the C API’s @ref{8,,gcc_jit_context *}. -Create one using @ref{129,,gccjit;;context;;acquire()}: +Create one using @ref{12b,,gccjit;;context;;acquire()}: @example gccjit::context ctxt; @@ -8803,19 +8801,19 @@ ctxt = gccjit::context::acquire (); The JIT library has a system of types. It is statically-typed: every expression is of a specific type, fixed at compile-time. In our example, all of the expressions are of the C @cite{int} type, so let’s obtain this from -the context, as a @ref{12a,,gccjit;;type}, using -@ref{12b,,gccjit;;context;;get_type()}: +the context, as a @ref{12c,,gccjit;;type}, using +@ref{12d,,gccjit;;context;;get_type()}: @example gccjit::type int_type = ctxt.get_type (GCC_JIT_TYPE_INT); @end example -@ref{12a,,gccjit;;type} is an example of a “contextual” object: every -entity in the API is associated with a @ref{128,,gccjit;;context}. +@ref{12c,,gccjit;;type} is an example of a “contextual” object: every +entity in the API is associated with a @ref{12a,,gccjit;;context}. Memory management is easy: all such “contextual” objects are automatically cleaned up for you when the context is released, using -@ref{12c,,gccjit;;context;;release()}: +@ref{12e,,gccjit;;context;;release()}: @example ctxt.release (); @@ -8842,9 +8840,9 @@ The C++ class hierarchy within the @code{gccjit} namespace looks like this: +- param @end example -One thing you can do with a @ref{12d,,gccjit;;object} is +One thing you can do with a @ref{12f,,gccjit;;object} is to ask it for a human-readable description as a @code{std::string}, using -@ref{12e,,gccjit;;object;;get_debug_string()}: +@ref{130,,gccjit;;object;;get_debug_string()}: @example printf ("obj: %s\n", obj.get_debug_string ().c_str ()); @@ -8860,7 +8858,7 @@ This is invaluable when debugging. Let’s create the function. To do so, we first need to construct its single parameter, specifying its type and giving it a name, -using @ref{12f,,gccjit;;context;;new_param()}: +using @ref{131,,gccjit;;context;;new_param()}: @example gccjit::param param_i = ctxt.new_param (int_type, "i"); @@ -8901,7 +8899,7 @@ gccjit::block block = func.new_block (); Our basic block is relatively simple: it immediately terminates by returning the value of an expression. -We can build the expression using @ref{130,,gccjit;;context;;new_binary_op()}: +We can build the expression using @ref{132,,gccjit;;context;;new_binary_op()}: @example gccjit::rvalue expr = @@ -8910,9 +8908,9 @@ gccjit::rvalue expr = param_i, param_i); @end example -A @ref{131,,gccjit;;rvalue} is another example of a -@ref{12d,,gccjit;;object} subclass. As before, we can print it with -@ref{12e,,gccjit;;object;;get_debug_string()}. +A @ref{133,,gccjit;;rvalue} is another example of a +@ref{12f,,gccjit;;object} subclass. As before, we can print it with +@ref{130,,gccjit;;object;;get_debug_string()}. @example printf ("expr: %s\n", expr.get_debug_string ().c_str ()); @@ -8924,7 +8922,7 @@ giving this output: expr: i * i @end example -Note that @ref{131,,gccjit;;rvalue} provides numerous overloaded operators +Note that @ref{133,,gccjit;;rvalue} provides numerous overloaded operators which can be used to dramatically reduce the amount of typing needed. We can build the above binary operation more directly with this one-liner: @@ -8941,7 +8939,7 @@ block.end_with_return (expr); @end example OK, we’ve populated the context. We can now compile it using -@ref{132,,gccjit;;context;;compile()}: +@ref{134,,gccjit;;context;;compile()}: @example gcc_jit_result *result; @@ -8983,12 +8981,12 @@ result: 25 @end menu @node Options<3>,Full example<3>,,Tutorial part 2 Creating a trivial machine code function<2> -@anchor{cp/intro/tutorial02 options}@anchor{133} +@anchor{cp/intro/tutorial02 options}@anchor{135} @subsubsection Options To get more information on what’s going on, you can set debugging flags -on the context using @ref{134,,gccjit;;context;;set_bool_option()}. +on the context using @ref{136,,gccjit;;context;;set_bool_option()}. @c (I'm deliberately not mentioning @c :c:macro:`GCC_JIT_BOOL_OPTION_DUMP_INITIAL_TREE` here since I think @@ -9052,7 +9050,7 @@ square: By default, no optimizations are performed, the equivalent of GCC’s @cite{-O0} option. We can turn things up to e.g. @cite{-O3} by calling -@ref{135,,gccjit;;context;;set_int_option()} with +@ref{137,,gccjit;;context;;set_int_option()} with @ref{1f,,GCC_JIT_INT_OPTION_OPTIMIZATION_LEVEL}: @example @@ -9082,7 +9080,7 @@ square: Naturally this has only a small effect on such a trivial function. @node Full example<3>,,Options<3>,Tutorial part 2 Creating a trivial machine code function<2> -@anchor{cp/intro/tutorial02 full-example}@anchor{136} +@anchor{cp/intro/tutorial02 full-example}@anchor{138} @subsubsection Full example @@ -9220,7 +9218,7 @@ result: 25 @c . @node Tutorial part 3 Loops and variables<2>,Tutorial part 4 Adding JIT-compilation to a toy interpreter<2>,Tutorial part 2 Creating a trivial machine code function<2>,Tutorial<2> -@anchor{cp/intro/tutorial03 doc}@anchor{137}@anchor{cp/intro/tutorial03 tutorial-part-3-loops-and-variables}@anchor{138} +@anchor{cp/intro/tutorial03 doc}@anchor{139}@anchor{cp/intro/tutorial03 tutorial-part-3-loops-and-variables}@anchor{13a} @subsection Tutorial part 3: Loops and variables @@ -9276,7 +9274,7 @@ Here’s what the final control flow graph will look like: @end quotation As before, we include the libgccjit++ header and make a -@ref{128,,gccjit;;context}. +@ref{12a,,gccjit;;context}. @example #include @@ -9330,18 +9328,18 @@ gccjit::function func = @end menu @node Expressions lvalues and rvalues<2>,Control flow<2>,,Tutorial part 3 Loops and variables<2> -@anchor{cp/intro/tutorial03 expressions-lvalues-and-rvalues}@anchor{139} +@anchor{cp/intro/tutorial03 expressions-lvalues-and-rvalues}@anchor{13b} @subsubsection Expressions: lvalues and rvalues -The base class of expression is the @ref{131,,gccjit;;rvalue}, +The base class of expression is the @ref{133,,gccjit;;rvalue}, representing an expression that can be on the @emph{right}-hand side of an assignment: a value that can be computed somehow, and assigned @emph{to} a storage area (such as a variable). It has a specific -@ref{12a,,gccjit;;type}. +@ref{12c,,gccjit;;type}. -Anothe important class is @ref{13a,,gccjit;;lvalue}. -A @ref{13a,,gccjit;;lvalue}. is something that can of the @emph{left}-hand +Anothe important class is @ref{13c,,gccjit;;lvalue}. +A @ref{13c,,gccjit;;lvalue}. is something that can of the @emph{left}-hand side of an assignment: a storage area (such as a variable). In other words, every assignment can be thought of as: @@ -9350,8 +9348,8 @@ In other words, every assignment can be thought of as: LVALUE = RVALUE; @end example -Note that @ref{13a,,gccjit;;lvalue} is a subclass of -@ref{131,,gccjit;;rvalue}, where in an assignment of the form: +Note that @ref{13c,,gccjit;;lvalue} is a subclass of +@ref{133,,gccjit;;rvalue}, where in an assignment of the form: @example LVALUE_A = LVALUE_B; @@ -9381,7 +9379,7 @@ gccjit::rvalue expr = gccjit::rvalue expr = param_i * param_i; @end example -which is a @ref{131,,gccjit;;rvalue}, and +which is a @ref{133,,gccjit;;rvalue}, and @end quotation @@ -9389,15 +9387,15 @@ which is a @ref{131,,gccjit;;rvalue}, and @item the various function parameters: @cite{param_i} and @cite{param_n}, instances of -@ref{13b,,gccjit;;param}, which is a subclass of @ref{13a,,gccjit;;lvalue} -(and, in turn, of @ref{131,,gccjit;;rvalue}): +@ref{13d,,gccjit;;param}, which is a subclass of @ref{13c,,gccjit;;lvalue} +(and, in turn, of @ref{133,,gccjit;;rvalue}): we can both read from and write to function parameters within the body of a function. @end enumerate Our new example has a new kind of expression: we have two local variables. We create them by calling -@ref{13c,,gccjit;;function;;new_local()}, supplying a type and a name: +@ref{13e,,gccjit;;function;;new_local()}, supplying a type and a name: @example /* Build locals: */ @@ -9405,7 +9403,7 @@ gccjit::lvalue i = func.new_local (the_type, "i"); gccjit::lvalue sum = func.new_local (the_type, "sum"); @end example -These are instances of @ref{13a,,gccjit;;lvalue} - they can be read from +These are instances of @ref{13c,,gccjit;;lvalue} - they can be read from and written to. Note that there is no precanned way to create @emph{and} initialize a variable @@ -9419,7 +9417,7 @@ Instead, having added the local to the function, we have to separately add an assignment of @cite{0} to @cite{local_i} at the beginning of the function. @node Control flow<2>,Visualizing the control flow graph<2>,Expressions lvalues and rvalues<2>,Tutorial part 3 Loops and variables<2> -@anchor{cp/intro/tutorial03 control-flow}@anchor{13d} +@anchor{cp/intro/tutorial03 control-flow}@anchor{13f} @subsubsection Control flow @@ -9442,8 +9440,8 @@ the body of the loop after the loop terminates (@cite{return sum}) @end enumerate -so we create these as @ref{13e,,gccjit;;block} instances within the -@ref{13f,,gccjit;;function}: +so we create these as @ref{140,,gccjit;;block} instances within the +@ref{141,,gccjit;;function}: @example gccjit::block b_initial = func.new_block ("initial"); @@ -9456,8 +9454,8 @@ We now populate each block with statements. The entry block @cite{b_initial} consists of initializations followed by a jump to the conditional. We assign @cite{0} to @cite{i} and to @cite{sum}, using -@ref{140,,gccjit;;block;;add_assignment()} to add -an assignment statement, and using @ref{141,,gccjit;;context;;zero()} to get +@ref{142,,gccjit;;block;;add_assignment()} to add +an assignment statement, and using @ref{143,,gccjit;;context;;zero()} to get the constant value @cite{0} for the relevant type for the right-hand side of the assignment: @@ -9478,9 +9476,9 @@ b_initial.end_with_jump (b_loop_cond); The conditional block is equivalent to the line @cite{while (i < n)} from our C example. It contains a single statement: a conditional, which jumps to one of two destination blocks depending on a boolean -@ref{131,,gccjit;;rvalue}, in this case the comparison of @cite{i} and @cite{n}. +@ref{133,,gccjit;;rvalue}, in this case the comparison of @cite{i} and @cite{n}. -We could build the comparison using @ref{142,,gccjit;;context;;new_comparison()}: +We could build the comparison using @ref{144,,gccjit;;context;;new_comparison()}: @example gccjit::rvalue guard = @@ -9489,7 +9487,7 @@ gccjit::rvalue guard = @end example and can then use this to add @cite{b_loop_cond}’s sole statement, via -@ref{143,,gccjit;;block;;end_with_conditional()}: +@ref{145,,gccjit;;block;;end_with_conditional()}: @example b_loop_cond.end_with_conditional (guard, @@ -9497,7 +9495,7 @@ b_loop_cond.end_with_conditional (guard, b_loop_body); // on_false @end example -However @ref{131,,gccjit;;rvalue} has overloaded operators for this, so we +However @ref{133,,gccjit;;rvalue} has overloaded operators for this, so we express the conditional as @example @@ -9517,7 +9515,7 @@ Next, we populate the body of the loop. The C statement @cite{sum += i * i;} is an assignment operation, where an lvalue is modified “in-place”. We use -@ref{144,,gccjit;;block;;add_assignment_op()} to handle these operations: +@ref{146,,gccjit;;block;;add_assignment_op()} to handle these operations: @example /* sum += i * i */ @@ -9541,7 +9539,7 @@ b_loop_body.add_assignment_op (i, @cartouche @quotation Note For numeric constants other than 0 or 1, we could use -@ref{145,,gccjit;;context;;new_rvalue()}, which has overloads +@ref{147,,gccjit;;context;;new_rvalue()}, which has overloads for both @code{int} and @code{double}. @end quotation @end cartouche @@ -9607,12 +9605,12 @@ result: 285 @end example @node Visualizing the control flow graph<2>,Full example<4>,Control flow<2>,Tutorial part 3 Loops and variables<2> -@anchor{cp/intro/tutorial03 visualizing-the-control-flow-graph}@anchor{146} +@anchor{cp/intro/tutorial03 visualizing-the-control-flow-graph}@anchor{148} @subsubsection Visualizing the control flow graph You can see the control flow graph of a function using -@ref{147,,gccjit;;function;;dump_to_dot()}: +@ref{149,,gccjit;;function;;dump_to_dot()}: @example func.dump_to_dot ("/tmp/sum-of-squares.dot"); @@ -9642,7 +9640,7 @@ install it with @cite{yum install python-xdot}): @end quotation @node Full example<4>,,Visualizing the control flow graph<2>,Tutorial part 3 Loops and variables<2> -@anchor{cp/intro/tutorial03 full-example}@anchor{148} +@anchor{cp/intro/tutorial03 full-example}@anchor{14a} @subsubsection Full example @@ -9820,7 +9818,7 @@ loop_test returned: 285 @c . @node Tutorial part 4 Adding JIT-compilation to a toy interpreter<2>,,Tutorial part 3 Loops and variables<2>,Tutorial<2> -@anchor{cp/intro/tutorial04 doc}@anchor{149}@anchor{cp/intro/tutorial04 tutorial-part-4-adding-jit-compilation-to-a-toy-interpreter}@anchor{14a} +@anchor{cp/intro/tutorial04 doc}@anchor{14b}@anchor{cp/intro/tutorial04 tutorial-part-4-adding-jit-compilation-to-a-toy-interpreter}@anchor{14c} @subsection Tutorial part 4: Adding JIT-compilation to a toy interpreter @@ -9842,7 +9840,7 @@ to it. @end menu @node Our toy interpreter<2>,Compiling to machine code<2>,,Tutorial part 4 Adding JIT-compilation to a toy interpreter<2> -@anchor{cp/intro/tutorial04 our-toy-interpreter}@anchor{14b} +@anchor{cp/intro/tutorial04 our-toy-interpreter}@anchor{14d} @subsubsection Our toy interpreter @@ -10244,7 +10242,7 @@ toyvm_function::interpret (int arg, FILE *trace) @end quotation @node Compiling to machine code<2>,Setting things up<2>,Our toy interpreter<2>,Tutorial part 4 Adding JIT-compilation to a toy interpreter<2> -@anchor{cp/intro/tutorial04 compiling-to-machine-code}@anchor{14c} +@anchor{cp/intro/tutorial04 compiling-to-machine-code}@anchor{14e} @subsubsection Compiling to machine code @@ -10314,7 +10312,7 @@ This means our compiler has the following state: @end quotation @node Setting things up<2>,Populating the function<2>,Compiling to machine code<2>,Tutorial part 4 Adding JIT-compilation to a toy interpreter<2> -@anchor{cp/intro/tutorial04 setting-things-up}@anchor{14d} +@anchor{cp/intro/tutorial04 setting-things-up}@anchor{14f} @subsubsection Setting things up @@ -10404,7 +10402,7 @@ compilation_state::add_pop (gccjit::block block, @end quotation We will support single-stepping through the generated code in the -debugger, so we need to create @ref{14e,,gccjit;;location} instances, one +debugger, so we need to create @ref{150,,gccjit;;location} instances, one per operation in the source code. These will reference the lines of e.g. @code{factorial.toy}. @@ -10464,7 +10462,7 @@ We create the locals within the function. @end quotation @node Populating the function<2>,Verifying the control flow graph<2>,Setting things up<2>,Tutorial part 4 Adding JIT-compilation to a toy interpreter<2> -@anchor{cp/intro/tutorial04 populating-the-function}@anchor{14f} +@anchor{cp/intro/tutorial04 populating-the-function}@anchor{151} @subsubsection Populating the function @@ -10577,7 +10575,7 @@ stack into @code{y} instead erroneously assigned it to @code{x}, leaving @code{y uninitialized. To track this kind of thing down, we can use -@ref{150,,gccjit;;block;;add_comment()} to add descriptive comments +@ref{152,,gccjit;;block;;add_comment()} to add descriptive comments to the internal representation. This is invaluable when looking through the generated IR for, say @code{factorial}: @@ -10717,14 +10715,14 @@ to the next block. This is analogous to simply incrementing the program counter. @node Verifying the control flow graph<2>,Compiling the context<2>,Populating the function<2>,Tutorial part 4 Adding JIT-compilation to a toy interpreter<2> -@anchor{cp/intro/tutorial04 verifying-the-control-flow-graph}@anchor{151} +@anchor{cp/intro/tutorial04 verifying-the-control-flow-graph}@anchor{153} @subsubsection Verifying the control flow graph Having finished looping over the blocks, the context is complete. As before, we can verify that the control flow and statements are sane by -using @ref{147,,gccjit;;function;;dump_to_dot()}: +using @ref{149,,gccjit;;function;;dump_to_dot()}: @example fn.dump_to_dot ("/tmp/factorial.dot"); @@ -10746,7 +10744,7 @@ errors in our compiler. @end quotation @node Compiling the context<2>,Single-stepping through the generated code<2>,Verifying the control flow graph<2>,Tutorial part 4 Adding JIT-compilation to a toy interpreter<2> -@anchor{cp/intro/tutorial04 compiling-the-context}@anchor{152} +@anchor{cp/intro/tutorial04 compiling-the-context}@anchor{154} @subsubsection Compiling the context @@ -10797,7 +10795,7 @@ private: @end quotation @node Single-stepping through the generated code<2>,Examining the generated code<2>,Compiling the context<2>,Tutorial part 4 Adding JIT-compilation to a toy interpreter<2> -@anchor{cp/intro/tutorial04 single-stepping-through-the-generated-code}@anchor{153} +@anchor{cp/intro/tutorial04 single-stepping-through-the-generated-code}@anchor{155} @subsubsection Single-stepping through the generated code @@ -10811,14 +10809,14 @@ It’s possible to debug the generated code. To do this we need to both: @item Set up source code locations for our statements, so that we can meaningfully step through the code. We did this above by -calling @ref{154,,gccjit;;context;;new_location()} and using the +calling @ref{156,,gccjit;;context;;new_location()} and using the results. @item Enable the generation of debugging information, by setting @ref{42,,GCC_JIT_BOOL_OPTION_DEBUGINFO} on the -@ref{128,,gccjit;;context} via -@ref{134,,gccjit;;context;;set_bool_option()}: +@ref{12a,,gccjit;;context} via +@ref{136,,gccjit;;context;;set_bool_option()}: @example ctxt.set_bool_option (GCC_JIT_BOOL_OPTION_DEBUGINFO, 1); @@ -10882,14 +10880,14 @@ optimization level in a regular compiler. @end cartouche @node Examining the generated code<2>,Putting it all together<2>,Single-stepping through the generated code<2>,Tutorial part 4 Adding JIT-compilation to a toy interpreter<2> -@anchor{cp/intro/tutorial04 examining-the-generated-code}@anchor{155} +@anchor{cp/intro/tutorial04 examining-the-generated-code}@anchor{157} @subsubsection Examining the generated code How good is the optimized code? We can turn up optimizations, by calling -@ref{135,,gccjit;;context;;set_int_option()} with +@ref{137,,gccjit;;context;;set_int_option()} with @ref{1f,,GCC_JIT_INT_OPTION_OPTIMIZATION_LEVEL}: @example @@ -11057,7 +11055,7 @@ Note that the stack pushing and popping have been eliminated, as has the recursive call (in favor of an iteration). @node Putting it all together<2>,Behind the curtain How does our code get optimized?<2>,Examining the generated code<2>,Tutorial part 4 Adding JIT-compilation to a toy interpreter<2> -@anchor{cp/intro/tutorial04 putting-it-all-together}@anchor{156} +@anchor{cp/intro/tutorial04 putting-it-all-together}@anchor{158} @subsubsection Putting it all together @@ -11088,7 +11086,7 @@ compiler result: 55 @end example @node Behind the curtain How does our code get optimized?<2>,,Putting it all together<2>,Tutorial part 4 Adding JIT-compilation to a toy interpreter<2> -@anchor{cp/intro/tutorial04 behind-the-curtain-how-does-our-code-get-optimized}@anchor{157} +@anchor{cp/intro/tutorial04 behind-the-curtain-how-does-our-code-get-optimized}@anchor{159} @subsubsection Behind the curtain: How does our code get optimized? @@ -11266,7 +11264,7 @@ instr9: @} @end example -Note in the above how all the @ref{13e,,gccjit;;block} instances we +Note in the above how all the @ref{140,,gccjit;;block} instances we created have been consolidated into just 3 blocks in GCC’s internal representation: @code{initial}, @code{instr4} and @code{instr9}. @@ -11277,7 +11275,7 @@ representation: @code{initial}, @code{instr4} and @code{instr9}. @end menu @node Optimizing away stack manipulation<2>,Elimination of tail recursion<2>,,Behind the curtain How does our code get optimized?<2> -@anchor{cp/intro/tutorial04 optimizing-away-stack-manipulation}@anchor{158} +@anchor{cp/intro/tutorial04 optimizing-away-stack-manipulation}@anchor{15a} @subsubsection Optimizing away stack manipulation @@ -11541,7 +11539,7 @@ instr9: @end example @node Elimination of tail recursion<2>,,Optimizing away stack manipulation<2>,Behind the curtain How does our code get optimized?<2> -@anchor{cp/intro/tutorial04 elimination-of-tail-recursion}@anchor{159} +@anchor{cp/intro/tutorial04 elimination-of-tail-recursion}@anchor{15b} @subsubsection Elimination of tail recursion @@ -11624,7 +11622,7 @@ instr9: @c . @node Topic Reference<2>,,Tutorial<2>,C++ bindings for libgccjit -@anchor{cp/topics/index doc}@anchor{15a}@anchor{cp/topics/index topic-reference}@anchor{15b} +@anchor{cp/topics/index doc}@anchor{15c}@anchor{cp/topics/index topic-reference}@anchor{15d} @section Topic Reference @@ -11657,22 +11655,22 @@ instr9: @end menu @node Compilation contexts<2>,Objects<2>,,Topic Reference<2> -@anchor{cp/topics/contexts doc}@anchor{15c}@anchor{cp/topics/contexts compilation-contexts}@anchor{15d} +@anchor{cp/topics/contexts doc}@anchor{15e}@anchor{cp/topics/contexts compilation-contexts}@anchor{15f} @subsection Compilation contexts @geindex gccjit;;context (C++ class) -@anchor{cp/topics/contexts _CPPv4N6gccjit7contextE}@anchor{128}@anchor{cp/topics/contexts _CPPv3N6gccjit7contextE}@anchor{15e}@anchor{cp/topics/contexts _CPPv2N6gccjit7contextE}@anchor{15f}@anchor{cp/topics/contexts gccjit context}@anchor{160} +@anchor{cp/topics/contexts _CPPv4N6gccjit7contextE}@anchor{12a}@anchor{cp/topics/contexts _CPPv3N6gccjit7contextE}@anchor{160}@anchor{cp/topics/contexts _CPPv2N6gccjit7contextE}@anchor{161}@anchor{cp/topics/contexts gccjit context}@anchor{162} @deffn {C++ Class} gccjit::context @end deffn -The top-level of the C++ API is the @ref{128,,gccjit;;context} type. +The top-level of the C++ API is the @ref{12a,,gccjit;;context} type. -A @ref{128,,gccjit;;context} instance encapsulates the state of a +A @ref{12a,,gccjit;;context} instance encapsulates the state of a compilation. You can set up options on it, and add types, functions and code. -Invoking @ref{132,,gccjit;;context;;compile()} on it gives you a +Invoking @ref{134,,gccjit;;context;;compile()} on it gives you a @ref{16,,gcc_jit_result *}. It is a thin wrapper around the C API’s @ref{8,,gcc_jit_context *}. @@ -11687,7 +11685,7 @@ It is a thin wrapper around the C API’s @ref{8,,gcc_jit_context *}. @end menu @node Lifetime-management<2>,Thread-safety<2>,,Compilation contexts<2> -@anchor{cp/topics/contexts lifetime-management}@anchor{161} +@anchor{cp/topics/contexts lifetime-management}@anchor{163} @subsubsection Lifetime-management @@ -11696,17 +11694,17 @@ have their lifetime bounded by the context they are created within, and cleanup of such objects is done for you when the context is released. @geindex gccjit;;context;;acquire (C++ function) -@anchor{cp/topics/contexts _CPPv4N6gccjit7context7acquireEv}@anchor{129}@anchor{cp/topics/contexts _CPPv3N6gccjit7context7acquireEv}@anchor{162}@anchor{cp/topics/contexts _CPPv2N6gccjit7context7acquireEv}@anchor{163}@anchor{cp/topics/contexts gccjit context acquire}@anchor{164} -@deffn {C++ Function} gccjit::@ref{128,,context} gccjit::@ref{128,,context}::acquire () +@anchor{cp/topics/contexts _CPPv4N6gccjit7context7acquireEv}@anchor{12b}@anchor{cp/topics/contexts _CPPv3N6gccjit7context7acquireEv}@anchor{164}@anchor{cp/topics/contexts _CPPv2N6gccjit7context7acquireEv}@anchor{165}@anchor{cp/topics/contexts gccjit context acquire}@anchor{166} +@deffn {C++ Function} gccjit::@ref{12a,,context} gccjit::@ref{12a,,context}::acquire () -This function acquires a new @ref{128,,gccjit;;context} instance, +This function acquires a new @ref{12a,,gccjit;;context} instance, which is independent of any others that may be present within this process. @end deffn @geindex gccjit;;context;;release (C++ function) -@anchor{cp/topics/contexts _CPPv4N6gccjit7context7releaseEv}@anchor{12c}@anchor{cp/topics/contexts _CPPv3N6gccjit7context7releaseEv}@anchor{165}@anchor{cp/topics/contexts _CPPv2N6gccjit7context7releaseEv}@anchor{166}@anchor{cp/topics/contexts gccjit context release}@anchor{167} -@deffn {C++ Function} void gccjit::@ref{128,,context}::release () +@anchor{cp/topics/contexts _CPPv4N6gccjit7context7releaseEv}@anchor{12e}@anchor{cp/topics/contexts _CPPv3N6gccjit7context7releaseEv}@anchor{167}@anchor{cp/topics/contexts _CPPv2N6gccjit7context7releaseEv}@anchor{168}@anchor{cp/topics/contexts gccjit context release}@anchor{169} +@deffn {C++ Function} void gccjit::@ref{12a,,context}::release () This function releases all resources associated with the given context. Both the context itself and all of its @code{gccjit::object *} @@ -11722,8 +11720,8 @@ ctxt.release (); @end deffn @geindex gccjit;;context;;new_child_context (C++ function) -@anchor{cp/topics/contexts _CPPv4N6gccjit7context17new_child_contextEv}@anchor{168}@anchor{cp/topics/contexts _CPPv3N6gccjit7context17new_child_contextEv}@anchor{169}@anchor{cp/topics/contexts _CPPv2N6gccjit7context17new_child_contextEv}@anchor{16a}@anchor{cp/topics/contexts gccjit context new_child_context}@anchor{16b} -@deffn {C++ Function} gccjit::@ref{128,,context} gccjit::@ref{128,,context}::new_child_context () +@anchor{cp/topics/contexts _CPPv4N6gccjit7context17new_child_contextEv}@anchor{16a}@anchor{cp/topics/contexts _CPPv3N6gccjit7context17new_child_contextEv}@anchor{16b}@anchor{cp/topics/contexts _CPPv2N6gccjit7context17new_child_contextEv}@anchor{16c}@anchor{cp/topics/contexts gccjit context new_child_context}@anchor{16d} +@deffn {C++ Function} gccjit::@ref{12a,,context} gccjit::@ref{12a,,context}::new_child_context () Given an existing JIT context, create a child context. @@ -11754,16 +11752,16 @@ there will likely be a performance hit for such nesting. @end deffn @node Thread-safety<2>,Error-handling<3>,Lifetime-management<2>,Compilation contexts<2> -@anchor{cp/topics/contexts thread-safety}@anchor{16c} +@anchor{cp/topics/contexts thread-safety}@anchor{16e} @subsubsection Thread-safety -Instances of @ref{128,,gccjit;;context} created via -@ref{129,,gccjit;;context;;acquire()} are independent from each other: +Instances of @ref{12a,,gccjit;;context} created via +@ref{12b,,gccjit;;context;;acquire()} are independent from each other: only one thread may use a given context at once, but multiple threads could each have their own contexts without needing locks. -Contexts created via @ref{168,,gccjit;;context;;new_child_context()} are +Contexts created via @ref{16a,,gccjit;;context;;new_child_context()} are related to their parent context. They can be partitioned by their ultimate ancestor into independent “family trees”. Only one thread within a process may use a given “family tree” of such contexts at once, @@ -11771,7 +11769,7 @@ and if you’re using multiple threads you should provide your own locking around entire such context partitions. @node Error-handling<3>,Debugging<2>,Thread-safety<2>,Compilation contexts<2> -@anchor{cp/topics/contexts error-handling}@anchor{16d} +@anchor{cp/topics/contexts error-handling}@anchor{16f} @subsubsection Error-handling @@ -11784,11 +11782,11 @@ NULL. You don’t have to check everywhere for NULL results, since the API gracefully handles a NULL being passed in for any argument. Errors are printed on stderr and can be queried using -@ref{16e,,gccjit;;context;;get_first_error()}. +@ref{170,,gccjit;;context;;get_first_error()}. @geindex gccjit;;context;;get_first_error (C++ function) -@anchor{cp/topics/contexts _CPPv4N6gccjit7context15get_first_errorEPN6gccjit7contextE}@anchor{16e}@anchor{cp/topics/contexts _CPPv3N6gccjit7context15get_first_errorEPN6gccjit7contextE}@anchor{16f}@anchor{cp/topics/contexts _CPPv2N6gccjit7context15get_first_errorEPN6gccjit7contextE}@anchor{170}@anchor{cp/topics/contexts gccjit context get_first_error__gccjit contextP}@anchor{171} -@deffn {C++ Function} const char *gccjit::@ref{128,,context}::get_first_error (gccjit::context *ctxt) +@anchor{cp/topics/contexts _CPPv4N6gccjit7context15get_first_errorEPN6gccjit7contextE}@anchor{170}@anchor{cp/topics/contexts _CPPv3N6gccjit7context15get_first_errorEPN6gccjit7contextE}@anchor{171}@anchor{cp/topics/contexts _CPPv2N6gccjit7context15get_first_errorEPN6gccjit7contextE}@anchor{172}@anchor{cp/topics/contexts gccjit context get_first_error__gccjit contextP}@anchor{173} +@deffn {C++ Function} const char *gccjit::@ref{12a,,context}::get_first_error (gccjit::context *ctxt) Returns the first error message that occurred on the context. @@ -11799,18 +11797,18 @@ If no errors occurred, this will be NULL. @end deffn @node Debugging<2>,Options<4>,Error-handling<3>,Compilation contexts<2> -@anchor{cp/topics/contexts debugging}@anchor{172} +@anchor{cp/topics/contexts debugging}@anchor{174} @subsubsection Debugging @geindex gccjit;;context;;dump_to_file (C++ function) -@anchor{cp/topics/contexts _CPPv4N6gccjit7context12dump_to_fileERKNSt6stringEi}@anchor{173}@anchor{cp/topics/contexts _CPPv3N6gccjit7context12dump_to_fileERKNSt6stringEi}@anchor{174}@anchor{cp/topics/contexts _CPPv2N6gccjit7context12dump_to_fileERKNSt6stringEi}@anchor{175}@anchor{cp/topics/contexts gccjit context dump_to_file__ssCR i}@anchor{176} -@deffn {C++ Function} void gccjit::@ref{128,,context}::dump_to_file (const std::string &path, int update_locations) +@anchor{cp/topics/contexts _CPPv4N6gccjit7context12dump_to_fileERKNSt6stringEi}@anchor{175}@anchor{cp/topics/contexts _CPPv3N6gccjit7context12dump_to_fileERKNSt6stringEi}@anchor{176}@anchor{cp/topics/contexts _CPPv2N6gccjit7context12dump_to_fileERKNSt6stringEi}@anchor{177}@anchor{cp/topics/contexts gccjit context dump_to_file__ssCR i}@anchor{178} +@deffn {C++ Function} void gccjit::@ref{12a,,context}::dump_to_file (const std::string &path, int update_locations) To help with debugging: dump a C-like representation to the given path, describing what’s been set up on the context. -If “update_locations” is true, then also set up @ref{14e,,gccjit;;location} +If “update_locations” is true, then also set up @ref{150,,gccjit;;location} information throughout the context, pointing at the dump file as if it were a source file. This may be of use in conjunction with @code{GCCJIT::BOOL_OPTION_DEBUGINFO} to allow stepping through the @@ -11818,8 +11816,8 @@ code in a debugger. @end deffn @geindex gccjit;;context;;dump_reproducer_to_file (C++ function) -@anchor{cp/topics/contexts _CPPv4N6gccjit7context23dump_reproducer_to_fileEP15gcc_jit_contextPKc}@anchor{177}@anchor{cp/topics/contexts _CPPv3N6gccjit7context23dump_reproducer_to_fileEP15gcc_jit_contextPKc}@anchor{178}@anchor{cp/topics/contexts _CPPv2N6gccjit7context23dump_reproducer_to_fileEP15gcc_jit_contextPKc}@anchor{179}@anchor{cp/topics/contexts gccjit context dump_reproducer_to_file__gcc_jit_contextP cCP}@anchor{17a} -@deffn {C++ Function} void gccjit::@ref{128,,context}::dump_reproducer_to_file (gcc_jit_context *ctxt, const char *path) +@anchor{cp/topics/contexts _CPPv4N6gccjit7context23dump_reproducer_to_fileEP15gcc_jit_contextPKc}@anchor{179}@anchor{cp/topics/contexts _CPPv3N6gccjit7context23dump_reproducer_to_fileEP15gcc_jit_contextPKc}@anchor{17a}@anchor{cp/topics/contexts _CPPv2N6gccjit7context23dump_reproducer_to_fileEP15gcc_jit_contextPKc}@anchor{17b}@anchor{cp/topics/contexts gccjit context dump_reproducer_to_file__gcc_jit_contextP cCP}@anchor{17c} +@deffn {C++ Function} void gccjit::@ref{12a,,context}::dump_reproducer_to_file (gcc_jit_context *ctxt, const char *path) This is a thin wrapper around the C API @ref{5d,,gcc_jit_context_dump_reproducer_to_file()}, and hence works the @@ -11830,7 +11828,7 @@ for seeing what the C++ bindings are doing at the C level. @end deffn @node Options<4>,,Debugging<2>,Compilation contexts<2> -@anchor{cp/topics/contexts options}@anchor{17b} +@anchor{cp/topics/contexts options}@anchor{17d} @subsubsection Options @@ -11843,13 +11841,13 @@ for seeing what the C++ bindings are doing at the C level. @end menu @node String Options<2>,Boolean options<2>,,Options<4> -@anchor{cp/topics/contexts string-options}@anchor{17c} +@anchor{cp/topics/contexts string-options}@anchor{17e} @subsubsection String Options @geindex gccjit;;context;;set_str_option (C++ function) -@anchor{cp/topics/contexts _CPPv4N6gccjit7context14set_str_optionE18gcc_jit_str_optionPKc}@anchor{17d}@anchor{cp/topics/contexts _CPPv3N6gccjit7context14set_str_optionE18gcc_jit_str_optionPKc}@anchor{17e}@anchor{cp/topics/contexts _CPPv2N6gccjit7context14set_str_optionE18gcc_jit_str_optionPKc}@anchor{17f}@anchor{cp/topics/contexts gccjit context set_str_option__gcc_jit_str_option cCP}@anchor{180} -@deffn {C++ Function} void gccjit::@ref{128,,context}::set_str_option (enum gcc_jit_str_option, const char *value) +@anchor{cp/topics/contexts _CPPv4N6gccjit7context14set_str_optionE18gcc_jit_str_optionPKc}@anchor{17f}@anchor{cp/topics/contexts _CPPv3N6gccjit7context14set_str_optionE18gcc_jit_str_optionPKc}@anchor{180}@anchor{cp/topics/contexts _CPPv2N6gccjit7context14set_str_optionE18gcc_jit_str_optionPKc}@anchor{181}@anchor{cp/topics/contexts gccjit context set_str_option__gcc_jit_str_option cCP}@anchor{182} +@deffn {C++ Function} void gccjit::@ref{12a,,context}::set_str_option (enum gcc_jit_str_option, const char *value) Set a string option of the context. @@ -11859,13 +11857,13 @@ meaning. @end deffn @node Boolean options<2>,Integer options<2>,String Options<2>,Options<4> -@anchor{cp/topics/contexts boolean-options}@anchor{181} +@anchor{cp/topics/contexts boolean-options}@anchor{183} @subsubsection Boolean options @geindex gccjit;;context;;set_bool_option (C++ function) -@anchor{cp/topics/contexts _CPPv4N6gccjit7context15set_bool_optionE19gcc_jit_bool_optioni}@anchor{134}@anchor{cp/topics/contexts _CPPv3N6gccjit7context15set_bool_optionE19gcc_jit_bool_optioni}@anchor{182}@anchor{cp/topics/contexts _CPPv2N6gccjit7context15set_bool_optionE19gcc_jit_bool_optioni}@anchor{183}@anchor{cp/topics/contexts gccjit context set_bool_option__gcc_jit_bool_option i}@anchor{184} -@deffn {C++ Function} void gccjit::@ref{128,,context}::set_bool_option (enum gcc_jit_bool_option, int value) +@anchor{cp/topics/contexts _CPPv4N6gccjit7context15set_bool_optionE19gcc_jit_bool_optioni}@anchor{136}@anchor{cp/topics/contexts _CPPv3N6gccjit7context15set_bool_optionE19gcc_jit_bool_optioni}@anchor{184}@anchor{cp/topics/contexts _CPPv2N6gccjit7context15set_bool_optionE19gcc_jit_bool_optioni}@anchor{185}@anchor{cp/topics/contexts gccjit context set_bool_option__gcc_jit_bool_option i}@anchor{186} +@deffn {C++ Function} void gccjit::@ref{12a,,context}::set_bool_option (enum gcc_jit_bool_option, int value) Set a boolean option of the context. @@ -11875,8 +11873,8 @@ meaning. @end deffn @geindex gccjit;;context;;set_bool_allow_unreachable_blocks (C++ function) -@anchor{cp/topics/contexts _CPPv4N6gccjit7context33set_bool_allow_unreachable_blocksEi}@anchor{185}@anchor{cp/topics/contexts _CPPv3N6gccjit7context33set_bool_allow_unreachable_blocksEi}@anchor{186}@anchor{cp/topics/contexts _CPPv2N6gccjit7context33set_bool_allow_unreachable_blocksEi}@anchor{187}@anchor{cp/topics/contexts gccjit context set_bool_allow_unreachable_blocks__i}@anchor{188} -@deffn {C++ Function} void gccjit::@ref{128,,context}::set_bool_allow_unreachable_blocks (int bool_value) +@anchor{cp/topics/contexts _CPPv4N6gccjit7context33set_bool_allow_unreachable_blocksEi}@anchor{187}@anchor{cp/topics/contexts _CPPv3N6gccjit7context33set_bool_allow_unreachable_blocksEi}@anchor{188}@anchor{cp/topics/contexts _CPPv2N6gccjit7context33set_bool_allow_unreachable_blocksEi}@anchor{189}@anchor{cp/topics/contexts gccjit context set_bool_allow_unreachable_blocks__i}@anchor{18a} +@deffn {C++ Function} void gccjit::@ref{12a,,context}::set_bool_allow_unreachable_blocks (int bool_value) By default, libgccjit will issue an error about unreachable blocks within a function. @@ -11894,8 +11892,8 @@ its presence using @end deffn @geindex gccjit;;context;;set_bool_use_external_driver (C++ function) -@anchor{cp/topics/contexts _CPPv4N6gccjit7context28set_bool_use_external_driverEi}@anchor{189}@anchor{cp/topics/contexts _CPPv3N6gccjit7context28set_bool_use_external_driverEi}@anchor{18a}@anchor{cp/topics/contexts _CPPv2N6gccjit7context28set_bool_use_external_driverEi}@anchor{18b}@anchor{cp/topics/contexts gccjit context set_bool_use_external_driver__i}@anchor{18c} -@deffn {C++ Function} void gccjit::@ref{128,,context}::set_bool_use_external_driver (int bool_value) +@anchor{cp/topics/contexts _CPPv4N6gccjit7context28set_bool_use_external_driverEi}@anchor{18b}@anchor{cp/topics/contexts _CPPv3N6gccjit7context28set_bool_use_external_driverEi}@anchor{18c}@anchor{cp/topics/contexts _CPPv2N6gccjit7context28set_bool_use_external_driverEi}@anchor{18d}@anchor{cp/topics/contexts gccjit context set_bool_use_external_driver__i}@anchor{18e} +@deffn {C++ Function} void gccjit::@ref{12a,,context}::set_bool_use_external_driver (int bool_value) libgccjit internally generates assembler, and uses “driver” code for converting it to other formats (e.g. shared libraries). @@ -11916,13 +11914,13 @@ its presence using @end deffn @node Integer options<2>,Additional command-line options<2>,Boolean options<2>,Options<4> -@anchor{cp/topics/contexts integer-options}@anchor{18d} +@anchor{cp/topics/contexts integer-options}@anchor{18f} @subsubsection Integer options @geindex gccjit;;context;;set_int_option (C++ function) -@anchor{cp/topics/contexts _CPPv4N6gccjit7context14set_int_optionE18gcc_jit_int_optioni}@anchor{135}@anchor{cp/topics/contexts _CPPv3N6gccjit7context14set_int_optionE18gcc_jit_int_optioni}@anchor{18e}@anchor{cp/topics/contexts _CPPv2N6gccjit7context14set_int_optionE18gcc_jit_int_optioni}@anchor{18f}@anchor{cp/topics/contexts gccjit context set_int_option__gcc_jit_int_option i}@anchor{190} -@deffn {C++ Function} void gccjit::@ref{128,,context}::set_int_option (enum gcc_jit_int_option, int value) +@anchor{cp/topics/contexts _CPPv4N6gccjit7context14set_int_optionE18gcc_jit_int_optioni}@anchor{137}@anchor{cp/topics/contexts _CPPv3N6gccjit7context14set_int_optionE18gcc_jit_int_optioni}@anchor{190}@anchor{cp/topics/contexts _CPPv2N6gccjit7context14set_int_optionE18gcc_jit_int_optioni}@anchor{191}@anchor{cp/topics/contexts gccjit context set_int_option__gcc_jit_int_option i}@anchor{192} +@deffn {C++ Function} void gccjit::@ref{12a,,context}::set_int_option (enum gcc_jit_int_option, int value) Set an integer option of the context. @@ -11932,13 +11930,13 @@ meaning. @end deffn @node Additional command-line options<2>,,Integer options<2>,Options<4> -@anchor{cp/topics/contexts additional-command-line-options}@anchor{191} +@anchor{cp/topics/contexts additional-command-line-options}@anchor{193} @subsubsection Additional command-line options @geindex gccjit;;context;;add_command_line_option (C++ function) -@anchor{cp/topics/contexts _CPPv4N6gccjit7context23add_command_line_optionEPKc}@anchor{192}@anchor{cp/topics/contexts _CPPv3N6gccjit7context23add_command_line_optionEPKc}@anchor{193}@anchor{cp/topics/contexts _CPPv2N6gccjit7context23add_command_line_optionEPKc}@anchor{194}@anchor{cp/topics/contexts gccjit context add_command_line_option__cCP}@anchor{195} -@deffn {C++ Function} void gccjit::@ref{128,,context}::add_command_line_option (const char *optname) +@anchor{cp/topics/contexts _CPPv4N6gccjit7context23add_command_line_optionEPKc}@anchor{194}@anchor{cp/topics/contexts _CPPv3N6gccjit7context23add_command_line_optionEPKc}@anchor{195}@anchor{cp/topics/contexts _CPPv2N6gccjit7context23add_command_line_optionEPKc}@anchor{196}@anchor{cp/topics/contexts gccjit context add_command_line_option__cCP}@anchor{197} +@deffn {C++ Function} void gccjit::@ref{12a,,context}::add_command_line_option (const char *optname) Add an arbitrary gcc command-line option to the context for use when compiling. @@ -11972,18 +11970,18 @@ its presence using @c . @node Objects<2>,Types<2>,Compilation contexts<2>,Topic Reference<2> -@anchor{cp/topics/objects doc}@anchor{196}@anchor{cp/topics/objects objects}@anchor{197} +@anchor{cp/topics/objects doc}@anchor{198}@anchor{cp/topics/objects objects}@anchor{199} @subsection Objects @geindex gccjit;;object (C++ class) -@anchor{cp/topics/objects _CPPv4N6gccjit6objectE}@anchor{12d}@anchor{cp/topics/objects _CPPv3N6gccjit6objectE}@anchor{198}@anchor{cp/topics/objects _CPPv2N6gccjit6objectE}@anchor{199}@anchor{cp/topics/objects gccjit object}@anchor{19a} +@anchor{cp/topics/objects _CPPv4N6gccjit6objectE}@anchor{12f}@anchor{cp/topics/objects _CPPv3N6gccjit6objectE}@anchor{19a}@anchor{cp/topics/objects _CPPv2N6gccjit6objectE}@anchor{19b}@anchor{cp/topics/objects gccjit object}@anchor{19c} @deffn {C++ Class} gccjit::object @end deffn Almost every entity in the API (with the exception of -@ref{128,,gccjit;;context} and @ref{16,,gcc_jit_result *}) is a -“contextual” object, a @ref{12d,,gccjit;;object}. +@ref{12a,,gccjit;;context} and @ref{16,,gcc_jit_result *}) is a +“contextual” object, a @ref{12f,,gccjit;;object}. A JIT object: @@ -11993,7 +11991,7 @@ A JIT object: @itemize * @item -is associated with a @ref{128,,gccjit;;context}. +is associated with a @ref{12a,,gccjit;;context}. @item is automatically cleaned up for you when its context is released so @@ -12018,18 +12016,18 @@ The C++ class hierarchy within the @code{gccjit} namespace looks like this: +- case_ @end example -The @ref{12d,,gccjit;;object} base class has the following operations: +The @ref{12f,,gccjit;;object} base class has the following operations: @geindex gccjit;;object;;get_context (C++ function) -@anchor{cp/topics/objects _CPPv4NK6gccjit6object11get_contextEv}@anchor{19b}@anchor{cp/topics/objects _CPPv3NK6gccjit6object11get_contextEv}@anchor{19c}@anchor{cp/topics/objects _CPPv2NK6gccjit6object11get_contextEv}@anchor{19d}@anchor{cp/topics/objects gccjit object get_contextC}@anchor{19e} -@deffn {C++ Function} gccjit::@ref{128,,context} gccjit::@ref{12d,,object}::get_context () const +@anchor{cp/topics/objects _CPPv4NK6gccjit6object11get_contextEv}@anchor{19d}@anchor{cp/topics/objects _CPPv3NK6gccjit6object11get_contextEv}@anchor{19e}@anchor{cp/topics/objects _CPPv2NK6gccjit6object11get_contextEv}@anchor{19f}@anchor{cp/topics/objects gccjit object get_contextC}@anchor{1a0} +@deffn {C++ Function} gccjit::@ref{12a,,context} gccjit::@ref{12f,,object}::get_context () const Which context is the obj within? @end deffn @geindex gccjit;;object;;get_debug_string (C++ function) -@anchor{cp/topics/objects _CPPv4NK6gccjit6object16get_debug_stringEv}@anchor{12e}@anchor{cp/topics/objects _CPPv3NK6gccjit6object16get_debug_stringEv}@anchor{19f}@anchor{cp/topics/objects _CPPv2NK6gccjit6object16get_debug_stringEv}@anchor{1a0}@anchor{cp/topics/objects gccjit object get_debug_stringC}@anchor{1a1} -@deffn {C++ Function} std::string gccjit::@ref{12d,,object}::get_debug_string () const +@anchor{cp/topics/objects _CPPv4NK6gccjit6object16get_debug_stringEv}@anchor{130}@anchor{cp/topics/objects _CPPv3NK6gccjit6object16get_debug_stringEv}@anchor{1a1}@anchor{cp/topics/objects _CPPv2NK6gccjit6object16get_debug_stringEv}@anchor{1a2}@anchor{cp/topics/objects gccjit object get_debug_stringC}@anchor{1a3} +@deffn {C++ Function} std::string gccjit::@ref{12f,,object}::get_debug_string () const Generate a human-readable description for the given object. @@ -12064,16 +12062,16 @@ obj: 4.0 * (float)i @c . @node Types<2>,Expressions<2>,Objects<2>,Topic Reference<2> -@anchor{cp/topics/types doc}@anchor{1a2}@anchor{cp/topics/types types}@anchor{1a3} +@anchor{cp/topics/types doc}@anchor{1a4}@anchor{cp/topics/types types}@anchor{1a5} @subsection Types @geindex gccjit;;type (C++ class) -@anchor{cp/topics/types _CPPv4N6gccjit4typeE}@anchor{12a}@anchor{cp/topics/types _CPPv3N6gccjit4typeE}@anchor{1a4}@anchor{cp/topics/types _CPPv2N6gccjit4typeE}@anchor{1a5}@anchor{cp/topics/types gccjit type}@anchor{1a6} +@anchor{cp/topics/types _CPPv4N6gccjit4typeE}@anchor{12c}@anchor{cp/topics/types _CPPv3N6gccjit4typeE}@anchor{1a6}@anchor{cp/topics/types _CPPv2N6gccjit4typeE}@anchor{1a7}@anchor{cp/topics/types gccjit type}@anchor{1a8} @deffn {C++ Class} gccjit::type gccjit::type represents a type within the library. It is a subclass -of @ref{12d,,gccjit;;object}. +of @ref{12f,,gccjit;;object}. @end deffn Types can be created in several ways: @@ -12083,7 +12081,7 @@ Types can be created in several ways: @item fundamental types can be accessed using -@ref{12b,,gccjit;;context;;get_type()}: +@ref{12d,,gccjit;;context;;get_type()}: @example gccjit::type int_type = ctxt.get_type (GCC_JIT_TYPE_INT); @@ -12099,7 +12097,7 @@ See @ref{b,,gcc_jit_context_get_type()} for the available types. @item derived types can be accessed by using functions such as -@ref{1a7,,gccjit;;type;;get_pointer()} and @ref{1a8,,gccjit;;type;;get_const()}: +@ref{1a9,,gccjit;;type;;get_pointer()} and @ref{1aa,,gccjit;;type;;get_const()}: @example gccjit::type const_int_star = int_type.get_const ().get_pointer (); @@ -12119,28 +12117,28 @@ by creating structures (see below). @end menu @node Standard types<2>,Pointers const and volatile<2>,,Types<2> -@anchor{cp/topics/types standard-types}@anchor{1a9} +@anchor{cp/topics/types standard-types}@anchor{1ab} @subsubsection Standard types @geindex gccjit;;context;;get_type (C++ function) -@anchor{cp/topics/types _CPPv4N6gccjit7context8get_typeE13gcc_jit_types}@anchor{12b}@anchor{cp/topics/types _CPPv3N6gccjit7context8get_typeE13gcc_jit_types}@anchor{1aa}@anchor{cp/topics/types _CPPv2N6gccjit7context8get_typeE13gcc_jit_types}@anchor{1ab}@anchor{cp/topics/types gccjit context get_type__gcc_jit_types}@anchor{1ac} -@deffn {C++ Function} gccjit::@ref{12a,,type} gccjit::@ref{128,,context}::get_type (enum gcc_jit_types) +@anchor{cp/topics/types _CPPv4N6gccjit7context8get_typeE13gcc_jit_types}@anchor{12d}@anchor{cp/topics/types _CPPv3N6gccjit7context8get_typeE13gcc_jit_types}@anchor{1ac}@anchor{cp/topics/types _CPPv2N6gccjit7context8get_typeE13gcc_jit_types}@anchor{1ad}@anchor{cp/topics/types gccjit context get_type__gcc_jit_types}@anchor{1ae} +@deffn {C++ Function} gccjit::@ref{12c,,type} gccjit::@ref{12a,,context}::get_type (enum gcc_jit_types) Access a specific type. This is a thin wrapper around @ref{b,,gcc_jit_context_get_type()}; the parameter has the same meaning. @end deffn @geindex gccjit;;context;;get_int_type (C++ function) -@anchor{cp/topics/types _CPPv4N6gccjit7context12get_int_typeE6size_ti}@anchor{1ad}@anchor{cp/topics/types _CPPv3N6gccjit7context12get_int_typeE6size_ti}@anchor{1ae}@anchor{cp/topics/types _CPPv2N6gccjit7context12get_int_typeE6size_ti}@anchor{1af}@anchor{cp/topics/types gccjit context get_int_type__s i}@anchor{1b0} -@deffn {C++ Function} gccjit::@ref{12a,,type} gccjit::@ref{128,,context}::get_int_type (size_t num_bytes, int is_signed) +@anchor{cp/topics/types _CPPv4N6gccjit7context12get_int_typeE6size_ti}@anchor{1af}@anchor{cp/topics/types _CPPv3N6gccjit7context12get_int_typeE6size_ti}@anchor{1b0}@anchor{cp/topics/types _CPPv2N6gccjit7context12get_int_typeE6size_ti}@anchor{1b1}@anchor{cp/topics/types gccjit context get_int_type__s i}@anchor{1b2} +@deffn {C++ Function} gccjit::@ref{12c,,type} gccjit::@ref{12a,,context}::get_int_type (size_t num_bytes, int is_signed) Access the integer type of the given size. @end deffn @geindex gccjit;;context;;get_int_type (C++ function) -@anchor{cp/topics/types _CPPv4IEN6gccjit7context12get_int_typeI1TEEN6gccjit4typeEv}@anchor{1b1}@anchor{cp/topics/types _CPPv3IEN6gccjit7context12get_int_typeI1TEEv}@anchor{1b2}@anchor{cp/topics/types _CPPv2IEN6gccjit7context12get_int_typeI1TEEv}@anchor{1b3} -@deffn {C++ Function} template<>gccjit::@ref{12a,,type} gccjit::@ref{128,,context}::get_int_type () +@anchor{cp/topics/types _CPPv4IEN6gccjit7context12get_int_typeI1TEEN6gccjit4typeEv}@anchor{1b3}@anchor{cp/topics/types _CPPv3IEN6gccjit7context12get_int_typeI1TEEv}@anchor{1b4}@anchor{cp/topics/types _CPPv2IEN6gccjit7context12get_int_typeI1TEEv}@anchor{1b5} +@deffn {C++ Function} template<>gccjit::@ref{12c,,type} gccjit::@ref{12a,,context}::get_int_type () Access the given integer type. For example, you could map the @code{unsigned short} type into a gccjit::type via: @@ -12151,34 +12149,34 @@ gccjit::type t = ctxt.get_int_type (); @end deffn @node Pointers const and volatile<2>,Vector types<2>,Standard types<2>,Types<2> -@anchor{cp/topics/types pointers-const-and-volatile}@anchor{1b4} +@anchor{cp/topics/types pointers-const-and-volatile}@anchor{1b6} @subsubsection Pointers, @cite{const}, and @cite{volatile} @geindex gccjit;;type;;get_pointer (C++ function) -@anchor{cp/topics/types _CPPv4N6gccjit4type11get_pointerEv}@anchor{1a7}@anchor{cp/topics/types _CPPv3N6gccjit4type11get_pointerEv}@anchor{1b5}@anchor{cp/topics/types _CPPv2N6gccjit4type11get_pointerEv}@anchor{1b6}@anchor{cp/topics/types gccjit type get_pointer}@anchor{1b7} -@deffn {C++ Function} gccjit::@ref{12a,,type} gccjit::@ref{12a,,type}::get_pointer () +@anchor{cp/topics/types _CPPv4N6gccjit4type11get_pointerEv}@anchor{1a9}@anchor{cp/topics/types _CPPv3N6gccjit4type11get_pointerEv}@anchor{1b7}@anchor{cp/topics/types _CPPv2N6gccjit4type11get_pointerEv}@anchor{1b8}@anchor{cp/topics/types gccjit type get_pointer}@anchor{1b9} +@deffn {C++ Function} gccjit::@ref{12c,,type} gccjit::@ref{12c,,type}::get_pointer () Given type “T”, get type “T*”. @end deffn @geindex gccjit;;type;;get_const (C++ function) -@anchor{cp/topics/types _CPPv4N6gccjit4type9get_constEv}@anchor{1a8}@anchor{cp/topics/types _CPPv3N6gccjit4type9get_constEv}@anchor{1b8}@anchor{cp/topics/types _CPPv2N6gccjit4type9get_constEv}@anchor{1b9}@anchor{cp/topics/types gccjit type get_const}@anchor{1ba} -@deffn {C++ Function} gccjit::@ref{12a,,type} gccjit::@ref{12a,,type}::get_const () +@anchor{cp/topics/types _CPPv4N6gccjit4type9get_constEv}@anchor{1aa}@anchor{cp/topics/types _CPPv3N6gccjit4type9get_constEv}@anchor{1ba}@anchor{cp/topics/types _CPPv2N6gccjit4type9get_constEv}@anchor{1bb}@anchor{cp/topics/types gccjit type get_const}@anchor{1bc} +@deffn {C++ Function} gccjit::@ref{12c,,type} gccjit::@ref{12c,,type}::get_const () Given type “T”, get type “const T”. @end deffn @geindex gccjit;;type;;get_volatile (C++ function) -@anchor{cp/topics/types _CPPv4N6gccjit4type12get_volatileEv}@anchor{1bb}@anchor{cp/topics/types _CPPv3N6gccjit4type12get_volatileEv}@anchor{1bc}@anchor{cp/topics/types _CPPv2N6gccjit4type12get_volatileEv}@anchor{1bd}@anchor{cp/topics/types gccjit type get_volatile}@anchor{1be} -@deffn {C++ Function} gccjit::@ref{12a,,type} gccjit::@ref{12a,,type}::get_volatile () +@anchor{cp/topics/types _CPPv4N6gccjit4type12get_volatileEv}@anchor{1bd}@anchor{cp/topics/types _CPPv3N6gccjit4type12get_volatileEv}@anchor{1be}@anchor{cp/topics/types _CPPv2N6gccjit4type12get_volatileEv}@anchor{1bf}@anchor{cp/topics/types gccjit type get_volatile}@anchor{1c0} +@deffn {C++ Function} gccjit::@ref{12c,,type} gccjit::@ref{12c,,type}::get_volatile () Given type “T”, get type “volatile T”. @end deffn @geindex gccjit;;type;;get_aligned (C++ function) -@anchor{cp/topics/types _CPPv4N6gccjit4type11get_alignedE6size_t}@anchor{1bf}@anchor{cp/topics/types _CPPv3N6gccjit4type11get_alignedE6size_t}@anchor{1c0}@anchor{cp/topics/types _CPPv2N6gccjit4type11get_alignedE6size_t}@anchor{1c1}@anchor{cp/topics/types gccjit type get_aligned__s}@anchor{1c2} -@deffn {C++ Function} gccjit::@ref{12a,,type} gccjit::@ref{12a,,type}::get_aligned (size_t alignment_in_bytes) +@anchor{cp/topics/types _CPPv4N6gccjit4type11get_alignedE6size_t}@anchor{1c1}@anchor{cp/topics/types _CPPv3N6gccjit4type11get_alignedE6size_t}@anchor{1c2}@anchor{cp/topics/types _CPPv2N6gccjit4type11get_alignedE6size_t}@anchor{1c3}@anchor{cp/topics/types gccjit type get_aligned__s}@anchor{1c4} +@deffn {C++ Function} gccjit::@ref{12c,,type} gccjit::@ref{12c,,type}::get_aligned (size_t alignment_in_bytes) Given type “T”, get type: @@ -12190,21 +12188,21 @@ The alignment must be a power of two. @end deffn @geindex gccjit;;context;;new_array_type (C++ function) -@anchor{cp/topics/types _CPPv4N6gccjit7context14new_array_typeEN6gccjit4typeEiN6gccjit8locationE}@anchor{1c3}@anchor{cp/topics/types _CPPv3N6gccjit7context14new_array_typeEN6gccjit4typeEiN6gccjit8locationE}@anchor{1c4}@anchor{cp/topics/types _CPPv2N6gccjit7context14new_array_typeEN6gccjit4typeEiN6gccjit8locationE}@anchor{1c5}@anchor{cp/topics/types gccjit context new_array_type__gccjit type i gccjit location}@anchor{1c6} -@deffn {C++ Function} gccjit::@ref{12a,,type} gccjit::@ref{128,,context}::new_array_type (gccjit::type element_type, int num_elements, gccjit::location loc) +@anchor{cp/topics/types _CPPv4N6gccjit7context14new_array_typeEN6gccjit4typeEiN6gccjit8locationE}@anchor{1c5}@anchor{cp/topics/types _CPPv3N6gccjit7context14new_array_typeEN6gccjit4typeEiN6gccjit8locationE}@anchor{1c6}@anchor{cp/topics/types _CPPv2N6gccjit7context14new_array_typeEN6gccjit4typeEiN6gccjit8locationE}@anchor{1c7}@anchor{cp/topics/types gccjit context new_array_type__gccjit type i gccjit location}@anchor{1c8} +@deffn {C++ Function} gccjit::@ref{12c,,type} gccjit::@ref{12a,,context}::new_array_type (gccjit::type element_type, int num_elements, gccjit::location loc) Given type “T”, get type “T[N]” (for a constant N). Param “loc” is optional. @end deffn @node Vector types<2>,Structures and unions<2>,Pointers const and volatile<2>,Types<2> -@anchor{cp/topics/types vector-types}@anchor{1c7} +@anchor{cp/topics/types vector-types}@anchor{1c9} @subsubsection Vector types @geindex gccjit;;type;;get_vector (C++ function) -@anchor{cp/topics/types _CPPv4N6gccjit4type10get_vectorE6size_t}@anchor{1c8}@anchor{cp/topics/types _CPPv3N6gccjit4type10get_vectorE6size_t}@anchor{1c9}@anchor{cp/topics/types _CPPv2N6gccjit4type10get_vectorE6size_t}@anchor{1ca}@anchor{cp/topics/types gccjit type get_vector__s}@anchor{1cb} -@deffn {C++ Function} gccjit::@ref{12a,,type} gccjit::@ref{12a,,type}::get_vector (size_t num_units) +@anchor{cp/topics/types _CPPv4N6gccjit4type10get_vectorE6size_t}@anchor{1ca}@anchor{cp/topics/types _CPPv3N6gccjit4type10get_vectorE6size_t}@anchor{1cb}@anchor{cp/topics/types _CPPv2N6gccjit4type10get_vectorE6size_t}@anchor{1cc}@anchor{cp/topics/types gccjit type get_vector__s}@anchor{1cd} +@deffn {C++ Function} gccjit::@ref{12c,,type} gccjit::@ref{12c,,type}::get_vector (size_t num_units) Given type “T”, get type: @@ -12216,31 +12214,31 @@ T must be integral or floating point; num_units must be a power of two. @end deffn @node Structures and unions<2>,,Vector types<2>,Types<2> -@anchor{cp/topics/types structures-and-unions}@anchor{1cc} +@anchor{cp/topics/types structures-and-unions}@anchor{1ce} @subsubsection Structures and unions @geindex gccjit;;struct_ (C++ class) -@anchor{cp/topics/types _CPPv4N6gccjit7struct_E}@anchor{1cd}@anchor{cp/topics/types _CPPv3N6gccjit7struct_E}@anchor{1ce}@anchor{cp/topics/types _CPPv2N6gccjit7struct_E}@anchor{1cf}@anchor{cp/topics/types gccjit struct_}@anchor{1d0} +@anchor{cp/topics/types _CPPv4N6gccjit7struct_E}@anchor{1cf}@anchor{cp/topics/types _CPPv3N6gccjit7struct_E}@anchor{1d0}@anchor{cp/topics/types _CPPv2N6gccjit7struct_E}@anchor{1d1}@anchor{cp/topics/types gccjit struct_}@anchor{1d2} @deffn {C++ Class} gccjit::struct_ @end deffn A compound type analagous to a C @cite{struct}. -@ref{1cd,,gccjit;;struct_} is a subclass of @ref{12a,,gccjit;;type} (and thus -of @ref{12d,,gccjit;;object} in turn). +@ref{1cf,,gccjit;;struct_} is a subclass of @ref{12c,,gccjit;;type} (and thus +of @ref{12f,,gccjit;;object} in turn). @geindex gccjit;;field (C++ class) -@anchor{cp/topics/types _CPPv4N6gccjit5fieldE}@anchor{1d1}@anchor{cp/topics/types _CPPv3N6gccjit5fieldE}@anchor{1d2}@anchor{cp/topics/types _CPPv2N6gccjit5fieldE}@anchor{1d3}@anchor{cp/topics/types gccjit field}@anchor{1d4} +@anchor{cp/topics/types _CPPv4N6gccjit5fieldE}@anchor{1d3}@anchor{cp/topics/types _CPPv3N6gccjit5fieldE}@anchor{1d4}@anchor{cp/topics/types _CPPv2N6gccjit5fieldE}@anchor{1d5}@anchor{cp/topics/types gccjit field}@anchor{1d6} @deffn {C++ Class} gccjit::field @end deffn -A field within a @ref{1cd,,gccjit;;struct_}. +A field within a @ref{1cf,,gccjit;;struct_}. -@ref{1d1,,gccjit;;field} is a subclass of @ref{12d,,gccjit;;object}. +@ref{1d3,,gccjit;;field} is a subclass of @ref{12f,,gccjit;;object}. -You can model C @cite{struct} types by creating @ref{1cd,,gccjit;;struct_} and -@ref{1d1,,gccjit;;field} instances, in either order: +You can model C @cite{struct} types by creating @ref{1cf,,gccjit;;struct_} and +@ref{1d3,,gccjit;;field} instances, in either order: @itemize * @@ -12288,15 +12286,15 @@ node.set_fields (fields); @c FIXME: the above API doesn't seem to exist yet @geindex gccjit;;context;;new_field (C++ function) -@anchor{cp/topics/types _CPPv4N6gccjit7context9new_fieldEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{1d5}@anchor{cp/topics/types _CPPv3N6gccjit7context9new_fieldEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{1d6}@anchor{cp/topics/types _CPPv2N6gccjit7context9new_fieldEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{1d7}@anchor{cp/topics/types gccjit context new_field__gccjit type cCP gccjit location}@anchor{1d8} -@deffn {C++ Function} gccjit::@ref{1d1,,field} gccjit::@ref{128,,context}::new_field (gccjit::type type, const char *name, gccjit::location loc) +@anchor{cp/topics/types _CPPv4N6gccjit7context9new_fieldEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{1d7}@anchor{cp/topics/types _CPPv3N6gccjit7context9new_fieldEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{1d8}@anchor{cp/topics/types _CPPv2N6gccjit7context9new_fieldEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{1d9}@anchor{cp/topics/types gccjit context new_field__gccjit type cCP gccjit location}@anchor{1da} +@deffn {C++ Function} gccjit::@ref{1d3,,field} gccjit::@ref{12a,,context}::new_field (gccjit::type type, const char *name, gccjit::location loc) Construct a new field, with the given type and name. @end deffn @geindex gccjit;;context;;new_struct_type (C++ function) -@anchor{cp/topics/types _CPPv4N6gccjit7context15new_struct_typeERKNSt6stringERNSt6vectorI5fieldEEN6gccjit8locationE}@anchor{1d9}@anchor{cp/topics/types _CPPv3N6gccjit7context15new_struct_typeERKNSt6stringERNSt6vectorI5fieldEEN6gccjit8locationE}@anchor{1da}@anchor{cp/topics/types _CPPv2N6gccjit7context15new_struct_typeERKNSt6stringERNSt6vectorI5fieldEEN6gccjit8locationE}@anchor{1db}@anchor{cp/topics/types gccjit context new_struct_type__ssCR std vector field R gccjit location}@anchor{1dc} -@deffn {C++ Function} gccjit::@ref{1cd,,struct_} gccjit::@ref{128,,context}::new_struct_type (const std::string &name, std::vector &fields, gccjit::location loc) +@anchor{cp/topics/types _CPPv4N6gccjit7context15new_struct_typeERKNSt6stringERNSt6vectorI5fieldEEN6gccjit8locationE}@anchor{1db}@anchor{cp/topics/types _CPPv3N6gccjit7context15new_struct_typeERKNSt6stringERNSt6vectorI5fieldEEN6gccjit8locationE}@anchor{1dc}@anchor{cp/topics/types _CPPv2N6gccjit7context15new_struct_typeERKNSt6stringERNSt6vectorI5fieldEEN6gccjit8locationE}@anchor{1dd}@anchor{cp/topics/types gccjit context new_struct_type__ssCR std vector field R gccjit location}@anchor{1de} +@deffn {C++ Function} gccjit::@ref{1cf,,struct_} gccjit::@ref{12a,,context}::new_struct_type (const std::string &name, std::vector &fields, gccjit::location loc) @quotation @@ -12305,13 +12303,13 @@ Construct a new struct type, with the given name and fields. @end deffn @geindex gccjit;;context;;new_opaque_struct (C++ function) -@anchor{cp/topics/types _CPPv4N6gccjit7context17new_opaque_structERKNSt6stringEN6gccjit8locationE}@anchor{1dd}@anchor{cp/topics/types _CPPv3N6gccjit7context17new_opaque_structERKNSt6stringEN6gccjit8locationE}@anchor{1de}@anchor{cp/topics/types _CPPv2N6gccjit7context17new_opaque_structERKNSt6stringEN6gccjit8locationE}@anchor{1df}@anchor{cp/topics/types gccjit context new_opaque_struct__ssCR gccjit location}@anchor{1e0} -@deffn {C++ Function} gccjit::@ref{1cd,,struct_} gccjit::@ref{128,,context}::new_opaque_struct (const std::string &name, gccjit::location loc) +@anchor{cp/topics/types _CPPv4N6gccjit7context17new_opaque_structERKNSt6stringEN6gccjit8locationE}@anchor{1df}@anchor{cp/topics/types _CPPv3N6gccjit7context17new_opaque_structERKNSt6stringEN6gccjit8locationE}@anchor{1e0}@anchor{cp/topics/types _CPPv2N6gccjit7context17new_opaque_structERKNSt6stringEN6gccjit8locationE}@anchor{1e1}@anchor{cp/topics/types gccjit context new_opaque_struct__ssCR gccjit location}@anchor{1e2} +@deffn {C++ Function} gccjit::@ref{1cf,,struct_} gccjit::@ref{12a,,context}::new_opaque_struct (const std::string &name, gccjit::location loc) Construct a new struct type, with the given name, but without specifying the fields. The fields can be omitted (in which case the size of the struct is not known), or later specified using -@ref{90,,gcc_jit_struct_set_fields()}. +@ref{91,,gcc_jit_struct_set_fields()}. @end deffn @c Copyright (C) 2014-2020 Free Software Foundation, Inc. @@ -12332,7 +12330,7 @@ size of the struct is not known), or later specified using @c . @node Expressions<2>,Creating and using functions<2>,Types<2>,Topic Reference<2> -@anchor{cp/topics/expressions doc}@anchor{1e1}@anchor{cp/topics/expressions expressions}@anchor{1e2} +@anchor{cp/topics/expressions doc}@anchor{1e3}@anchor{cp/topics/expressions expressions}@anchor{1e4} @subsection Expressions @@ -12344,17 +12342,17 @@ size of the struct is not known), or later specified using @end menu @node Rvalues<2>,Lvalues<2>,,Expressions<2> -@anchor{cp/topics/expressions rvalues}@anchor{1e3} +@anchor{cp/topics/expressions rvalues}@anchor{1e5} @subsubsection Rvalues @geindex gccjit;;rvalue (C++ class) -@anchor{cp/topics/expressions _CPPv4N6gccjit6rvalueE}@anchor{131}@anchor{cp/topics/expressions _CPPv3N6gccjit6rvalueE}@anchor{1e4}@anchor{cp/topics/expressions _CPPv2N6gccjit6rvalueE}@anchor{1e5}@anchor{cp/topics/expressions gccjit rvalue}@anchor{1e6} +@anchor{cp/topics/expressions _CPPv4N6gccjit6rvalueE}@anchor{133}@anchor{cp/topics/expressions _CPPv3N6gccjit6rvalueE}@anchor{1e6}@anchor{cp/topics/expressions _CPPv2N6gccjit6rvalueE}@anchor{1e7}@anchor{cp/topics/expressions gccjit rvalue}@anchor{1e8} @deffn {C++ Class} gccjit::rvalue @end deffn -A @ref{131,,gccjit;;rvalue} is an expression that can be computed. It is a -subclass of @ref{12d,,gccjit;;object}, and is a thin wrapper around +A @ref{133,,gccjit;;rvalue} is an expression that can be computed. It is a +subclass of @ref{12f,,gccjit;;object}, and is a thin wrapper around @ref{13,,gcc_jit_rvalue *} from the C API. It can be simple, e.g.: @@ -12400,8 +12398,8 @@ Every rvalue has an associated type, and the API will check to ensure that types match up correctly (otherwise the context will emit an error). @geindex gccjit;;rvalue;;get_type (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit6rvalue8get_typeEv}@anchor{1e7}@anchor{cp/topics/expressions _CPPv3N6gccjit6rvalue8get_typeEv}@anchor{1e8}@anchor{cp/topics/expressions _CPPv2N6gccjit6rvalue8get_typeEv}@anchor{1e9}@anchor{cp/topics/expressions gccjit rvalue get_type}@anchor{1ea} -@deffn {C++ Function} gccjit::@ref{12a,,type} gccjit::@ref{131,,rvalue}::get_type () +@anchor{cp/topics/expressions _CPPv4N6gccjit6rvalue8get_typeEv}@anchor{1e9}@anchor{cp/topics/expressions _CPPv3N6gccjit6rvalue8get_typeEv}@anchor{1ea}@anchor{cp/topics/expressions _CPPv2N6gccjit6rvalue8get_typeEv}@anchor{1eb}@anchor{cp/topics/expressions gccjit rvalue get_type}@anchor{1ec} +@deffn {C++ Function} gccjit::@ref{12c,,type} gccjit::@ref{133,,rvalue}::get_type () Get the type of this rvalue. @end deffn @@ -12419,29 +12417,29 @@ Get the type of this rvalue. @end menu @node Simple expressions<2>,Vector expressions<2>,,Rvalues<2> -@anchor{cp/topics/expressions simple-expressions}@anchor{1eb} +@anchor{cp/topics/expressions simple-expressions}@anchor{1ed} @subsubsection Simple expressions @geindex gccjit;;context;;new_rvalue (C++ function) -@anchor{cp/topics/expressions _CPPv4NK6gccjit7context10new_rvalueEN6gccjit4typeEi}@anchor{145}@anchor{cp/topics/expressions _CPPv3NK6gccjit7context10new_rvalueEN6gccjit4typeEi}@anchor{1ec}@anchor{cp/topics/expressions _CPPv2NK6gccjit7context10new_rvalueEN6gccjit4typeEi}@anchor{1ed}@anchor{cp/topics/expressions gccjit context new_rvalue__gccjit type iC}@anchor{1ee} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_rvalue (gccjit::type numeric_type, int value) const +@anchor{cp/topics/expressions _CPPv4NK6gccjit7context10new_rvalueEN6gccjit4typeEi}@anchor{147}@anchor{cp/topics/expressions _CPPv3NK6gccjit7context10new_rvalueEN6gccjit4typeEi}@anchor{1ee}@anchor{cp/topics/expressions _CPPv2NK6gccjit7context10new_rvalueEN6gccjit4typeEi}@anchor{1ef}@anchor{cp/topics/expressions gccjit context new_rvalue__gccjit type iC}@anchor{1f0} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_rvalue (gccjit::type numeric_type, int value) const Given a numeric type (integer or floating point), build an rvalue for the given constant @code{int} value. @end deffn @geindex gccjit;;context;;new_rvalue (C++ function) -@anchor{cp/topics/expressions _CPPv4NK6gccjit7context10new_rvalueEN6gccjit4typeEl}@anchor{1ef}@anchor{cp/topics/expressions _CPPv3NK6gccjit7context10new_rvalueEN6gccjit4typeEl}@anchor{1f0}@anchor{cp/topics/expressions _CPPv2NK6gccjit7context10new_rvalueEN6gccjit4typeEl}@anchor{1f1}@anchor{cp/topics/expressions gccjit context new_rvalue__gccjit type lC}@anchor{1f2} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_rvalue (gccjit::type numeric_type, long value) const +@anchor{cp/topics/expressions _CPPv4NK6gccjit7context10new_rvalueEN6gccjit4typeEl}@anchor{1f1}@anchor{cp/topics/expressions _CPPv3NK6gccjit7context10new_rvalueEN6gccjit4typeEl}@anchor{1f2}@anchor{cp/topics/expressions _CPPv2NK6gccjit7context10new_rvalueEN6gccjit4typeEl}@anchor{1f3}@anchor{cp/topics/expressions gccjit context new_rvalue__gccjit type lC}@anchor{1f4} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_rvalue (gccjit::type numeric_type, long value) const Given a numeric type (integer or floating point), build an rvalue for the given constant @code{long} value. @end deffn @geindex gccjit;;context;;zero (C++ function) -@anchor{cp/topics/expressions _CPPv4NK6gccjit7context4zeroEN6gccjit4typeE}@anchor{141}@anchor{cp/topics/expressions _CPPv3NK6gccjit7context4zeroEN6gccjit4typeE}@anchor{1f3}@anchor{cp/topics/expressions _CPPv2NK6gccjit7context4zeroEN6gccjit4typeE}@anchor{1f4}@anchor{cp/topics/expressions gccjit context zero__gccjit typeC}@anchor{1f5} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::zero (gccjit::type numeric_type) const +@anchor{cp/topics/expressions _CPPv4NK6gccjit7context4zeroEN6gccjit4typeE}@anchor{143}@anchor{cp/topics/expressions _CPPv3NK6gccjit7context4zeroEN6gccjit4typeE}@anchor{1f5}@anchor{cp/topics/expressions _CPPv2NK6gccjit7context4zeroEN6gccjit4typeE}@anchor{1f6}@anchor{cp/topics/expressions gccjit context zero__gccjit typeC}@anchor{1f7} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::zero (gccjit::type numeric_type) const Given a numeric type (integer or floating point), get the rvalue for zero. Essentially this is just a shortcut for: @@ -12452,8 +12450,8 @@ ctxt.new_rvalue (numeric_type, 0) @end deffn @geindex gccjit;;context;;one (C++ function) -@anchor{cp/topics/expressions _CPPv4NK6gccjit7context3oneEN6gccjit4typeE}@anchor{1f6}@anchor{cp/topics/expressions _CPPv3NK6gccjit7context3oneEN6gccjit4typeE}@anchor{1f7}@anchor{cp/topics/expressions _CPPv2NK6gccjit7context3oneEN6gccjit4typeE}@anchor{1f8}@anchor{cp/topics/expressions gccjit context one__gccjit typeC}@anchor{1f9} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::one (gccjit::type numeric_type) const +@anchor{cp/topics/expressions _CPPv4NK6gccjit7context3oneEN6gccjit4typeE}@anchor{1f8}@anchor{cp/topics/expressions _CPPv3NK6gccjit7context3oneEN6gccjit4typeE}@anchor{1f9}@anchor{cp/topics/expressions _CPPv2NK6gccjit7context3oneEN6gccjit4typeE}@anchor{1fa}@anchor{cp/topics/expressions gccjit context one__gccjit typeC}@anchor{1fb} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::one (gccjit::type numeric_type) const Given a numeric type (integer or floating point), get the rvalue for one. Essentially this is just a shortcut for: @@ -12464,36 +12462,36 @@ ctxt.new_rvalue (numeric_type, 1) @end deffn @geindex gccjit;;context;;new_rvalue (C++ function) -@anchor{cp/topics/expressions _CPPv4NK6gccjit7context10new_rvalueEN6gccjit4typeEd}@anchor{1fa}@anchor{cp/topics/expressions _CPPv3NK6gccjit7context10new_rvalueEN6gccjit4typeEd}@anchor{1fb}@anchor{cp/topics/expressions _CPPv2NK6gccjit7context10new_rvalueEN6gccjit4typeEd}@anchor{1fc}@anchor{cp/topics/expressions gccjit context new_rvalue__gccjit type doubleC}@anchor{1fd} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_rvalue (gccjit::type numeric_type, double value) const +@anchor{cp/topics/expressions _CPPv4NK6gccjit7context10new_rvalueEN6gccjit4typeEd}@anchor{1fc}@anchor{cp/topics/expressions _CPPv3NK6gccjit7context10new_rvalueEN6gccjit4typeEd}@anchor{1fd}@anchor{cp/topics/expressions _CPPv2NK6gccjit7context10new_rvalueEN6gccjit4typeEd}@anchor{1fe}@anchor{cp/topics/expressions gccjit context new_rvalue__gccjit type doubleC}@anchor{1ff} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_rvalue (gccjit::type numeric_type, double value) const Given a numeric type (integer or floating point), build an rvalue for the given constant @code{double} value. @end deffn @geindex gccjit;;context;;new_rvalue (C++ function) -@anchor{cp/topics/expressions _CPPv4NK6gccjit7context10new_rvalueEN6gccjit4typeEPv}@anchor{1fe}@anchor{cp/topics/expressions _CPPv3NK6gccjit7context10new_rvalueEN6gccjit4typeEPv}@anchor{1ff}@anchor{cp/topics/expressions _CPPv2NK6gccjit7context10new_rvalueEN6gccjit4typeEPv}@anchor{200}@anchor{cp/topics/expressions gccjit context new_rvalue__gccjit type voidPC}@anchor{201} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_rvalue (gccjit::type pointer_type, void *value) const +@anchor{cp/topics/expressions _CPPv4NK6gccjit7context10new_rvalueEN6gccjit4typeEPv}@anchor{200}@anchor{cp/topics/expressions _CPPv3NK6gccjit7context10new_rvalueEN6gccjit4typeEPv}@anchor{201}@anchor{cp/topics/expressions _CPPv2NK6gccjit7context10new_rvalueEN6gccjit4typeEPv}@anchor{202}@anchor{cp/topics/expressions gccjit context new_rvalue__gccjit type voidPC}@anchor{203} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_rvalue (gccjit::type pointer_type, void *value) const Given a pointer type, build an rvalue for the given address. @end deffn @geindex gccjit;;context;;new_rvalue (C++ function) -@anchor{cp/topics/expressions _CPPv4NK6gccjit7context10new_rvalueERKNSt6stringE}@anchor{202}@anchor{cp/topics/expressions _CPPv3NK6gccjit7context10new_rvalueERKNSt6stringE}@anchor{203}@anchor{cp/topics/expressions _CPPv2NK6gccjit7context10new_rvalueERKNSt6stringE}@anchor{204}@anchor{cp/topics/expressions gccjit context new_rvalue__ssCRC}@anchor{205} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_rvalue (const std::string &value) const +@anchor{cp/topics/expressions _CPPv4NK6gccjit7context10new_rvalueERKNSt6stringE}@anchor{204}@anchor{cp/topics/expressions _CPPv3NK6gccjit7context10new_rvalueERKNSt6stringE}@anchor{205}@anchor{cp/topics/expressions _CPPv2NK6gccjit7context10new_rvalueERKNSt6stringE}@anchor{206}@anchor{cp/topics/expressions gccjit context new_rvalue__ssCRC}@anchor{207} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_rvalue (const std::string &value) const Generate an rvalue of type @code{GCC_JIT_TYPE_CONST_CHAR_PTR} for the given string. This is akin to a string literal. @end deffn @node Vector expressions<2>,Unary Operations<2>,Simple expressions<2>,Rvalues<2> -@anchor{cp/topics/expressions vector-expressions}@anchor{206} +@anchor{cp/topics/expressions vector-expressions}@anchor{208} @subsubsection Vector expressions @geindex gccjit;;context;;new_rvalue (C++ function) -@anchor{cp/topics/expressions _CPPv4NK6gccjit7context10new_rvalueEN6gccjit4typeENSt6vectorIN6gccjit6rvalueEEE}@anchor{207}@anchor{cp/topics/expressions _CPPv3NK6gccjit7context10new_rvalueEN6gccjit4typeENSt6vectorIN6gccjit6rvalueEEE}@anchor{208}@anchor{cp/topics/expressions _CPPv2NK6gccjit7context10new_rvalueEN6gccjit4typeENSt6vectorIN6gccjit6rvalueEEE}@anchor{209}@anchor{cp/topics/expressions gccjit context new_rvalue__gccjit type std vector gccjit rvalue C}@anchor{20a} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_rvalue (gccjit::type vector_type, std::vector elements) const +@anchor{cp/topics/expressions _CPPv4NK6gccjit7context10new_rvalueEN6gccjit4typeENSt6vectorIN6gccjit6rvalueEEE}@anchor{209}@anchor{cp/topics/expressions _CPPv3NK6gccjit7context10new_rvalueEN6gccjit4typeENSt6vectorIN6gccjit6rvalueEEE}@anchor{20a}@anchor{cp/topics/expressions _CPPv2NK6gccjit7context10new_rvalueEN6gccjit4typeENSt6vectorIN6gccjit6rvalueEEE}@anchor{20b}@anchor{cp/topics/expressions gccjit context new_rvalue__gccjit type std vector gccjit rvalue C}@anchor{20c} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_rvalue (gccjit::type vector_type, std::vector elements) const Given a vector type, and a vector of scalar rvalue elements, generate a vector rvalue. @@ -12502,20 +12500,20 @@ The number of elements needs to match that of the vector type. @end deffn @node Unary Operations<2>,Binary Operations<2>,Vector expressions<2>,Rvalues<2> -@anchor{cp/topics/expressions unary-operations}@anchor{20b} +@anchor{cp/topics/expressions unary-operations}@anchor{20d} @subsubsection Unary Operations @geindex gccjit;;context;;new_unary_op (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context12new_unary_opE16gcc_jit_unary_opN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{20c}@anchor{cp/topics/expressions _CPPv3N6gccjit7context12new_unary_opE16gcc_jit_unary_opN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{20d}@anchor{cp/topics/expressions _CPPv2N6gccjit7context12new_unary_opE16gcc_jit_unary_opN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{20e}@anchor{cp/topics/expressions gccjit context new_unary_op__gcc_jit_unary_op gccjit type gccjit rvalue gccjit location}@anchor{20f} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_unary_op (enum gcc_jit_unary_op, gccjit::type result_type, gccjit::rvalue rvalue, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context12new_unary_opE16gcc_jit_unary_opN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{20e}@anchor{cp/topics/expressions _CPPv3N6gccjit7context12new_unary_opE16gcc_jit_unary_opN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{20f}@anchor{cp/topics/expressions _CPPv2N6gccjit7context12new_unary_opE16gcc_jit_unary_opN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{210}@anchor{cp/topics/expressions gccjit context new_unary_op__gcc_jit_unary_op gccjit type gccjit rvalue gccjit location}@anchor{211} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_unary_op (enum gcc_jit_unary_op, gccjit::type result_type, gccjit::rvalue rvalue, gccjit::location loc) Build a unary operation out of an input rvalue. Parameter @code{loc} is optional. This is a thin wrapper around the C API’s -@ref{a1,,gcc_jit_context_new_unary_op()} and the available unary +@ref{a2,,gcc_jit_context_new_unary_op()} and the available unary operations are documented there. @end deffn @@ -12523,8 +12521,8 @@ There are shorter ways to spell the various specific kinds of unary operation: @geindex gccjit;;context;;new_minus (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context9new_minusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{210}@anchor{cp/topics/expressions _CPPv3N6gccjit7context9new_minusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{211}@anchor{cp/topics/expressions _CPPv2N6gccjit7context9new_minusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{212}@anchor{cp/topics/expressions gccjit context new_minus__gccjit type gccjit rvalue gccjit location}@anchor{213} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_minus (gccjit::type result_type, gccjit::rvalue a, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context9new_minusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{212}@anchor{cp/topics/expressions _CPPv3N6gccjit7context9new_minusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{213}@anchor{cp/topics/expressions _CPPv2N6gccjit7context9new_minusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{214}@anchor{cp/topics/expressions gccjit context new_minus__gccjit type gccjit rvalue gccjit location}@anchor{215} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_minus (gccjit::type result_type, gccjit::rvalue a, gccjit::location loc) Negate an arithmetic value; for example: @@ -12540,8 +12538,8 @@ builds the equivalent of this C expression: @end deffn @geindex new_bitwise_negate (C++ function) -@anchor{cp/topics/expressions _CPPv418new_bitwise_negateN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{214}@anchor{cp/topics/expressions _CPPv318new_bitwise_negateN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{215}@anchor{cp/topics/expressions _CPPv218new_bitwise_negateN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{216}@anchor{cp/topics/expressions new_bitwise_negate__gccjit type gccjit rvalue gccjit location}@anchor{217} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} new_bitwise_negate (gccjit::type result_type, gccjit::rvalue a, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv418new_bitwise_negateN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{216}@anchor{cp/topics/expressions _CPPv318new_bitwise_negateN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{217}@anchor{cp/topics/expressions _CPPv218new_bitwise_negateN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{218}@anchor{cp/topics/expressions new_bitwise_negate__gccjit type gccjit rvalue gccjit location}@anchor{219} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} new_bitwise_negate (gccjit::type result_type, gccjit::rvalue a, gccjit::location loc) Bitwise negation of an integer value (one’s complement); for example: @@ -12557,8 +12555,8 @@ builds the equivalent of this C expression: @end deffn @geindex new_logical_negate (C++ function) -@anchor{cp/topics/expressions _CPPv418new_logical_negateN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{218}@anchor{cp/topics/expressions _CPPv318new_logical_negateN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{219}@anchor{cp/topics/expressions _CPPv218new_logical_negateN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{21a}@anchor{cp/topics/expressions new_logical_negate__gccjit type gccjit rvalue gccjit location}@anchor{21b} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} new_logical_negate (gccjit::type result_type, gccjit::rvalue a, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv418new_logical_negateN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{21a}@anchor{cp/topics/expressions _CPPv318new_logical_negateN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{21b}@anchor{cp/topics/expressions _CPPv218new_logical_negateN6gccjit4typeEN6gccjit6rvalueEN6gccjit8locationE}@anchor{21c}@anchor{cp/topics/expressions new_logical_negate__gccjit type gccjit rvalue gccjit location}@anchor{21d} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} new_logical_negate (gccjit::type result_type, gccjit::rvalue a, gccjit::location loc) Logical negation of an arithmetic or pointer value; for example: @@ -12576,8 +12574,8 @@ builds the equivalent of this C expression: The most concise way to spell them is with overloaded operators: @geindex operator- (C++ function) -@anchor{cp/topics/expressions _CPPv4miN6gccjit6rvalueE}@anchor{21c}@anchor{cp/topics/expressions _CPPv3miN6gccjit6rvalueE}@anchor{21d}@anchor{cp/topics/expressions _CPPv2miN6gccjit6rvalueE}@anchor{21e}@anchor{cp/topics/expressions sub-operator__gccjit rvalue}@anchor{21f} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator@w{-} (gccjit::rvalue a) +@anchor{cp/topics/expressions _CPPv4miN6gccjit6rvalueE}@anchor{21e}@anchor{cp/topics/expressions _CPPv3miN6gccjit6rvalueE}@anchor{21f}@anchor{cp/topics/expressions _CPPv2miN6gccjit6rvalueE}@anchor{220}@anchor{cp/topics/expressions sub-operator__gccjit rvalue}@anchor{221} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator@w{-} (gccjit::rvalue a) @example gccjit::rvalue negpi = -pi; @@ -12585,8 +12583,8 @@ gccjit::rvalue negpi = -pi; @end deffn @geindex operator~ (C++ function) -@anchor{cp/topics/expressions _CPPv4coN6gccjit6rvalueE}@anchor{220}@anchor{cp/topics/expressions _CPPv3coN6gccjit6rvalueE}@anchor{221}@anchor{cp/topics/expressions _CPPv2coN6gccjit6rvalueE}@anchor{222}@anchor{cp/topics/expressions inv-operator__gccjit rvalue}@anchor{223} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator~ (gccjit::rvalue a) +@anchor{cp/topics/expressions _CPPv4coN6gccjit6rvalueE}@anchor{222}@anchor{cp/topics/expressions _CPPv3coN6gccjit6rvalueE}@anchor{223}@anchor{cp/topics/expressions _CPPv2coN6gccjit6rvalueE}@anchor{224}@anchor{cp/topics/expressions inv-operator__gccjit rvalue}@anchor{225} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator~ (gccjit::rvalue a) @example gccjit::rvalue mask = ~a; @@ -12594,8 +12592,8 @@ gccjit::rvalue mask = ~a; @end deffn @geindex operator! (C++ function) -@anchor{cp/topics/expressions _CPPv4ntN6gccjit6rvalueE}@anchor{224}@anchor{cp/topics/expressions _CPPv3ntN6gccjit6rvalueE}@anchor{225}@anchor{cp/topics/expressions _CPPv2ntN6gccjit6rvalueE}@anchor{226}@anchor{cp/topics/expressions not-operator__gccjit rvalue}@anchor{227} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator! (gccjit::rvalue a) +@anchor{cp/topics/expressions _CPPv4ntN6gccjit6rvalueE}@anchor{226}@anchor{cp/topics/expressions _CPPv3ntN6gccjit6rvalueE}@anchor{227}@anchor{cp/topics/expressions _CPPv2ntN6gccjit6rvalueE}@anchor{228}@anchor{cp/topics/expressions not-operator__gccjit rvalue}@anchor{229} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator! (gccjit::rvalue a) @example gccjit::rvalue guard = !cond; @@ -12603,13 +12601,13 @@ gccjit::rvalue guard = !cond; @end deffn @node Binary Operations<2>,Comparisons<2>,Unary Operations<2>,Rvalues<2> -@anchor{cp/topics/expressions binary-operations}@anchor{228} +@anchor{cp/topics/expressions binary-operations}@anchor{22a} @subsubsection Binary Operations @geindex gccjit;;context;;new_binary_op (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context13new_binary_opE17gcc_jit_binary_opN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{130}@anchor{cp/topics/expressions _CPPv3N6gccjit7context13new_binary_opE17gcc_jit_binary_opN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{229}@anchor{cp/topics/expressions _CPPv2N6gccjit7context13new_binary_opE17gcc_jit_binary_opN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{22a}@anchor{cp/topics/expressions gccjit context new_binary_op__gcc_jit_binary_op gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{22b} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_binary_op (enum gcc_jit_binary_op, gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context13new_binary_opE17gcc_jit_binary_opN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{132}@anchor{cp/topics/expressions _CPPv3N6gccjit7context13new_binary_opE17gcc_jit_binary_opN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{22b}@anchor{cp/topics/expressions _CPPv2N6gccjit7context13new_binary_opE17gcc_jit_binary_opN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{22c}@anchor{cp/topics/expressions gccjit context new_binary_op__gcc_jit_binary_op gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{22d} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_binary_op (enum gcc_jit_binary_op, gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) Build a binary operation out of two constituent rvalues. @@ -12624,60 +12622,60 @@ There are shorter ways to spell the various specific kinds of binary operation: @geindex gccjit;;context;;new_plus (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context8new_plusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{22c}@anchor{cp/topics/expressions _CPPv3N6gccjit7context8new_plusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{22d}@anchor{cp/topics/expressions _CPPv2N6gccjit7context8new_plusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{22e}@anchor{cp/topics/expressions gccjit context new_plus__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{22f} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_plus (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context8new_plusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{22e}@anchor{cp/topics/expressions _CPPv3N6gccjit7context8new_plusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{22f}@anchor{cp/topics/expressions _CPPv2N6gccjit7context8new_plusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{230}@anchor{cp/topics/expressions gccjit context new_plus__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{231} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_plus (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) @end deffn @geindex gccjit;;context;;new_minus (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context9new_minusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{230}@anchor{cp/topics/expressions _CPPv3N6gccjit7context9new_minusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{231}@anchor{cp/topics/expressions _CPPv2N6gccjit7context9new_minusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{232}@anchor{cp/topics/expressions gccjit context new_minus__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{233} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_minus (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context9new_minusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{232}@anchor{cp/topics/expressions _CPPv3N6gccjit7context9new_minusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{233}@anchor{cp/topics/expressions _CPPv2N6gccjit7context9new_minusEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{234}@anchor{cp/topics/expressions gccjit context new_minus__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{235} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_minus (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) @end deffn @geindex gccjit;;context;;new_mult (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context8new_multEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{234}@anchor{cp/topics/expressions _CPPv3N6gccjit7context8new_multEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{235}@anchor{cp/topics/expressions _CPPv2N6gccjit7context8new_multEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{236}@anchor{cp/topics/expressions gccjit context new_mult__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{237} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_mult (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context8new_multEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{236}@anchor{cp/topics/expressions _CPPv3N6gccjit7context8new_multEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{237}@anchor{cp/topics/expressions _CPPv2N6gccjit7context8new_multEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{238}@anchor{cp/topics/expressions gccjit context new_mult__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{239} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_mult (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) @end deffn @geindex gccjit;;context;;new_divide (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context10new_divideEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{238}@anchor{cp/topics/expressions _CPPv3N6gccjit7context10new_divideEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{239}@anchor{cp/topics/expressions _CPPv2N6gccjit7context10new_divideEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{23a}@anchor{cp/topics/expressions gccjit context new_divide__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{23b} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_divide (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context10new_divideEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{23a}@anchor{cp/topics/expressions _CPPv3N6gccjit7context10new_divideEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{23b}@anchor{cp/topics/expressions _CPPv2N6gccjit7context10new_divideEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{23c}@anchor{cp/topics/expressions gccjit context new_divide__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{23d} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_divide (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) @end deffn @geindex gccjit;;context;;new_modulo (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context10new_moduloEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{23c}@anchor{cp/topics/expressions _CPPv3N6gccjit7context10new_moduloEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{23d}@anchor{cp/topics/expressions _CPPv2N6gccjit7context10new_moduloEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{23e}@anchor{cp/topics/expressions gccjit context new_modulo__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{23f} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_modulo (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context10new_moduloEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{23e}@anchor{cp/topics/expressions _CPPv3N6gccjit7context10new_moduloEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{23f}@anchor{cp/topics/expressions _CPPv2N6gccjit7context10new_moduloEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{240}@anchor{cp/topics/expressions gccjit context new_modulo__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{241} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_modulo (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) @end deffn @geindex gccjit;;context;;new_bitwise_and (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context15new_bitwise_andEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{240}@anchor{cp/topics/expressions _CPPv3N6gccjit7context15new_bitwise_andEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{241}@anchor{cp/topics/expressions _CPPv2N6gccjit7context15new_bitwise_andEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{242}@anchor{cp/topics/expressions gccjit context new_bitwise_and__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{243} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_bitwise_and (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context15new_bitwise_andEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{242}@anchor{cp/topics/expressions _CPPv3N6gccjit7context15new_bitwise_andEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{243}@anchor{cp/topics/expressions _CPPv2N6gccjit7context15new_bitwise_andEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{244}@anchor{cp/topics/expressions gccjit context new_bitwise_and__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{245} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_bitwise_and (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) @end deffn @geindex gccjit;;context;;new_bitwise_xor (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context15new_bitwise_xorEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{244}@anchor{cp/topics/expressions _CPPv3N6gccjit7context15new_bitwise_xorEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{245}@anchor{cp/topics/expressions _CPPv2N6gccjit7context15new_bitwise_xorEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{246}@anchor{cp/topics/expressions gccjit context new_bitwise_xor__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{247} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_bitwise_xor (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context15new_bitwise_xorEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{246}@anchor{cp/topics/expressions _CPPv3N6gccjit7context15new_bitwise_xorEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{247}@anchor{cp/topics/expressions _CPPv2N6gccjit7context15new_bitwise_xorEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{248}@anchor{cp/topics/expressions gccjit context new_bitwise_xor__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{249} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_bitwise_xor (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) @end deffn @geindex gccjit;;context;;new_bitwise_or (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context14new_bitwise_orEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{248}@anchor{cp/topics/expressions _CPPv3N6gccjit7context14new_bitwise_orEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{249}@anchor{cp/topics/expressions _CPPv2N6gccjit7context14new_bitwise_orEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{24a}@anchor{cp/topics/expressions gccjit context new_bitwise_or__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{24b} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_bitwise_or (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context14new_bitwise_orEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{24a}@anchor{cp/topics/expressions _CPPv3N6gccjit7context14new_bitwise_orEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{24b}@anchor{cp/topics/expressions _CPPv2N6gccjit7context14new_bitwise_orEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{24c}@anchor{cp/topics/expressions gccjit context new_bitwise_or__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{24d} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_bitwise_or (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) @end deffn @geindex gccjit;;context;;new_logical_and (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context15new_logical_andEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{24c}@anchor{cp/topics/expressions _CPPv3N6gccjit7context15new_logical_andEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{24d}@anchor{cp/topics/expressions _CPPv2N6gccjit7context15new_logical_andEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{24e}@anchor{cp/topics/expressions gccjit context new_logical_and__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{24f} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_logical_and (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context15new_logical_andEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{24e}@anchor{cp/topics/expressions _CPPv3N6gccjit7context15new_logical_andEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{24f}@anchor{cp/topics/expressions _CPPv2N6gccjit7context15new_logical_andEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{250}@anchor{cp/topics/expressions gccjit context new_logical_and__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{251} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_logical_and (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) @end deffn @geindex gccjit;;context;;new_logical_or (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context14new_logical_orEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{250}@anchor{cp/topics/expressions _CPPv3N6gccjit7context14new_logical_orEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{251}@anchor{cp/topics/expressions _CPPv2N6gccjit7context14new_logical_orEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{252}@anchor{cp/topics/expressions gccjit context new_logical_or__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{253} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_logical_or (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context14new_logical_orEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{252}@anchor{cp/topics/expressions _CPPv3N6gccjit7context14new_logical_orEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{253}@anchor{cp/topics/expressions _CPPv2N6gccjit7context14new_logical_orEN6gccjit4typeEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{254}@anchor{cp/topics/expressions gccjit context new_logical_or__gccjit type gccjit rvalue gccjit rvalue gccjit location}@anchor{255} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_logical_or (gccjit::type result_type, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) @end deffn The most concise way to spell them is with overloaded operators: @geindex operator+ (C++ function) -@anchor{cp/topics/expressions _CPPv4plN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{254}@anchor{cp/topics/expressions _CPPv3plN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{255}@anchor{cp/topics/expressions _CPPv2plN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{256}@anchor{cp/topics/expressions add-operator__gccjit rvalue gccjit rvalue}@anchor{257} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator+ (gccjit::rvalue a, gccjit::rvalue b) +@anchor{cp/topics/expressions _CPPv4plN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{256}@anchor{cp/topics/expressions _CPPv3plN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{257}@anchor{cp/topics/expressions _CPPv2plN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{258}@anchor{cp/topics/expressions add-operator__gccjit rvalue gccjit rvalue}@anchor{259} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator+ (gccjit::rvalue a, gccjit::rvalue b) @example gccjit::rvalue sum = a + b; @@ -12685,8 +12683,8 @@ gccjit::rvalue sum = a + b; @end deffn @geindex operator- (C++ function) -@anchor{cp/topics/expressions _CPPv4miN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{258}@anchor{cp/topics/expressions _CPPv3miN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{259}@anchor{cp/topics/expressions _CPPv2miN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{25a}@anchor{cp/topics/expressions sub-operator__gccjit rvalue gccjit rvalue}@anchor{25b} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator@w{-} (gccjit::rvalue a, gccjit::rvalue b) +@anchor{cp/topics/expressions _CPPv4miN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{25a}@anchor{cp/topics/expressions _CPPv3miN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{25b}@anchor{cp/topics/expressions _CPPv2miN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{25c}@anchor{cp/topics/expressions sub-operator__gccjit rvalue gccjit rvalue}@anchor{25d} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator@w{-} (gccjit::rvalue a, gccjit::rvalue b) @example gccjit::rvalue diff = a - b; @@ -12694,8 +12692,8 @@ gccjit::rvalue diff = a - b; @end deffn @geindex operator* (C++ function) -@anchor{cp/topics/expressions _CPPv4mlN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{25c}@anchor{cp/topics/expressions _CPPv3mlN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{25d}@anchor{cp/topics/expressions _CPPv2mlN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{25e}@anchor{cp/topics/expressions mul-operator__gccjit rvalue gccjit rvalue}@anchor{25f} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator* (gccjit::rvalue a, gccjit::rvalue b) +@anchor{cp/topics/expressions _CPPv4mlN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{25e}@anchor{cp/topics/expressions _CPPv3mlN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{25f}@anchor{cp/topics/expressions _CPPv2mlN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{260}@anchor{cp/topics/expressions mul-operator__gccjit rvalue gccjit rvalue}@anchor{261} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator* (gccjit::rvalue a, gccjit::rvalue b) @example gccjit::rvalue prod = a * b; @@ -12703,8 +12701,8 @@ gccjit::rvalue prod = a * b; @end deffn @geindex operator/ (C++ function) -@anchor{cp/topics/expressions _CPPv4dvN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{260}@anchor{cp/topics/expressions _CPPv3dvN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{261}@anchor{cp/topics/expressions _CPPv2dvN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{262}@anchor{cp/topics/expressions div-operator__gccjit rvalue gccjit rvalue}@anchor{263} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator/ (gccjit::rvalue a, gccjit::rvalue b) +@anchor{cp/topics/expressions _CPPv4dvN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{262}@anchor{cp/topics/expressions _CPPv3dvN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{263}@anchor{cp/topics/expressions _CPPv2dvN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{264}@anchor{cp/topics/expressions div-operator__gccjit rvalue gccjit rvalue}@anchor{265} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator/ (gccjit::rvalue a, gccjit::rvalue b) @example gccjit::rvalue result = a / b; @@ -12712,8 +12710,8 @@ gccjit::rvalue result = a / b; @end deffn @geindex operator% (C++ function) -@anchor{cp/topics/expressions _CPPv4rmN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{264}@anchor{cp/topics/expressions _CPPv3rmN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{265}@anchor{cp/topics/expressions _CPPv2rmN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{266}@anchor{cp/topics/expressions mod-operator__gccjit rvalue gccjit rvalue}@anchor{267} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator% (gccjit::rvalue a, gccjit::rvalue b) +@anchor{cp/topics/expressions _CPPv4rmN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{266}@anchor{cp/topics/expressions _CPPv3rmN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{267}@anchor{cp/topics/expressions _CPPv2rmN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{268}@anchor{cp/topics/expressions mod-operator__gccjit rvalue gccjit rvalue}@anchor{269} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator% (gccjit::rvalue a, gccjit::rvalue b) @example gccjit::rvalue mod = a % b; @@ -12721,8 +12719,8 @@ gccjit::rvalue mod = a % b; @end deffn @geindex operator& (C++ function) -@anchor{cp/topics/expressions _CPPv4anN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{268}@anchor{cp/topics/expressions _CPPv3anN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{269}@anchor{cp/topics/expressions _CPPv2anN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{26a}@anchor{cp/topics/expressions and-operator__gccjit rvalue gccjit rvalue}@anchor{26b} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator& (gccjit::rvalue a, gccjit::rvalue b) +@anchor{cp/topics/expressions _CPPv4anN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{26a}@anchor{cp/topics/expressions _CPPv3anN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{26b}@anchor{cp/topics/expressions _CPPv2anN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{26c}@anchor{cp/topics/expressions and-operator__gccjit rvalue gccjit rvalue}@anchor{26d} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator& (gccjit::rvalue a, gccjit::rvalue b) @example gccjit::rvalue x = a & b; @@ -12730,8 +12728,8 @@ gccjit::rvalue x = a & b; @end deffn @geindex operator^ (C++ function) -@anchor{cp/topics/expressions _CPPv4eoN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{26c}@anchor{cp/topics/expressions _CPPv3eoN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{26d}@anchor{cp/topics/expressions _CPPv2eoN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{26e}@anchor{cp/topics/expressions xor-operator__gccjit rvalue gccjit rvalue}@anchor{26f} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator^ (gccjit::rvalue a, gccjit::rvalue b) +@anchor{cp/topics/expressions _CPPv4eoN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{26e}@anchor{cp/topics/expressions _CPPv3eoN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{26f}@anchor{cp/topics/expressions _CPPv2eoN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{270}@anchor{cp/topics/expressions xor-operator__gccjit rvalue gccjit rvalue}@anchor{271} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator^ (gccjit::rvalue a, gccjit::rvalue b) @example gccjit::rvalue x = a ^ b; @@ -12739,8 +12737,8 @@ gccjit::rvalue x = a ^ b; @end deffn @geindex operator| (C++ function) -@anchor{cp/topics/expressions _CPPv4orN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{270}@anchor{cp/topics/expressions _CPPv3orN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{271}@anchor{cp/topics/expressions _CPPv2orN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{272}@anchor{cp/topics/expressions or-operator__gccjit rvalue gccjit rvalue}@anchor{273} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator| (gccjit::rvalue a, gccjit::rvalue b) +@anchor{cp/topics/expressions _CPPv4orN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{272}@anchor{cp/topics/expressions _CPPv3orN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{273}@anchor{cp/topics/expressions _CPPv2orN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{274}@anchor{cp/topics/expressions or-operator__gccjit rvalue gccjit rvalue}@anchor{275} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator| (gccjit::rvalue a, gccjit::rvalue b) @example gccjit::rvalue x = a | b; @@ -12748,8 +12746,8 @@ gccjit::rvalue x = a | b; @end deffn @geindex operator&& (C++ function) -@anchor{cp/topics/expressions _CPPv4aaN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{274}@anchor{cp/topics/expressions _CPPv3aaN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{275}@anchor{cp/topics/expressions _CPPv2aaN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{276}@anchor{cp/topics/expressions sand-operator__gccjit rvalue gccjit rvalue}@anchor{277} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator&& (gccjit::rvalue a, gccjit::rvalue b) +@anchor{cp/topics/expressions _CPPv4aaN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{276}@anchor{cp/topics/expressions _CPPv3aaN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{277}@anchor{cp/topics/expressions _CPPv2aaN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{278}@anchor{cp/topics/expressions sand-operator__gccjit rvalue gccjit rvalue}@anchor{279} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator&& (gccjit::rvalue a, gccjit::rvalue b) @example gccjit::rvalue cond = a && b; @@ -12757,8 +12755,8 @@ gccjit::rvalue cond = a && b; @end deffn @geindex operator|| (C++ function) -@anchor{cp/topics/expressions _CPPv4ooN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{278}@anchor{cp/topics/expressions _CPPv3ooN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{279}@anchor{cp/topics/expressions _CPPv2ooN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{27a}@anchor{cp/topics/expressions sor-operator__gccjit rvalue gccjit rvalue}@anchor{27b} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator|| (gccjit::rvalue a, gccjit::rvalue b) +@anchor{cp/topics/expressions _CPPv4ooN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{27a}@anchor{cp/topics/expressions _CPPv3ooN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{27b}@anchor{cp/topics/expressions _CPPv2ooN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{27c}@anchor{cp/topics/expressions sor-operator__gccjit rvalue gccjit rvalue}@anchor{27d} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator|| (gccjit::rvalue a, gccjit::rvalue b) @example gccjit::rvalue cond = a || b; @@ -12776,13 +12774,13 @@ gccjit::rvalue discriminant = (b * b) - (four * a * c); @end quotation @node Comparisons<2>,Function calls<2>,Binary Operations<2>,Rvalues<2> -@anchor{cp/topics/expressions comparisons}@anchor{27c} +@anchor{cp/topics/expressions comparisons}@anchor{27e} @subsubsection Comparisons @geindex gccjit;;context;;new_comparison (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context14new_comparisonE18gcc_jit_comparisonN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{142}@anchor{cp/topics/expressions _CPPv3N6gccjit7context14new_comparisonE18gcc_jit_comparisonN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{27d}@anchor{cp/topics/expressions _CPPv2N6gccjit7context14new_comparisonE18gcc_jit_comparisonN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{27e}@anchor{cp/topics/expressions gccjit context new_comparison__gcc_jit_comparison gccjit rvalue gccjit rvalue gccjit location}@anchor{27f} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_comparison (enum gcc_jit_comparison, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context14new_comparisonE18gcc_jit_comparisonN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{144}@anchor{cp/topics/expressions _CPPv3N6gccjit7context14new_comparisonE18gcc_jit_comparisonN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{27f}@anchor{cp/topics/expressions _CPPv2N6gccjit7context14new_comparisonE18gcc_jit_comparisonN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{280}@anchor{cp/topics/expressions gccjit context new_comparison__gcc_jit_comparison gccjit rvalue gccjit rvalue gccjit location}@anchor{281} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_comparison (enum gcc_jit_comparison, gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) Build a boolean rvalue out of the comparison of two other rvalues. @@ -12797,40 +12795,40 @@ There are shorter ways to spell the various specific kinds of binary operation: @geindex gccjit;;context;;new_eq (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context6new_eqEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{280}@anchor{cp/topics/expressions _CPPv3N6gccjit7context6new_eqEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{281}@anchor{cp/topics/expressions _CPPv2N6gccjit7context6new_eqEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{282}@anchor{cp/topics/expressions gccjit context new_eq__gccjit rvalue gccjit rvalue gccjit location}@anchor{283} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_eq (gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context6new_eqEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{282}@anchor{cp/topics/expressions _CPPv3N6gccjit7context6new_eqEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{283}@anchor{cp/topics/expressions _CPPv2N6gccjit7context6new_eqEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{284}@anchor{cp/topics/expressions gccjit context new_eq__gccjit rvalue gccjit rvalue gccjit location}@anchor{285} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_eq (gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) @end deffn @geindex gccjit;;context;;new_ne (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context6new_neEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{284}@anchor{cp/topics/expressions _CPPv3N6gccjit7context6new_neEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{285}@anchor{cp/topics/expressions _CPPv2N6gccjit7context6new_neEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{286}@anchor{cp/topics/expressions gccjit context new_ne__gccjit rvalue gccjit rvalue gccjit location}@anchor{287} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_ne (gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context6new_neEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{286}@anchor{cp/topics/expressions _CPPv3N6gccjit7context6new_neEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{287}@anchor{cp/topics/expressions _CPPv2N6gccjit7context6new_neEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{288}@anchor{cp/topics/expressions gccjit context new_ne__gccjit rvalue gccjit rvalue gccjit location}@anchor{289} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_ne (gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) @end deffn @geindex gccjit;;context;;new_lt (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context6new_ltEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{288}@anchor{cp/topics/expressions _CPPv3N6gccjit7context6new_ltEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{289}@anchor{cp/topics/expressions _CPPv2N6gccjit7context6new_ltEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{28a}@anchor{cp/topics/expressions gccjit context new_lt__gccjit rvalue gccjit rvalue gccjit location}@anchor{28b} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_lt (gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context6new_ltEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{28a}@anchor{cp/topics/expressions _CPPv3N6gccjit7context6new_ltEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{28b}@anchor{cp/topics/expressions _CPPv2N6gccjit7context6new_ltEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{28c}@anchor{cp/topics/expressions gccjit context new_lt__gccjit rvalue gccjit rvalue gccjit location}@anchor{28d} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_lt (gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) @end deffn @geindex gccjit;;context;;new_le (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context6new_leEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{28c}@anchor{cp/topics/expressions _CPPv3N6gccjit7context6new_leEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{28d}@anchor{cp/topics/expressions _CPPv2N6gccjit7context6new_leEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{28e}@anchor{cp/topics/expressions gccjit context new_le__gccjit rvalue gccjit rvalue gccjit location}@anchor{28f} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_le (gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context6new_leEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{28e}@anchor{cp/topics/expressions _CPPv3N6gccjit7context6new_leEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{28f}@anchor{cp/topics/expressions _CPPv2N6gccjit7context6new_leEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{290}@anchor{cp/topics/expressions gccjit context new_le__gccjit rvalue gccjit rvalue gccjit location}@anchor{291} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_le (gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) @end deffn @geindex gccjit;;context;;new_gt (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context6new_gtEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{290}@anchor{cp/topics/expressions _CPPv3N6gccjit7context6new_gtEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{291}@anchor{cp/topics/expressions _CPPv2N6gccjit7context6new_gtEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{292}@anchor{cp/topics/expressions gccjit context new_gt__gccjit rvalue gccjit rvalue gccjit location}@anchor{293} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_gt (gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context6new_gtEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{292}@anchor{cp/topics/expressions _CPPv3N6gccjit7context6new_gtEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{293}@anchor{cp/topics/expressions _CPPv2N6gccjit7context6new_gtEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{294}@anchor{cp/topics/expressions gccjit context new_gt__gccjit rvalue gccjit rvalue gccjit location}@anchor{295} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_gt (gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) @end deffn @geindex gccjit;;context;;new_ge (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context6new_geEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{294}@anchor{cp/topics/expressions _CPPv3N6gccjit7context6new_geEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{295}@anchor{cp/topics/expressions _CPPv2N6gccjit7context6new_geEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{296}@anchor{cp/topics/expressions gccjit context new_ge__gccjit rvalue gccjit rvalue gccjit location}@anchor{297} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_ge (gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context6new_geEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{296}@anchor{cp/topics/expressions _CPPv3N6gccjit7context6new_geEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{297}@anchor{cp/topics/expressions _CPPv2N6gccjit7context6new_geEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{298}@anchor{cp/topics/expressions gccjit context new_ge__gccjit rvalue gccjit rvalue gccjit location}@anchor{299} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_ge (gccjit::rvalue a, gccjit::rvalue b, gccjit::location loc) @end deffn The most concise way to spell them is with overloaded operators: @geindex operator== (C++ function) -@anchor{cp/topics/expressions _CPPv4eqN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{298}@anchor{cp/topics/expressions _CPPv3eqN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{299}@anchor{cp/topics/expressions _CPPv2eqN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{29a}@anchor{cp/topics/expressions eq-operator__gccjit rvalue gccjit rvalue}@anchor{29b} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator== (gccjit::rvalue a, gccjit::rvalue b) +@anchor{cp/topics/expressions _CPPv4eqN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{29a}@anchor{cp/topics/expressions _CPPv3eqN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{29b}@anchor{cp/topics/expressions _CPPv2eqN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{29c}@anchor{cp/topics/expressions eq-operator__gccjit rvalue gccjit rvalue}@anchor{29d} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator== (gccjit::rvalue a, gccjit::rvalue b) @example gccjit::rvalue cond = (a == ctxt.zero (t_int)); @@ -12838,8 +12836,8 @@ gccjit::rvalue cond = (a == ctxt.zero (t_int)); @end deffn @geindex operator!= (C++ function) -@anchor{cp/topics/expressions _CPPv4neN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{29c}@anchor{cp/topics/expressions _CPPv3neN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{29d}@anchor{cp/topics/expressions _CPPv2neN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{29e}@anchor{cp/topics/expressions neq-operator__gccjit rvalue gccjit rvalue}@anchor{29f} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator!= (gccjit::rvalue a, gccjit::rvalue b) +@anchor{cp/topics/expressions _CPPv4neN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{29e}@anchor{cp/topics/expressions _CPPv3neN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{29f}@anchor{cp/topics/expressions _CPPv2neN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2a0}@anchor{cp/topics/expressions neq-operator__gccjit rvalue gccjit rvalue}@anchor{2a1} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator!= (gccjit::rvalue a, gccjit::rvalue b) @example gccjit::rvalue cond = (i != j); @@ -12847,8 +12845,8 @@ gccjit::rvalue cond = (i != j); @end deffn @geindex operator< (C++ function) -@anchor{cp/topics/expressions _CPPv4ltN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2a0}@anchor{cp/topics/expressions _CPPv3ltN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2a1}@anchor{cp/topics/expressions _CPPv2ltN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2a2}@anchor{cp/topics/expressions lt-operator__gccjit rvalue gccjit rvalue}@anchor{2a3} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator< (gccjit::rvalue a, gccjit::rvalue b) +@anchor{cp/topics/expressions _CPPv4ltN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2a2}@anchor{cp/topics/expressions _CPPv3ltN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2a3}@anchor{cp/topics/expressions _CPPv2ltN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2a4}@anchor{cp/topics/expressions lt-operator__gccjit rvalue gccjit rvalue}@anchor{2a5} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator< (gccjit::rvalue a, gccjit::rvalue b) @example gccjit::rvalue cond = i < n; @@ -12856,8 +12854,8 @@ gccjit::rvalue cond = i < n; @end deffn @geindex operator<= (C++ function) -@anchor{cp/topics/expressions _CPPv4leN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2a4}@anchor{cp/topics/expressions _CPPv3leN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2a5}@anchor{cp/topics/expressions _CPPv2leN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2a6}@anchor{cp/topics/expressions lte-operator__gccjit rvalue gccjit rvalue}@anchor{2a7} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator<= (gccjit::rvalue a, gccjit::rvalue b) +@anchor{cp/topics/expressions _CPPv4leN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2a6}@anchor{cp/topics/expressions _CPPv3leN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2a7}@anchor{cp/topics/expressions _CPPv2leN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2a8}@anchor{cp/topics/expressions lte-operator__gccjit rvalue gccjit rvalue}@anchor{2a9} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator<= (gccjit::rvalue a, gccjit::rvalue b) @example gccjit::rvalue cond = i <= n; @@ -12865,8 +12863,8 @@ gccjit::rvalue cond = i <= n; @end deffn @geindex operator> (C++ function) -@anchor{cp/topics/expressions _CPPv4gtN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2a8}@anchor{cp/topics/expressions _CPPv3gtN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2a9}@anchor{cp/topics/expressions _CPPv2gtN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2aa}@anchor{cp/topics/expressions gt-operator__gccjit rvalue gccjit rvalue}@anchor{2ab} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator> (gccjit::rvalue a, gccjit::rvalue b) +@anchor{cp/topics/expressions _CPPv4gtN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2aa}@anchor{cp/topics/expressions _CPPv3gtN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2ab}@anchor{cp/topics/expressions _CPPv2gtN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2ac}@anchor{cp/topics/expressions gt-operator__gccjit rvalue gccjit rvalue}@anchor{2ad} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator> (gccjit::rvalue a, gccjit::rvalue b) @example gccjit::rvalue cond = (ch > limit); @@ -12874,8 +12872,8 @@ gccjit::rvalue cond = (ch > limit); @end deffn @geindex operator>= (C++ function) -@anchor{cp/topics/expressions _CPPv4geN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2ac}@anchor{cp/topics/expressions _CPPv3geN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2ad}@anchor{cp/topics/expressions _CPPv2geN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2ae}@anchor{cp/topics/expressions gte-operator__gccjit rvalue gccjit rvalue}@anchor{2af} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} operator>= (gccjit::rvalue a, gccjit::rvalue b) +@anchor{cp/topics/expressions _CPPv4geN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2ae}@anchor{cp/topics/expressions _CPPv3geN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2af}@anchor{cp/topics/expressions _CPPv2geN6gccjit6rvalueEN6gccjit6rvalueE}@anchor{2b0}@anchor{cp/topics/expressions gte-operator__gccjit rvalue gccjit rvalue}@anchor{2b1} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} operator>= (gccjit::rvalue a, gccjit::rvalue b) @example gccjit::rvalue cond = (score >= ctxt.new_rvalue (t_int, 100)); @@ -12885,12 +12883,12 @@ gccjit::rvalue cond = (score >= ctxt.new_rvalue (t_int, 100)); @c TODO: beyond this point @node Function calls<2>,Function pointers<3>,Comparisons<2>,Rvalues<2> -@anchor{cp/topics/expressions function-calls}@anchor{2b0} +@anchor{cp/topics/expressions function-calls}@anchor{2b2} @subsubsection Function calls @geindex gcc_jit_context_new_call (C++ function) -@anchor{cp/topics/expressions _CPPv424gcc_jit_context_new_callP15gcc_jit_contextP16gcc_jit_locationP16gcc_jit_functioniPP14gcc_jit_rvalue}@anchor{2b1}@anchor{cp/topics/expressions _CPPv324gcc_jit_context_new_callP15gcc_jit_contextP16gcc_jit_locationP16gcc_jit_functioniPP14gcc_jit_rvalue}@anchor{2b2}@anchor{cp/topics/expressions _CPPv224gcc_jit_context_new_callP15gcc_jit_contextP16gcc_jit_locationP16gcc_jit_functioniPP14gcc_jit_rvalue}@anchor{2b3}@anchor{cp/topics/expressions gcc_jit_context_new_call__gcc_jit_contextP gcc_jit_locationP gcc_jit_functionP i gcc_jit_rvaluePP}@anchor{2b4} +@anchor{cp/topics/expressions _CPPv424gcc_jit_context_new_callP15gcc_jit_contextP16gcc_jit_locationP16gcc_jit_functioniPP14gcc_jit_rvalue}@anchor{2b3}@anchor{cp/topics/expressions _CPPv324gcc_jit_context_new_callP15gcc_jit_contextP16gcc_jit_locationP16gcc_jit_functioniPP14gcc_jit_rvalue}@anchor{2b4}@anchor{cp/topics/expressions _CPPv224gcc_jit_context_new_callP15gcc_jit_contextP16gcc_jit_locationP16gcc_jit_functioniPP14gcc_jit_rvalue}@anchor{2b5}@anchor{cp/topics/expressions gcc_jit_context_new_call__gcc_jit_contextP gcc_jit_locationP gcc_jit_functionP i gcc_jit_rvaluePP}@anchor{2b6} @deffn {C++ Function} gcc_jit_rvalue *gcc_jit_context_new_call (gcc_jit_context *ctxt, gcc_jit_location *loc, gcc_jit_function *func, int numargs, gcc_jit_rvalue **args) Given a function and the given table of argument rvalues, construct a @@ -12899,14 +12897,14 @@ call to the function, with the result as an rvalue. @cartouche @quotation Note @code{gccjit::context::new_call()} merely builds a -@ref{131,,gccjit;;rvalue} i.e. an expression that can be evaluated, +@ref{133,,gccjit;;rvalue} i.e. an expression that can be evaluated, perhaps as part of a more complicated expression. The call @emph{won’t} happen unless you add a statement to a function that evaluates the expression. For example, if you want to call a function and discard the result (or to call a function with @code{void} return type), use -@ref{2b5,,gccjit;;block;;add_eval()}: +@ref{2b7,,gccjit;;block;;add_eval()}: @example /* Add "(void)printf (arg0, arg1);". */ @@ -12917,26 +12915,26 @@ block.add_eval (ctxt.new_call (printf_func, arg0, arg1)); @end deffn @node Function pointers<3>,Type-coercion<2>,Function calls<2>,Rvalues<2> -@anchor{cp/topics/expressions function-pointers}@anchor{2b6} +@anchor{cp/topics/expressions function-pointers}@anchor{2b8} @subsubsection Function pointers @geindex gccjit;;function;;get_address (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit8function11get_addressEN6gccjit8locationE}@anchor{2b7}@anchor{cp/topics/expressions _CPPv3N6gccjit8function11get_addressEN6gccjit8locationE}@anchor{2b8}@anchor{cp/topics/expressions _CPPv2N6gccjit8function11get_addressEN6gccjit8locationE}@anchor{2b9}@anchor{cp/topics/expressions gccjit function get_address__gccjit location}@anchor{2ba} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{13f,,function}::get_address (gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit8function11get_addressEN6gccjit8locationE}@anchor{2b9}@anchor{cp/topics/expressions _CPPv3N6gccjit8function11get_addressEN6gccjit8locationE}@anchor{2ba}@anchor{cp/topics/expressions _CPPv2N6gccjit8function11get_addressEN6gccjit8locationE}@anchor{2bb}@anchor{cp/topics/expressions gccjit function get_address__gccjit location}@anchor{2bc} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{141,,function}::get_address (gccjit::location loc) Get the address of a function as an rvalue, of function pointer type. @end deffn @node Type-coercion<2>,,Function pointers<3>,Rvalues<2> -@anchor{cp/topics/expressions type-coercion}@anchor{2bb} +@anchor{cp/topics/expressions type-coercion}@anchor{2bd} @subsubsection Type-coercion @geindex gccjit;;context;;new_cast (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context8new_castEN6gccjit6rvalueEN6gccjit4typeEN6gccjit8locationE}@anchor{2bc}@anchor{cp/topics/expressions _CPPv3N6gccjit7context8new_castEN6gccjit6rvalueEN6gccjit4typeEN6gccjit8locationE}@anchor{2bd}@anchor{cp/topics/expressions _CPPv2N6gccjit7context8new_castEN6gccjit6rvalueEN6gccjit4typeEN6gccjit8locationE}@anchor{2be}@anchor{cp/topics/expressions gccjit context new_cast__gccjit rvalue gccjit type gccjit location}@anchor{2bf} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{128,,context}::new_cast (gccjit::rvalue rvalue, gccjit::type type, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context8new_castEN6gccjit6rvalueEN6gccjit4typeEN6gccjit8locationE}@anchor{2be}@anchor{cp/topics/expressions _CPPv3N6gccjit7context8new_castEN6gccjit6rvalueEN6gccjit4typeEN6gccjit8locationE}@anchor{2bf}@anchor{cp/topics/expressions _CPPv2N6gccjit7context8new_castEN6gccjit6rvalueEN6gccjit4typeEN6gccjit8locationE}@anchor{2c0}@anchor{cp/topics/expressions gccjit context new_cast__gccjit rvalue gccjit type gccjit location}@anchor{2c1} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{12a,,context}::new_cast (gccjit::rvalue rvalue, gccjit::type type, gccjit::location loc) Given an rvalue of T, construct another rvalue of another type. @@ -12960,25 +12958,25 @@ P* <-> Q*, for pointer types P and Q @end deffn @node Lvalues<2>,Working with pointers structs and unions<2>,Rvalues<2>,Expressions<2> -@anchor{cp/topics/expressions lvalues}@anchor{2c0} +@anchor{cp/topics/expressions lvalues}@anchor{2c2} @subsubsection Lvalues @geindex gccjit;;lvalue (C++ class) -@anchor{cp/topics/expressions _CPPv4N6gccjit6lvalueE}@anchor{13a}@anchor{cp/topics/expressions _CPPv3N6gccjit6lvalueE}@anchor{2c1}@anchor{cp/topics/expressions _CPPv2N6gccjit6lvalueE}@anchor{2c2}@anchor{cp/topics/expressions gccjit lvalue}@anchor{2c3} +@anchor{cp/topics/expressions _CPPv4N6gccjit6lvalueE}@anchor{13c}@anchor{cp/topics/expressions _CPPv3N6gccjit6lvalueE}@anchor{2c3}@anchor{cp/topics/expressions _CPPv2N6gccjit6lvalueE}@anchor{2c4}@anchor{cp/topics/expressions gccjit lvalue}@anchor{2c5} @deffn {C++ Class} gccjit::lvalue @end deffn An lvalue is something that can of the @emph{left}-hand side of an assignment: a storage area (such as a variable). It is a subclass of -@ref{131,,gccjit;;rvalue}, where the rvalue is computed by reading from the +@ref{133,,gccjit;;rvalue}, where the rvalue is computed by reading from the storage area. It iss a thin wrapper around @ref{24,,gcc_jit_lvalue *} from the C API. @geindex gccjit;;lvalue;;get_address (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit6lvalue11get_addressEN6gccjit8locationE}@anchor{2c4}@anchor{cp/topics/expressions _CPPv3N6gccjit6lvalue11get_addressEN6gccjit8locationE}@anchor{2c5}@anchor{cp/topics/expressions _CPPv2N6gccjit6lvalue11get_addressEN6gccjit8locationE}@anchor{2c6}@anchor{cp/topics/expressions gccjit lvalue get_address__gccjit location}@anchor{2c7} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{13a,,lvalue}::get_address (gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit6lvalue11get_addressEN6gccjit8locationE}@anchor{2c6}@anchor{cp/topics/expressions _CPPv3N6gccjit6lvalue11get_addressEN6gccjit8locationE}@anchor{2c7}@anchor{cp/topics/expressions _CPPv2N6gccjit6lvalue11get_addressEN6gccjit8locationE}@anchor{2c8}@anchor{cp/topics/expressions gccjit lvalue get_address__gccjit location}@anchor{2c9} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{13c,,lvalue}::get_address (gccjit::location loc) Take the address of an lvalue; analogous to: @@ -12997,28 +12995,28 @@ Parameter “loc” is optional. @end menu @node Global variables<2>,,,Lvalues<2> -@anchor{cp/topics/expressions global-variables}@anchor{2c8} +@anchor{cp/topics/expressions global-variables}@anchor{2ca} @subsubsection Global variables @geindex gccjit;;context;;new_global (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context10new_globalE19gcc_jit_global_kindN6gccjit4typeEPKcN6gccjit8locationE}@anchor{2c9}@anchor{cp/topics/expressions _CPPv3N6gccjit7context10new_globalE19gcc_jit_global_kindN6gccjit4typeEPKcN6gccjit8locationE}@anchor{2ca}@anchor{cp/topics/expressions _CPPv2N6gccjit7context10new_globalE19gcc_jit_global_kindN6gccjit4typeEPKcN6gccjit8locationE}@anchor{2cb}@anchor{cp/topics/expressions gccjit context new_global__gcc_jit_global_kind gccjit type cCP gccjit location}@anchor{2cc} -@deffn {C++ Function} gccjit::@ref{13a,,lvalue} gccjit::@ref{128,,context}::new_global (enum gcc_jit_global_kind, gccjit::type type, const char *name, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context10new_globalE19gcc_jit_global_kindN6gccjit4typeEPKcN6gccjit8locationE}@anchor{2cb}@anchor{cp/topics/expressions _CPPv3N6gccjit7context10new_globalE19gcc_jit_global_kindN6gccjit4typeEPKcN6gccjit8locationE}@anchor{2cc}@anchor{cp/topics/expressions _CPPv2N6gccjit7context10new_globalE19gcc_jit_global_kindN6gccjit4typeEPKcN6gccjit8locationE}@anchor{2cd}@anchor{cp/topics/expressions gccjit context new_global__gcc_jit_global_kind gccjit type cCP gccjit location}@anchor{2ce} +@deffn {C++ Function} gccjit::@ref{13c,,lvalue} gccjit::@ref{12a,,context}::new_global (enum gcc_jit_global_kind, gccjit::type type, const char *name, gccjit::location loc) Add a new global variable of the given type and name to the context. -This is a thin wrapper around @ref{c7,,gcc_jit_context_new_global()} from +This is a thin wrapper around @ref{c8,,gcc_jit_context_new_global()} from the C API; the “kind” parameter has the same meaning as there. @end deffn @node Working with pointers structs and unions<2>,,Lvalues<2>,Expressions<2> -@anchor{cp/topics/expressions working-with-pointers-structs-and-unions}@anchor{2cd} +@anchor{cp/topics/expressions working-with-pointers-structs-and-unions}@anchor{2cf} @subsubsection Working with pointers, structs and unions @geindex gccjit;;rvalue;;dereference (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit6rvalue11dereferenceEN6gccjit8locationE}@anchor{2ce}@anchor{cp/topics/expressions _CPPv3N6gccjit6rvalue11dereferenceEN6gccjit8locationE}@anchor{2cf}@anchor{cp/topics/expressions _CPPv2N6gccjit6rvalue11dereferenceEN6gccjit8locationE}@anchor{2d0}@anchor{cp/topics/expressions gccjit rvalue dereference__gccjit location}@anchor{2d1} -@deffn {C++ Function} gccjit::@ref{13a,,lvalue} gccjit::@ref{131,,rvalue}::dereference (gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit6rvalue11dereferenceEN6gccjit8locationE}@anchor{2d0}@anchor{cp/topics/expressions _CPPv3N6gccjit6rvalue11dereferenceEN6gccjit8locationE}@anchor{2d1}@anchor{cp/topics/expressions _CPPv2N6gccjit6rvalue11dereferenceEN6gccjit8locationE}@anchor{2d2}@anchor{cp/topics/expressions gccjit rvalue dereference__gccjit location}@anchor{2d3} +@deffn {C++ Function} gccjit::@ref{13c,,lvalue} gccjit::@ref{133,,rvalue}::dereference (gccjit::location loc) Given an rvalue of pointer type @code{T *}, dereferencing the pointer, getting an lvalue of type @code{T}. Analogous to: @@ -13036,8 +13034,8 @@ If you don’t need to specify the location, this can also be expressed using an overloaded operator: @geindex gccjit;;rvalue;;operator* (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit6rvaluemlEv}@anchor{2d2}@anchor{cp/topics/expressions _CPPv3N6gccjit6rvaluemlEv}@anchor{2d3}@anchor{cp/topics/expressions _CPPv2N6gccjit6rvaluemlEv}@anchor{2d4}@anchor{cp/topics/expressions gccjit rvalue mul-operator}@anchor{2d5} -@deffn {C++ Function} gccjit::@ref{13a,,lvalue} gccjit::@ref{131,,rvalue}::operator* () +@anchor{cp/topics/expressions _CPPv4N6gccjit6rvaluemlEv}@anchor{2d4}@anchor{cp/topics/expressions _CPPv3N6gccjit6rvaluemlEv}@anchor{2d5}@anchor{cp/topics/expressions _CPPv2N6gccjit6rvaluemlEv}@anchor{2d6}@anchor{cp/topics/expressions gccjit rvalue mul-operator}@anchor{2d7} +@deffn {C++ Function} gccjit::@ref{13c,,lvalue} gccjit::@ref{133,,rvalue}::operator* () @example gccjit::lvalue content = *ptr; @@ -13047,8 +13045,8 @@ gccjit::lvalue content = *ptr; Field access is provided separately for both lvalues and rvalues: @geindex gccjit;;lvalue;;access_field (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit6lvalue12access_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2d6}@anchor{cp/topics/expressions _CPPv3N6gccjit6lvalue12access_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2d7}@anchor{cp/topics/expressions _CPPv2N6gccjit6lvalue12access_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2d8}@anchor{cp/topics/expressions gccjit lvalue access_field__gccjit field gccjit location}@anchor{2d9} -@deffn {C++ Function} gccjit::@ref{13a,,lvalue} gccjit::@ref{13a,,lvalue}::access_field (gccjit::field field, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit6lvalue12access_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2d8}@anchor{cp/topics/expressions _CPPv3N6gccjit6lvalue12access_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2d9}@anchor{cp/topics/expressions _CPPv2N6gccjit6lvalue12access_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2da}@anchor{cp/topics/expressions gccjit lvalue access_field__gccjit field gccjit location}@anchor{2db} +@deffn {C++ Function} gccjit::@ref{13c,,lvalue} gccjit::@ref{13c,,lvalue}::access_field (gccjit::field field, gccjit::location loc) Given an lvalue of struct or union type, access the given field, getting an lvalue of the field’s type. Analogous to: @@ -13061,8 +13059,8 @@ in C. @end deffn @geindex gccjit;;rvalue;;access_field (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit6rvalue12access_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2da}@anchor{cp/topics/expressions _CPPv3N6gccjit6rvalue12access_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2db}@anchor{cp/topics/expressions _CPPv2N6gccjit6rvalue12access_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2dc}@anchor{cp/topics/expressions gccjit rvalue access_field__gccjit field gccjit location}@anchor{2dd} -@deffn {C++ Function} gccjit::@ref{131,,rvalue} gccjit::@ref{131,,rvalue}::access_field (gccjit::field field, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit6rvalue12access_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2dc}@anchor{cp/topics/expressions _CPPv3N6gccjit6rvalue12access_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2dd}@anchor{cp/topics/expressions _CPPv2N6gccjit6rvalue12access_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2de}@anchor{cp/topics/expressions gccjit rvalue access_field__gccjit field gccjit location}@anchor{2df} +@deffn {C++ Function} gccjit::@ref{133,,rvalue} gccjit::@ref{133,,rvalue}::access_field (gccjit::field field, gccjit::location loc) Given an rvalue of struct or union type, access the given field as an rvalue. Analogous to: @@ -13075,8 +13073,8 @@ in C. @end deffn @geindex gccjit;;rvalue;;dereference_field (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit6rvalue17dereference_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2de}@anchor{cp/topics/expressions _CPPv3N6gccjit6rvalue17dereference_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2df}@anchor{cp/topics/expressions _CPPv2N6gccjit6rvalue17dereference_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2e0}@anchor{cp/topics/expressions gccjit rvalue dereference_field__gccjit field gccjit location}@anchor{2e1} -@deffn {C++ Function} gccjit::@ref{13a,,lvalue} gccjit::@ref{131,,rvalue}::dereference_field (gccjit::field field, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit6rvalue17dereference_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2e0}@anchor{cp/topics/expressions _CPPv3N6gccjit6rvalue17dereference_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2e1}@anchor{cp/topics/expressions _CPPv2N6gccjit6rvalue17dereference_fieldEN6gccjit5fieldEN6gccjit8locationE}@anchor{2e2}@anchor{cp/topics/expressions gccjit rvalue dereference_field__gccjit field gccjit location}@anchor{2e3} +@deffn {C++ Function} gccjit::@ref{13c,,lvalue} gccjit::@ref{133,,rvalue}::dereference_field (gccjit::field field, gccjit::location loc) Given an rvalue of pointer type @code{T *} where T is of struct or union type, access the given field as an lvalue. Analogous to: @@ -13089,8 +13087,8 @@ in C, itself equivalent to @code{(*EXPR).FIELD}. @end deffn @geindex gccjit;;context;;new_array_access (C++ function) -@anchor{cp/topics/expressions _CPPv4N6gccjit7context16new_array_accessEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{2e2}@anchor{cp/topics/expressions _CPPv3N6gccjit7context16new_array_accessEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{2e3}@anchor{cp/topics/expressions _CPPv2N6gccjit7context16new_array_accessEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{2e4}@anchor{cp/topics/expressions gccjit context new_array_access__gccjit rvalue gccjit rvalue gccjit location}@anchor{2e5} -@deffn {C++ Function} gccjit::@ref{13a,,lvalue} gccjit::@ref{128,,context}::new_array_access (gccjit::rvalue ptr, gccjit::rvalue index, gccjit::location loc) +@anchor{cp/topics/expressions _CPPv4N6gccjit7context16new_array_accessEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{2e4}@anchor{cp/topics/expressions _CPPv3N6gccjit7context16new_array_accessEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{2e5}@anchor{cp/topics/expressions _CPPv2N6gccjit7context16new_array_accessEN6gccjit6rvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{2e6}@anchor{cp/topics/expressions gccjit context new_array_access__gccjit rvalue gccjit rvalue gccjit location}@anchor{2e7} +@deffn {C++ Function} gccjit::@ref{13c,,lvalue} gccjit::@ref{12a,,context}::new_array_access (gccjit::rvalue ptr, gccjit::rvalue index, gccjit::location loc) Given an rvalue of pointer type @code{T *}, get at the element @cite{T} at the given index, using standard C array indexing rules i.e. each @@ -13106,7 +13104,7 @@ in C (or, indeed, to @code{PTR + INDEX}). Parameter “loc” is optional. @end deffn -For array accesses where you don’t need to specify a @ref{14e,,gccjit;;location}, +For array accesses where you don’t need to specify a @ref{150,,gccjit;;location}, two overloaded operators are available: @quotation @@ -13142,7 +13140,7 @@ gccjit::lvalue element = array[0]; @c . @node Creating and using functions<2>,Source Locations<2>,Expressions<2>,Topic Reference<2> -@anchor{cp/topics/functions doc}@anchor{2e6}@anchor{cp/topics/functions creating-and-using-functions}@anchor{2e7} +@anchor{cp/topics/functions doc}@anchor{2e8}@anchor{cp/topics/functions creating-and-using-functions}@anchor{2e9} @subsection Creating and using functions @@ -13155,36 +13153,36 @@ gccjit::lvalue element = array[0]; @end menu @node Params<2>,Functions<2>,,Creating and using functions<2> -@anchor{cp/topics/functions params}@anchor{2e8} +@anchor{cp/topics/functions params}@anchor{2ea} @subsubsection Params @geindex gccjit;;param (C++ class) -@anchor{cp/topics/functions _CPPv4N6gccjit5paramE}@anchor{13b}@anchor{cp/topics/functions _CPPv3N6gccjit5paramE}@anchor{2e9}@anchor{cp/topics/functions _CPPv2N6gccjit5paramE}@anchor{2ea}@anchor{cp/topics/functions gccjit param}@anchor{2eb} +@anchor{cp/topics/functions _CPPv4N6gccjit5paramE}@anchor{13d}@anchor{cp/topics/functions _CPPv3N6gccjit5paramE}@anchor{2eb}@anchor{cp/topics/functions _CPPv2N6gccjit5paramE}@anchor{2ec}@anchor{cp/topics/functions gccjit param}@anchor{2ed} @deffn {C++ Class} gccjit::param A @cite{gccjit::param} represents a parameter to a function. @end deffn @geindex gccjit;;context;;new_param (C++ function) -@anchor{cp/topics/functions _CPPv4N6gccjit7context9new_paramEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{12f}@anchor{cp/topics/functions _CPPv3N6gccjit7context9new_paramEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{2ec}@anchor{cp/topics/functions _CPPv2N6gccjit7context9new_paramEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{2ed}@anchor{cp/topics/functions gccjit context new_param__gccjit type cCP gccjit location}@anchor{2ee} -@deffn {C++ Function} gccjit::@ref{13b,,param} gccjit::@ref{128,,context}::new_param (gccjit::type type, const char *name, gccjit::location loc) +@anchor{cp/topics/functions _CPPv4N6gccjit7context9new_paramEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{131}@anchor{cp/topics/functions _CPPv3N6gccjit7context9new_paramEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{2ee}@anchor{cp/topics/functions _CPPv2N6gccjit7context9new_paramEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{2ef}@anchor{cp/topics/functions gccjit context new_param__gccjit type cCP gccjit location}@anchor{2f0} +@deffn {C++ Function} gccjit::@ref{13d,,param} gccjit::@ref{12a,,context}::new_param (gccjit::type type, const char *name, gccjit::location loc) In preparation for creating a function, create a new parameter of the given type and name. @end deffn -@ref{13b,,gccjit;;param} is a subclass of @ref{13a,,gccjit;;lvalue} (and thus -of @ref{131,,gccjit;;rvalue} and @ref{12d,,gccjit;;object}). It is a thin +@ref{13d,,gccjit;;param} is a subclass of @ref{13c,,gccjit;;lvalue} (and thus +of @ref{133,,gccjit;;rvalue} and @ref{12f,,gccjit;;object}). It is a thin wrapper around the C API’s @ref{25,,gcc_jit_param *}. @node Functions<2>,Blocks<2>,Params<2>,Creating and using functions<2> -@anchor{cp/topics/functions functions}@anchor{2ef} +@anchor{cp/topics/functions functions}@anchor{2f1} @subsubsection Functions @geindex gccjit;;function (C++ class) -@anchor{cp/topics/functions _CPPv4N6gccjit8functionE}@anchor{13f}@anchor{cp/topics/functions _CPPv3N6gccjit8functionE}@anchor{2f0}@anchor{cp/topics/functions _CPPv2N6gccjit8functionE}@anchor{2f1}@anchor{cp/topics/functions gccjit function}@anchor{2f2} +@anchor{cp/topics/functions _CPPv4N6gccjit8functionE}@anchor{141}@anchor{cp/topics/functions _CPPv3N6gccjit8functionE}@anchor{2f2}@anchor{cp/topics/functions _CPPv2N6gccjit8functionE}@anchor{2f3}@anchor{cp/topics/functions gccjit function}@anchor{2f4} @deffn {C++ Class} gccjit::function A @cite{gccjit::function} represents a function - either one that we’re @@ -13192,8 +13190,8 @@ creating ourselves, or one that we’re referencing. @end deffn @geindex gccjit;;context;;new_function (C++ function) -@anchor{cp/topics/functions _CPPv4N6gccjit7context12new_functionE21gcc_jit_function_kindN6gccjit4typeEPKcRNSt6vectorI5paramEEiN6gccjit8locationE}@anchor{2f3}@anchor{cp/topics/functions _CPPv3N6gccjit7context12new_functionE21gcc_jit_function_kindN6gccjit4typeEPKcRNSt6vectorI5paramEEiN6gccjit8locationE}@anchor{2f4}@anchor{cp/topics/functions _CPPv2N6gccjit7context12new_functionE21gcc_jit_function_kindN6gccjit4typeEPKcRNSt6vectorI5paramEEiN6gccjit8locationE}@anchor{2f5}@anchor{cp/topics/functions gccjit context new_function__gcc_jit_function_kind gccjit type cCP std vector param R i gccjit location}@anchor{2f6} -@deffn {C++ Function} gccjit::@ref{13f,,function} gccjit::@ref{128,,context}::new_function (enum gcc_jit_function_kind, gccjit::type return_type, const char *name, std::vector ¶ms, int is_variadic, gccjit::location loc) +@anchor{cp/topics/functions _CPPv4N6gccjit7context12new_functionE21gcc_jit_function_kindN6gccjit4typeEPKcRNSt6vectorI5paramEEiN6gccjit8locationE}@anchor{2f5}@anchor{cp/topics/functions _CPPv3N6gccjit7context12new_functionE21gcc_jit_function_kindN6gccjit4typeEPKcRNSt6vectorI5paramEEiN6gccjit8locationE}@anchor{2f6}@anchor{cp/topics/functions _CPPv2N6gccjit7context12new_functionE21gcc_jit_function_kindN6gccjit4typeEPKcRNSt6vectorI5paramEEiN6gccjit8locationE}@anchor{2f7}@anchor{cp/topics/functions gccjit context new_function__gcc_jit_function_kind gccjit type cCP std vector param R i gccjit location}@anchor{2f8} +@deffn {C++ Function} gccjit::@ref{141,,function} gccjit::@ref{12a,,context}::new_function (enum gcc_jit_function_kind, gccjit::type return_type, const char *name, std::vector ¶ms, int is_variadic, gccjit::location loc) Create a gcc_jit_function with the given name and parameters. @@ -13203,49 +13201,49 @@ This is a wrapper around the C API’s @ref{11,,gcc_jit_context_new_function()}. @end deffn @geindex gccjit;;context;;get_builtin_function (C++ function) -@anchor{cp/topics/functions _CPPv4N6gccjit7context20get_builtin_functionEPKc}@anchor{2f7}@anchor{cp/topics/functions _CPPv3N6gccjit7context20get_builtin_functionEPKc}@anchor{2f8}@anchor{cp/topics/functions _CPPv2N6gccjit7context20get_builtin_functionEPKc}@anchor{2f9}@anchor{cp/topics/functions gccjit context get_builtin_function__cCP}@anchor{2fa} -@deffn {C++ Function} gccjit::@ref{13f,,function} gccjit::@ref{128,,context}::get_builtin_function (const char *name) +@anchor{cp/topics/functions _CPPv4N6gccjit7context20get_builtin_functionEPKc}@anchor{2f9}@anchor{cp/topics/functions _CPPv3N6gccjit7context20get_builtin_functionEPKc}@anchor{2fa}@anchor{cp/topics/functions _CPPv2N6gccjit7context20get_builtin_functionEPKc}@anchor{2fb}@anchor{cp/topics/functions gccjit context get_builtin_function__cCP}@anchor{2fc} +@deffn {C++ Function} gccjit::@ref{141,,function} gccjit::@ref{12a,,context}::get_builtin_function (const char *name) This is a wrapper around the C API’s -@ref{de,,gcc_jit_context_get_builtin_function()}. +@ref{df,,gcc_jit_context_get_builtin_function()}. @end deffn @geindex gccjit;;function;;get_param (C++ function) -@anchor{cp/topics/functions _CPPv4NK6gccjit8function9get_paramEi}@anchor{2fb}@anchor{cp/topics/functions _CPPv3NK6gccjit8function9get_paramEi}@anchor{2fc}@anchor{cp/topics/functions _CPPv2NK6gccjit8function9get_paramEi}@anchor{2fd}@anchor{cp/topics/functions gccjit function get_param__iC}@anchor{2fe} -@deffn {C++ Function} gccjit::@ref{13b,,param} gccjit::@ref{13f,,function}::get_param (int index) const +@anchor{cp/topics/functions _CPPv4NK6gccjit8function9get_paramEi}@anchor{2fd}@anchor{cp/topics/functions _CPPv3NK6gccjit8function9get_paramEi}@anchor{2fe}@anchor{cp/topics/functions _CPPv2NK6gccjit8function9get_paramEi}@anchor{2ff}@anchor{cp/topics/functions gccjit function get_param__iC}@anchor{300} +@deffn {C++ Function} gccjit::@ref{13d,,param} gccjit::@ref{141,,function}::get_param (int index) const Get the param of the given index (0-based). @end deffn @geindex gccjit;;function;;dump_to_dot (C++ function) -@anchor{cp/topics/functions _CPPv4N6gccjit8function11dump_to_dotEPKc}@anchor{147}@anchor{cp/topics/functions _CPPv3N6gccjit8function11dump_to_dotEPKc}@anchor{2ff}@anchor{cp/topics/functions _CPPv2N6gccjit8function11dump_to_dotEPKc}@anchor{300}@anchor{cp/topics/functions gccjit function dump_to_dot__cCP}@anchor{301} -@deffn {C++ Function} void gccjit::@ref{13f,,function}::dump_to_dot (const char *path) +@anchor{cp/topics/functions _CPPv4N6gccjit8function11dump_to_dotEPKc}@anchor{149}@anchor{cp/topics/functions _CPPv3N6gccjit8function11dump_to_dotEPKc}@anchor{301}@anchor{cp/topics/functions _CPPv2N6gccjit8function11dump_to_dotEPKc}@anchor{302}@anchor{cp/topics/functions gccjit function dump_to_dot__cCP}@anchor{303} +@deffn {C++ Function} void gccjit::@ref{141,,function}::dump_to_dot (const char *path) Emit the function in graphviz format to the given path. @end deffn @geindex gccjit;;function;;new_local (C++ function) -@anchor{cp/topics/functions _CPPv4N6gccjit8function9new_localEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{13c}@anchor{cp/topics/functions _CPPv3N6gccjit8function9new_localEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{302}@anchor{cp/topics/functions _CPPv2N6gccjit8function9new_localEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{303}@anchor{cp/topics/functions gccjit function new_local__gccjit type cCP gccjit location}@anchor{304} -@deffn {C++ Function} gccjit::@ref{13a,,lvalue} gccjit::@ref{13f,,function}::new_local (gccjit::type type, const char *name, gccjit::location loc) +@anchor{cp/topics/functions _CPPv4N6gccjit8function9new_localEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{13e}@anchor{cp/topics/functions _CPPv3N6gccjit8function9new_localEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{304}@anchor{cp/topics/functions _CPPv2N6gccjit8function9new_localEN6gccjit4typeEPKcN6gccjit8locationE}@anchor{305}@anchor{cp/topics/functions gccjit function new_local__gccjit type cCP gccjit location}@anchor{306} +@deffn {C++ Function} gccjit::@ref{13c,,lvalue} gccjit::@ref{141,,function}::new_local (gccjit::type type, const char *name, gccjit::location loc) Create a new local variable within the function, of the given type and name. @end deffn @node Blocks<2>,Statements<2>,Functions<2>,Creating and using functions<2> -@anchor{cp/topics/functions blocks}@anchor{305} +@anchor{cp/topics/functions blocks}@anchor{307} @subsubsection Blocks @geindex gccjit;;block (C++ class) -@anchor{cp/topics/functions _CPPv4N6gccjit5blockE}@anchor{13e}@anchor{cp/topics/functions _CPPv3N6gccjit5blockE}@anchor{306}@anchor{cp/topics/functions _CPPv2N6gccjit5blockE}@anchor{307}@anchor{cp/topics/functions gccjit block}@anchor{308} +@anchor{cp/topics/functions _CPPv4N6gccjit5blockE}@anchor{140}@anchor{cp/topics/functions _CPPv3N6gccjit5blockE}@anchor{308}@anchor{cp/topics/functions _CPPv2N6gccjit5blockE}@anchor{309}@anchor{cp/topics/functions gccjit block}@anchor{30a} @deffn {C++ Class} gccjit::block A @cite{gccjit::block} represents a basic block within a function i.e. a sequence of statements with a single entry point and a single exit point. -@ref{13e,,gccjit;;block} is a subclass of @ref{12d,,gccjit;;object}. +@ref{140,,gccjit;;block} is a subclass of @ref{12f,,gccjit;;object}. The first basic block that you create within a function will be the entrypoint. @@ -13259,8 +13257,8 @@ one function. @end deffn @geindex gccjit;;function;;new_block (C++ function) -@anchor{cp/topics/functions _CPPv4N6gccjit8function9new_blockEPKc}@anchor{309}@anchor{cp/topics/functions _CPPv3N6gccjit8function9new_blockEPKc}@anchor{30a}@anchor{cp/topics/functions _CPPv2N6gccjit8function9new_blockEPKc}@anchor{30b}@anchor{cp/topics/functions gccjit function new_block__cCP}@anchor{30c} -@deffn {C++ Function} gccjit::@ref{13e,,block} gccjit::@ref{13f,,function}::new_block (const char *name) +@anchor{cp/topics/functions _CPPv4N6gccjit8function9new_blockEPKc}@anchor{30b}@anchor{cp/topics/functions _CPPv3N6gccjit8function9new_blockEPKc}@anchor{30c}@anchor{cp/topics/functions _CPPv2N6gccjit8function9new_blockEPKc}@anchor{30d}@anchor{cp/topics/functions gccjit function new_block__cCP}@anchor{30e} +@deffn {C++ Function} gccjit::@ref{140,,block} gccjit::@ref{141,,function}::new_block (const char *name) Create a basic block of the given name. The name may be NULL, but providing meaningful names is often helpful when debugging: it may @@ -13269,13 +13267,13 @@ messages. @end deffn @node Statements<2>,,Blocks<2>,Creating and using functions<2> -@anchor{cp/topics/functions statements}@anchor{30d} +@anchor{cp/topics/functions statements}@anchor{30f} @subsubsection Statements @geindex gccjit;;block;;add_eval (C++ function) -@anchor{cp/topics/functions _CPPv4N6gccjit5block8add_evalEN6gccjit6rvalueEN6gccjit8locationE}@anchor{2b5}@anchor{cp/topics/functions _CPPv3N6gccjit5block8add_evalEN6gccjit6rvalueEN6gccjit8locationE}@anchor{30e}@anchor{cp/topics/functions _CPPv2N6gccjit5block8add_evalEN6gccjit6rvalueEN6gccjit8locationE}@anchor{30f}@anchor{cp/topics/functions gccjit block add_eval__gccjit rvalue gccjit location}@anchor{310} -@deffn {C++ Function} void gccjit::@ref{13e,,block}::add_eval (gccjit::rvalue rvalue, gccjit::location loc) +@anchor{cp/topics/functions _CPPv4N6gccjit5block8add_evalEN6gccjit6rvalueEN6gccjit8locationE}@anchor{2b7}@anchor{cp/topics/functions _CPPv3N6gccjit5block8add_evalEN6gccjit6rvalueEN6gccjit8locationE}@anchor{310}@anchor{cp/topics/functions _CPPv2N6gccjit5block8add_evalEN6gccjit6rvalueEN6gccjit8locationE}@anchor{311}@anchor{cp/topics/functions gccjit block add_eval__gccjit rvalue gccjit location}@anchor{312} +@deffn {C++ Function} void gccjit::@ref{140,,block}::add_eval (gccjit::rvalue rvalue, gccjit::location loc) Add evaluation of an rvalue, discarding the result (e.g. a function call that “returns” void). @@ -13288,8 +13286,8 @@ This is equivalent to this C code: @end deffn @geindex gccjit;;block;;add_assignment (C++ function) -@anchor{cp/topics/functions _CPPv4N6gccjit5block14add_assignmentEN6gccjit6lvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{140}@anchor{cp/topics/functions _CPPv3N6gccjit5block14add_assignmentEN6gccjit6lvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{311}@anchor{cp/topics/functions _CPPv2N6gccjit5block14add_assignmentEN6gccjit6lvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{312}@anchor{cp/topics/functions gccjit block add_assignment__gccjit lvalue gccjit rvalue gccjit location}@anchor{313} -@deffn {C++ Function} void gccjit::@ref{13e,,block}::add_assignment (gccjit::lvalue lvalue, gccjit::rvalue rvalue, gccjit::location loc) +@anchor{cp/topics/functions _CPPv4N6gccjit5block14add_assignmentEN6gccjit6lvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{142}@anchor{cp/topics/functions _CPPv3N6gccjit5block14add_assignmentEN6gccjit6lvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{313}@anchor{cp/topics/functions _CPPv2N6gccjit5block14add_assignmentEN6gccjit6lvalueEN6gccjit6rvalueEN6gccjit8locationE}@anchor{314}@anchor{cp/topics/functions gccjit block add_assignment__gccjit lvalue gccjit rvalue gccjit location}@anchor{315} +@deffn {C++ Function} void gccjit::@ref{140,,block}::add_assignment (gccjit::lvalue lvalue, gccjit::rvalue rvalue, gccjit::location loc) Add evaluation of an rvalue, assigning the result to the given lvalue. @@ -13302,8 +13300,8 @@ lvalue = rvalue; @end deffn @geindex gccjit;;block;;add_assignment_op (C++ function) -@anchor{cp/topics/functions _CPPv4N6gccjit5block17add_assignment_opEN6gccjit6lvalueE17gcc_jit_binary_opN6gccjit6rvalueEN6gccjit8locationE}@anchor{144}@anchor{cp/topics/functions _CPPv3N6gccjit5block17add_assignment_opEN6gccjit6lvalueE17gcc_jit_binary_opN6gccjit6rvalueEN6gccjit8locationE}@anchor{314}@anchor{cp/topics/functions _CPPv2N6gccjit5block17add_assignment_opEN6gccjit6lvalueE17gcc_jit_binary_opN6gccjit6rvalueEN6gccjit8locationE}@anchor{315}@anchor{cp/topics/functions gccjit block add_assignment_op__gccjit lvalue gcc_jit_binary_op gccjit rvalue gccjit location}@anchor{316} -@deffn {C++ Function} void gccjit::@ref{13e,,block}::add_assignment_op (gccjit::lvalue lvalue, enum gcc_jit_binary_op, gccjit::rvalue rvalue, gccjit::location loc) +@anchor{cp/topics/functions _CPPv4N6gccjit5block17add_assignment_opEN6gccjit6lvalueE17gcc_jit_binary_opN6gccjit6rvalueEN6gccjit8locationE}@anchor{146}@anchor{cp/topics/functions _CPPv3N6gccjit5block17add_assignment_opEN6gccjit6lvalueE17gcc_jit_binary_opN6gccjit6rvalueEN6gccjit8locationE}@anchor{316}@anchor{cp/topics/functions _CPPv2N6gccjit5block17add_assignment_opEN6gccjit6lvalueE17gcc_jit_binary_opN6gccjit6rvalueEN6gccjit8locationE}@anchor{317}@anchor{cp/topics/functions gccjit block add_assignment_op__gccjit lvalue gcc_jit_binary_op gccjit rvalue gccjit location}@anchor{318} +@deffn {C++ Function} void gccjit::@ref{140,,block}::add_assignment_op (gccjit::lvalue lvalue, enum gcc_jit_binary_op, gccjit::rvalue rvalue, gccjit::location loc) Add evaluation of an rvalue, using the result to modify an lvalue. @@ -13328,8 +13326,8 @@ loop_body.add_assignment_op ( @end deffn @geindex gccjit;;block;;add_comment (C++ function) -@anchor{cp/topics/functions _CPPv4N6gccjit5block11add_commentEPKcN6gccjit8locationE}@anchor{150}@anchor{cp/topics/functions _CPPv3N6gccjit5block11add_commentEPKcN6gccjit8locationE}@anchor{317}@anchor{cp/topics/functions _CPPv2N6gccjit5block11add_commentEPKcN6gccjit8locationE}@anchor{318}@anchor{cp/topics/functions gccjit block add_comment__cCP gccjit location}@anchor{319} -@deffn {C++ Function} void gccjit::@ref{13e,,block}::add_comment (const char *text, gccjit::location loc) +@anchor{cp/topics/functions _CPPv4N6gccjit5block11add_commentEPKcN6gccjit8locationE}@anchor{152}@anchor{cp/topics/functions _CPPv3N6gccjit5block11add_commentEPKcN6gccjit8locationE}@anchor{319}@anchor{cp/topics/functions _CPPv2N6gccjit5block11add_commentEPKcN6gccjit8locationE}@anchor{31a}@anchor{cp/topics/functions gccjit block add_comment__cCP gccjit location}@anchor{31b} +@deffn {C++ Function} void gccjit::@ref{140,,block}::add_comment (const char *text, gccjit::location loc) Add a no-op textual comment to the internal representation of the code. It will be optimized away, but will be visible in the dumps @@ -13342,8 +13340,8 @@ Parameter “loc” is optional. @end deffn @geindex gccjit;;block;;end_with_conditional (C++ function) -@anchor{cp/topics/functions _CPPv4N6gccjit5block20end_with_conditionalEN6gccjit6rvalueEN6gccjit5blockEN6gccjit5blockEN6gccjit8locationE}@anchor{143}@anchor{cp/topics/functions _CPPv3N6gccjit5block20end_with_conditionalEN6gccjit6rvalueEN6gccjit5blockEN6gccjit5blockEN6gccjit8locationE}@anchor{31a}@anchor{cp/topics/functions _CPPv2N6gccjit5block20end_with_conditionalEN6gccjit6rvalueEN6gccjit5blockEN6gccjit5blockEN6gccjit8locationE}@anchor{31b}@anchor{cp/topics/functions gccjit block end_with_conditional__gccjit rvalue gccjit block gccjit block gccjit location}@anchor{31c} -@deffn {C++ Function} void gccjit::@ref{13e,,block}::end_with_conditional (gccjit::rvalue boolval, gccjit::block on_true, gccjit::block on_false, gccjit::location loc) +@anchor{cp/topics/functions _CPPv4N6gccjit5block20end_with_conditionalEN6gccjit6rvalueEN6gccjit5blockEN6gccjit5blockEN6gccjit8locationE}@anchor{145}@anchor{cp/topics/functions _CPPv3N6gccjit5block20end_with_conditionalEN6gccjit6rvalueEN6gccjit5blockEN6gccjit5blockEN6gccjit8locationE}@anchor{31c}@anchor{cp/topics/functions _CPPv2N6gccjit5block20end_with_conditionalEN6gccjit6rvalueEN6gccjit5blockEN6gccjit5blockEN6gccjit8locationE}@anchor{31d}@anchor{cp/topics/functions gccjit block end_with_conditional__gccjit rvalue gccjit block gccjit block gccjit location}@anchor{31e} +@deffn {C++ Function} void gccjit::@ref{140,,block}::end_with_conditional (gccjit::rvalue boolval, gccjit::block on_true, gccjit::block on_false, gccjit::location loc) Terminate a block by adding evaluation of an rvalue, branching on the result to the appropriate successor block. @@ -13361,8 +13359,8 @@ block, boolval, on_true, and on_false must be non-NULL. @end deffn @geindex gccjit;;block;;end_with_jump (C++ function) -@anchor{cp/topics/functions _CPPv4N6gccjit5block13end_with_jumpEN6gccjit5blockEN6gccjit8locationE}@anchor{31d}@anchor{cp/topics/functions _CPPv3N6gccjit5block13end_with_jumpEN6gccjit5blockEN6gccjit8locationE}@anchor{31e}@anchor{cp/topics/functions _CPPv2N6gccjit5block13end_with_jumpEN6gccjit5blockEN6gccjit8locationE}@anchor{31f}@anchor{cp/topics/functions gccjit block end_with_jump__gccjit block gccjit location}@anchor{320} -@deffn {C++ Function} void gccjit::@ref{13e,,block}::end_with_jump (gccjit::block target, gccjit::location loc) +@anchor{cp/topics/functions _CPPv4N6gccjit5block13end_with_jumpEN6gccjit5blockEN6gccjit8locationE}@anchor{31f}@anchor{cp/topics/functions _CPPv3N6gccjit5block13end_with_jumpEN6gccjit5blockEN6gccjit8locationE}@anchor{320}@anchor{cp/topics/functions _CPPv2N6gccjit5block13end_with_jumpEN6gccjit5blockEN6gccjit8locationE}@anchor{321}@anchor{cp/topics/functions gccjit block end_with_jump__gccjit block gccjit location}@anchor{322} +@deffn {C++ Function} void gccjit::@ref{140,,block}::end_with_jump (gccjit::block target, gccjit::location loc) Terminate a block by adding a jump to the given target block. @@ -13374,8 +13372,8 @@ goto target; @end deffn @geindex gccjit;;block;;end_with_return (C++ function) -@anchor{cp/topics/functions _CPPv4N6gccjit5block15end_with_returnEN6gccjit6rvalueEN6gccjit8locationE}@anchor{321}@anchor{cp/topics/functions _CPPv3N6gccjit5block15end_with_returnEN6gccjit6rvalueEN6gccjit8locationE}@anchor{322}@anchor{cp/topics/functions _CPPv2N6gccjit5block15end_with_returnEN6gccjit6rvalueEN6gccjit8locationE}@anchor{323}@anchor{cp/topics/functions gccjit block end_with_return__gccjit rvalue gccjit location}@anchor{324} -@deffn {C++ Function} void gccjit::@ref{13e,,block}::end_with_return (gccjit::rvalue rvalue, gccjit::location loc) +@anchor{cp/topics/functions _CPPv4N6gccjit5block15end_with_returnEN6gccjit6rvalueEN6gccjit8locationE}@anchor{323}@anchor{cp/topics/functions _CPPv3N6gccjit5block15end_with_returnEN6gccjit6rvalueEN6gccjit8locationE}@anchor{324}@anchor{cp/topics/functions _CPPv2N6gccjit5block15end_with_returnEN6gccjit6rvalueEN6gccjit8locationE}@anchor{325}@anchor{cp/topics/functions gccjit block end_with_return__gccjit rvalue gccjit location}@anchor{326} +@deffn {C++ Function} void gccjit::@ref{140,,block}::end_with_return (gccjit::rvalue rvalue, gccjit::location loc) Terminate a block. @@ -13404,8 +13402,8 @@ return; @end deffn @geindex gccjit;;block;;end_with_switch (C++ function) -@anchor{cp/topics/functions _CPPv4N6gccjit5block15end_with_switchEN6gccjit6rvalueEN6gccjit5blockENSt6vectorIN6gccjit5case_EEEN6gccjit8locationE}@anchor{325}@anchor{cp/topics/functions _CPPv3N6gccjit5block15end_with_switchEN6gccjit6rvalueEN6gccjit5blockENSt6vectorIN6gccjit5case_EEEN6gccjit8locationE}@anchor{326}@anchor{cp/topics/functions _CPPv2N6gccjit5block15end_with_switchEN6gccjit6rvalueEN6gccjit5blockENSt6vectorIN6gccjit5case_EEEN6gccjit8locationE}@anchor{327}@anchor{cp/topics/functions gccjit block end_with_switch__gccjit rvalue gccjit block std vector gccjit case_ gccjit location}@anchor{328} -@deffn {C++ Function} void gccjit::@ref{13e,,block}::end_with_switch (gccjit::rvalue expr, gccjit::block default_block, std::vector cases, gccjit::location loc) +@anchor{cp/topics/functions _CPPv4N6gccjit5block15end_with_switchEN6gccjit6rvalueEN6gccjit5blockENSt6vectorIN6gccjit5case_EEEN6gccjit8locationE}@anchor{327}@anchor{cp/topics/functions _CPPv3N6gccjit5block15end_with_switchEN6gccjit6rvalueEN6gccjit5blockENSt6vectorIN6gccjit5case_EEEN6gccjit8locationE}@anchor{328}@anchor{cp/topics/functions _CPPv2N6gccjit5block15end_with_switchEN6gccjit6rvalueEN6gccjit5blockENSt6vectorIN6gccjit5case_EEEN6gccjit8locationE}@anchor{329}@anchor{cp/topics/functions gccjit block end_with_switch__gccjit rvalue gccjit block std vector gccjit case_ gccjit location}@anchor{32a} +@deffn {C++ Function} void gccjit::@ref{140,,block}::end_with_switch (gccjit::rvalue expr, gccjit::block default_block, std::vector cases, gccjit::location loc) Terminate a block by adding evalation of an rvalue, then performing a multiway branch. @@ -13445,14 +13443,14 @@ The API entrypoints relating to switch statements and cases: @itemize * @item -@ref{325,,gccjit;;block;;end_with_switch()} +@ref{327,,gccjit;;block;;end_with_switch()} @item @code{gccjit::context::new_case()} @end itemize @end quotation -were added in @ref{ec,,LIBGCCJIT_ABI_3}; you can test for their presence +were added in @ref{ed,,LIBGCCJIT_ABI_3}; you can test for their presence using @example @@ -13460,9 +13458,9 @@ using @end example A @cite{gccjit::case_} represents a case within a switch statement, and -is created within a particular @ref{128,,gccjit;;context} using +is created within a particular @ref{12a,,gccjit;;context} using @code{gccjit::context::new_case()}. It is a subclass of -@ref{12d,,gccjit;;object}. +@ref{12f,,gccjit;;object}. Each case expresses a multivalued range of integer values. You can express single-valued cases by passing in the same value for @@ -13565,12 +13563,12 @@ create_code (gcc_jit_context *c_ctxt, void *user_data) @c . @node Source Locations<2>,Compiling a context<2>,Creating and using functions<2>,Topic Reference<2> -@anchor{cp/topics/locations doc}@anchor{329}@anchor{cp/topics/locations source-locations}@anchor{32a} +@anchor{cp/topics/locations doc}@anchor{32b}@anchor{cp/topics/locations source-locations}@anchor{32c} @subsection Source Locations @geindex gccjit;;location (C++ class) -@anchor{cp/topics/locations _CPPv4N6gccjit8locationE}@anchor{14e}@anchor{cp/topics/locations _CPPv3N6gccjit8locationE}@anchor{32b}@anchor{cp/topics/locations _CPPv2N6gccjit8locationE}@anchor{32c}@anchor{cp/topics/locations gccjit location}@anchor{32d} +@anchor{cp/topics/locations _CPPv4N6gccjit8locationE}@anchor{150}@anchor{cp/topics/locations _CPPv3N6gccjit8locationE}@anchor{32d}@anchor{cp/topics/locations _CPPv2N6gccjit8locationE}@anchor{32e}@anchor{cp/topics/locations gccjit location}@anchor{32f} @deffn {C++ Class} gccjit::location A @cite{gccjit::location} encapsulates a source code location, so that @@ -13581,10 +13579,10 @@ single-step through your language. @cite{gccjit::location} instances are optional: you can always omit them from any C++ API entrypoint accepting one. -You can construct them using @ref{154,,gccjit;;context;;new_location()}. +You can construct them using @ref{156,,gccjit;;context;;new_location()}. You need to enable @ref{42,,GCC_JIT_BOOL_OPTION_DEBUGINFO} on the -@ref{128,,gccjit;;context} for these locations to actually be usable by +@ref{12a,,gccjit;;context} for these locations to actually be usable by the debugger: @example @@ -13593,8 +13591,8 @@ ctxt.set_bool_option (GCC_JIT_BOOL_OPTION_DEBUGINFO, 1); @end deffn @geindex gccjit;;context;;new_location (C++ function) -@anchor{cp/topics/locations _CPPv4N6gccjit7context12new_locationEPKcii}@anchor{154}@anchor{cp/topics/locations _CPPv3N6gccjit7context12new_locationEPKcii}@anchor{32e}@anchor{cp/topics/locations _CPPv2N6gccjit7context12new_locationEPKcii}@anchor{32f}@anchor{cp/topics/locations gccjit context new_location__cCP i i}@anchor{330} -@deffn {C++ Function} gccjit::@ref{14e,,location} gccjit::@ref{128,,context}::new_location (const char *filename, int line, int column) +@anchor{cp/topics/locations _CPPv4N6gccjit7context12new_locationEPKcii}@anchor{156}@anchor{cp/topics/locations _CPPv3N6gccjit7context12new_locationEPKcii}@anchor{330}@anchor{cp/topics/locations _CPPv2N6gccjit7context12new_locationEPKcii}@anchor{331}@anchor{cp/topics/locations gccjit context new_location__cCP i i}@anchor{332} +@deffn {C++ Function} gccjit::@ref{150,,location} gccjit::@ref{12a,,context}::new_location (const char *filename, int line, int column) Create a @cite{gccjit::location} instance representing the given source location. @@ -13606,13 +13604,13 @@ location. @end menu @node Faking it<2>,,,Source Locations<2> -@anchor{cp/topics/locations faking-it}@anchor{331} +@anchor{cp/topics/locations faking-it}@anchor{333} @subsubsection Faking it If you don’t have source code for your internal representation, but need to debug, you can generate a C-like representation of the functions in -your context using @ref{173,,gccjit;;context;;dump_to_file()}: +your context using @ref{175,,gccjit;;context;;dump_to_file()}: @example ctxt.dump_to_file ("/tmp/something.c", @@ -13642,13 +13640,13 @@ file, giving you @emph{something} you can step through in the debugger. @c . @node Compiling a context<2>,,Source Locations<2>,Topic Reference<2> -@anchor{cp/topics/compilation doc}@anchor{332}@anchor{cp/topics/compilation compiling-a-context}@anchor{333} +@anchor{cp/topics/compilation doc}@anchor{334}@anchor{cp/topics/compilation compiling-a-context}@anchor{335} @subsection Compiling a context -Once populated, a @ref{128,,gccjit;;context} can be compiled to -machine code, either in-memory via @ref{132,,gccjit;;context;;compile()} or -to disk via @ref{334,,gccjit;;context;;compile_to_file()}. +Once populated, a @ref{12a,,gccjit;;context} can be compiled to +machine code, either in-memory via @ref{134,,gccjit;;context;;compile()} or +to disk via @ref{336,,gccjit;;context;;compile_to_file()}. You can compile a context multiple times (using either form of compilation), although any errors that occur on the context will @@ -13661,13 +13659,13 @@ prevent any future compilation of that context. @end menu @node In-memory compilation<2>,Ahead-of-time compilation<2>,,Compiling a context<2> -@anchor{cp/topics/compilation in-memory-compilation}@anchor{335} +@anchor{cp/topics/compilation in-memory-compilation}@anchor{337} @subsubsection In-memory compilation @geindex gccjit;;context;;compile (C++ function) -@anchor{cp/topics/compilation _CPPv4N6gccjit7context7compileEv}@anchor{132}@anchor{cp/topics/compilation _CPPv3N6gccjit7context7compileEv}@anchor{336}@anchor{cp/topics/compilation _CPPv2N6gccjit7context7compileEv}@anchor{337}@anchor{cp/topics/compilation gccjit context compile}@anchor{338} -@deffn {C++ Function} gcc_jit_result *gccjit::@ref{128,,context}::compile () +@anchor{cp/topics/compilation _CPPv4N6gccjit7context7compileEv}@anchor{134}@anchor{cp/topics/compilation _CPPv3N6gccjit7context7compileEv}@anchor{338}@anchor{cp/topics/compilation _CPPv2N6gccjit7context7compileEv}@anchor{339}@anchor{cp/topics/compilation gccjit context compile}@anchor{33a} +@deffn {C++ Function} gcc_jit_result *gccjit::@ref{12a,,context}::compile () This calls into GCC and builds the code, returning a @cite{gcc_jit_result *}. @@ -13677,19 +13675,19 @@ This is a thin wrapper around the @end deffn @node Ahead-of-time compilation<2>,,In-memory compilation<2>,Compiling a context<2> -@anchor{cp/topics/compilation ahead-of-time-compilation}@anchor{339} +@anchor{cp/topics/compilation ahead-of-time-compilation}@anchor{33b} @subsubsection Ahead-of-time compilation Although libgccjit is primarily aimed at just-in-time compilation, it can also be used for implementing more traditional ahead-of-time -compilers, via the @ref{334,,gccjit;;context;;compile_to_file()} method. +compilers, via the @ref{336,,gccjit;;context;;compile_to_file()} method. @geindex gccjit;;context;;compile_to_file (C++ function) -@anchor{cp/topics/compilation _CPPv4N6gccjit7context15compile_to_fileE19gcc_jit_output_kindPKc}@anchor{334}@anchor{cp/topics/compilation _CPPv3N6gccjit7context15compile_to_fileE19gcc_jit_output_kindPKc}@anchor{33a}@anchor{cp/topics/compilation _CPPv2N6gccjit7context15compile_to_fileE19gcc_jit_output_kindPKc}@anchor{33b}@anchor{cp/topics/compilation gccjit context compile_to_file__gcc_jit_output_kind cCP}@anchor{33c} -@deffn {C++ Function} void gccjit::@ref{128,,context}::compile_to_file (enum gcc_jit_output_kind, const char *output_path) +@anchor{cp/topics/compilation _CPPv4N6gccjit7context15compile_to_fileE19gcc_jit_output_kindPKc}@anchor{336}@anchor{cp/topics/compilation _CPPv3N6gccjit7context15compile_to_fileE19gcc_jit_output_kindPKc}@anchor{33c}@anchor{cp/topics/compilation _CPPv2N6gccjit7context15compile_to_fileE19gcc_jit_output_kindPKc}@anchor{33d}@anchor{cp/topics/compilation gccjit context compile_to_file__gcc_jit_output_kind cCP}@anchor{33e} +@deffn {C++ Function} void gccjit::@ref{12a,,context}::compile_to_file (enum gcc_jit_output_kind, const char *output_path) -Compile the @ref{128,,gccjit;;context} to a file of the given +Compile the @ref{12a,,gccjit;;context} to a file of the given kind. This is a thin wrapper around the @@ -13714,7 +13712,7 @@ This is a thin wrapper around the @c . @node Internals,Indices and tables,C++ bindings for libgccjit,Top -@anchor{internals/index doc}@anchor{33d}@anchor{internals/index internals}@anchor{33e} +@anchor{internals/index doc}@anchor{33f}@anchor{internals/index internals}@anchor{340} @chapter Internals @@ -13730,7 +13728,7 @@ This is a thin wrapper around the @end menu @node Working on the JIT library,Running the test suite,,Internals -@anchor{internals/index working-on-the-jit-library}@anchor{33f} +@anchor{internals/index working-on-the-jit-library}@anchor{341} @section Working on the JIT library @@ -13763,7 +13761,7 @@ gcc/libgccjit.so.0.0.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), Here’s what those configuration options mean: @geindex command line option; --enable-host-shared -@anchor{internals/index cmdoption-enable-host-shared}@anchor{340} +@anchor{internals/index cmdoption-enable-host-shared}@anchor{342} @deffn {Option} @w{-}@w{-}enable@w{-}host@w{-}shared Configuring with this option means that the compiler is built as @@ -13772,7 +13770,7 @@ but it necessary for a shared library. @end deffn @geindex command line option; --enable-languages=jit@comma{}c++ -@anchor{internals/index cmdoption-enable-languages}@anchor{341} +@anchor{internals/index cmdoption-enable-languages}@anchor{343} @deffn {Option} @w{-}@w{-}enable@w{-}languages=jit,c++ This specifies which frontends to build. The JIT library looks like @@ -13789,7 +13787,7 @@ c++: error trying to exec 'cc1plus': execvp: No such file or directory @end deffn @geindex command line option; --disable-bootstrap -@anchor{internals/index cmdoption-disable-bootstrap}@anchor{342} +@anchor{internals/index cmdoption-disable-bootstrap}@anchor{344} @deffn {Option} @w{-}@w{-}disable@w{-}bootstrap For hacking on the “jit” subdirectory, performing a full @@ -13799,7 +13797,7 @@ the compiler can still bootstrap itself. @end deffn @geindex command line option; --enable-checking=release -@anchor{internals/index cmdoption-enable-checking}@anchor{343} +@anchor{internals/index cmdoption-enable-checking}@anchor{345} @deffn {Option} @w{-}@w{-}enable@w{-}checking=release The compile can perform extensive self-checking as it runs, useful when @@ -13810,7 +13808,7 @@ disable this self-checking. @end deffn @node Running the test suite,Environment variables,Working on the JIT library,Internals -@anchor{internals/index running-the-test-suite}@anchor{344} +@anchor{internals/index running-the-test-suite}@anchor{346} @section Running the test suite @@ -13868,7 +13866,7 @@ and once a test has been compiled, you can debug it directly: @end menu @node Running under valgrind,,,Running the test suite -@anchor{internals/index running-under-valgrind}@anchor{345} +@anchor{internals/index running-under-valgrind}@anchor{347} @subsection Running under valgrind @@ -13917,7 +13915,7 @@ When running under valgrind, it’s best to have configured gcc with various known false positives. @node Environment variables,Packaging notes,Running the test suite,Internals -@anchor{internals/index environment-variables}@anchor{346} +@anchor{internals/index environment-variables}@anchor{348} @section Environment variables @@ -13925,7 +13923,7 @@ When running client code against a locally-built libgccjit, three environment variables need to be set up: @geindex environment variable; LD_LIBRARY_PATH -@anchor{internals/index envvar-LD_LIBRARY_PATH}@anchor{347} +@anchor{internals/index envvar-LD_LIBRARY_PATH}@anchor{349} @deffn {Environment Variable} LD_LIBRARY_PATH @quotation @@ -13945,7 +13943,7 @@ libgccjit.so.0.0.1: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), @end deffn @geindex environment variable; PATH -@anchor{internals/index envvar-PATH}@anchor{348} +@anchor{internals/index envvar-PATH}@anchor{34a} @deffn {Environment Variable} PATH The library uses a driver executable for converting from .s assembler @@ -13964,7 +13962,7 @@ of development. @end deffn @geindex environment variable; LIBRARY_PATH -@anchor{internals/index envvar-LIBRARY_PATH}@anchor{349} +@anchor{internals/index envvar-LIBRARY_PATH}@anchor{34b} @deffn {Environment Variable} LIBRARY_PATH The driver executable invokes the linker, and the latter needs to locate @@ -13996,11 +13994,11 @@ hello world @end example @node Packaging notes,Overview of code structure,Environment variables,Internals -@anchor{internals/index packaging-notes}@anchor{34a} +@anchor{internals/index packaging-notes}@anchor{34c} @section Packaging notes -The configure-time option @ref{340,,--enable-host-shared} is needed when +The configure-time option @ref{342,,--enable-host-shared} is needed when building the jit in order to get position-independent code. This will slow down the regular compiler by a few percent. Hence when packaging gcc with libgccjit, please configure and build twice: @@ -14011,10 +14009,10 @@ with libgccjit, please configure and build twice: @itemize * @item -once without @ref{340,,--enable-host-shared} for most languages, and +once without @ref{342,,--enable-host-shared} for most languages, and @item -once with @ref{340,,--enable-host-shared} for the jit +once with @ref{342,,--enable-host-shared} for the jit @end itemize @end quotation @@ -14056,7 +14054,7 @@ popd @end example @node Overview of code structure,Design notes,Packaging notes,Internals -@anchor{internals/index overview-of-code-structure}@anchor{34b} +@anchor{internals/index overview-of-code-structure}@anchor{34d} @section Overview of code structure @@ -14523,7 +14521,7 @@ JIT: gcc::jit::logger::~logger() @end example @node Design notes,Submitting patches,Overview of code structure,Internals -@anchor{internals/index design-notes}@anchor{34c} +@anchor{internals/index design-notes}@anchor{34e} @section Design notes @@ -14536,7 +14534,7 @@ close as possible to the error; failing that, a good place is within @code{recording::context::validate ()} in jit-recording.c. @node Submitting patches,,Design notes,Internals -@anchor{internals/index submitting-patches}@anchor{34d} +@anchor{internals/index submitting-patches}@anchor{34f} @section Submitting patches @@ -14670,7 +14668,7 @@ large and inconsequential (e.g. anchor renumbering), rather like generated committing to svn. @node Indices and tables,Index,Internals,Top -@anchor{index indices-and-tables}@anchor{34e} +@anchor{index indices-and-tables}@anchor{350} @unnumbered Indices and tables diff --git a/gcc/jit/docs/topics/compatibility.rst b/gcc/jit/docs/topics/compatibility.rst index 0c0ce07..bb3387f 100644 --- a/gcc/jit/docs/topics/compatibility.rst +++ b/gcc/jit/docs/topics/compatibility.rst @@ -62,7 +62,7 @@ You can see the symbol tags provided by libgccjit.so using ``objdump``: [...snip...] Programmatically checking version -*************** +********************************* Client code can programmatically check libgccjit version using: @@ -200,11 +200,15 @@ entrypoints: ``LIBGCCJIT_ABI_11`` covers the addition of :func:`gcc_jit_context_add_driver_option` +.. _LIBGCCJIT_ABI_12: + ``LIBGCCJIT_ABI_12`` -------------------- ``LIBGCCJIT_ABI_12`` covers the addition of :func:`gcc_jit_context_new_bitfield` +.. _LIBGCCJIT_ABI_13: + ``LIBGCCJIT_ABI_13`` -------------------- ``LIBGCCJIT_ABI_13`` covers the addition of version functions via API diff --git a/gcc/jit/docs/topics/types.rst b/gcc/jit/docs/topics/types.rst index ea7c8ff..e508a6b 100644 --- a/gcc/jit/docs/topics/types.rst +++ b/gcc/jit/docs/topics/types.rst @@ -269,6 +269,7 @@ You can model C `struct` types by creating :c:type:`gcc_jit_struct *` and This API entrypoint was added in :ref:`LIBGCCJIT_ABI_12`; you can test for its presence using + .. code-block:: c #ifdef LIBGCCJIT_HAVE_gcc_jit_context_new_bitfield -- 2.7.4