Compilation error involving comparison and logical operator
Dibyendu Majumdar
mobile@majumdar.org.uk
Thu Jan 1 00:00:00 GMT 2015
On 26 June 2015 at 20:27, David Malcolm <dmalcolm@redhat.com> wrote:
>> Couple of questions:
>>
>> 1. What is the type of a binary logical operator
>
> By "a binary logical operator" presumably you mean the result of
> gcc_jit_context_new_comparison. This has type GCC_JIT_TYPE_BOOL.
>
>
>> and what effect does
>> the result type in gcc_jit_context_new_binary_op() have?
>
> This defines the type of the resulting rvalue. I believe you can use
> this as another way of doing a cast.
>
>
>> 2. What is the type of unary logical operator
>
> It depends on the result_type passed in to gcc_jit_context_new_unary_op.
>
>> and what is the effect
>> of result type in gcc_jit_context_new_unary_op()?
>
> This defines the type of the resulting rvalue. As above you can use
> this as another way of doing a cast.
>
>> The comparison operator does not take a result type so presumably it
>> is always boolean?
>
> Correct.
>
>
Ok thanks, I think I have fixed the issue.
Regards
More information about the Jit
mailing list