3.2.4.2 Simple expressions

C++ Function: gccjit::rvalue gccjit::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 int value.

C++ Function: gccjit::rvalue gccjit::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 long value.

C++ Function: gccjit::rvalue gccjit::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:

ctxt.new_rvalue (numeric_type, 0)
C++ Function: gccjit::rvalue gccjit::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:

ctxt.new_rvalue (numeric_type, 1)
C++ Function: gccjit::rvalue gccjit::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 double value.

C++ Function: gccjit::rvalue gccjit::context::new_rvalue (gccjit::type pointer_type, void *value) const

Given a pointer type, build an rvalue for the given address.

C++ Function: gccjit::rvalue gccjit::context::new_rvalue (const std::string &value) const

Generate an rvalue of type GCC_JIT_TYPE_CONST_CHAR_PTR for the given string. This is akin to a string literal.