Displaying 4 results from an estimated 4 matches for "end_if".
Did you mean:
end_io
2013 Jan 11
2
[LLVMdev] Make a comparation with IR builder
...hat I try to do is a compare a local variable with a constant.
But when I create a ICMP instruction I get that instruction are not of
same type.
I'm using llvm by svn repository updated at two week ago.
The code that I try to generation is something like:
if varInt = 1 then
varInt := 10;
end_if;
This is my code:
void *visit(integer_c *symbol) {
int64_t value = GET_CVALUE(int64, symbol);
if (typeid(*currentType) == typeid(get_datatype_info_c::bool_type_name)) {
std::cout << "Creating integer: " << value << std::endl;
return (void *)Constan...
2013 Jan 11
2
[LLVMdev] Make a comparation with IR builder
...But when I create a ICMP instruction I get that instruction are
> not of same type.
> I'm using llvm by svn repository updated at two week ago.
>
> The code that I try to generation is something like:
>
> if varInt = 1 then
> varInt := 10;
> end_if;
>
>
> This is my code:
>
> void *visit(integer_c *symbol) {
> int64_t value = GET_CVALUE(int64, symbol);
> if (typeid(*currentType) ==
> typeid(get_datatype_info_c::bool_type_name)) {
> std::cout << &quo...
2013 Jan 11
0
[LLVMdev] Make a comparation with IR builder
...able with a constant.
> But when I create a ICMP instruction I get that instruction are not of
> same type.
> I'm using llvm by svn repository updated at two week ago.
>
> The code that I try to generation is something like:
>
> if varInt = 1 then
> varInt := 10;
> end_if;
>
>
> This is my code:
>
> void *visit(integer_c *symbol) {
> int64_t value = GET_CVALUE(int64, symbol);
> if (typeid(*currentType) == typeid(get_datatype_info_c::**bool_type_name))
> {
> std::cout << "Creating integer: &q...
2013 Jan 11
0
[LLVMdev] Make a comparation with IR builder
...hen I create a ICMP instruction I get that instruction are not of
>> same type.
>> I'm using llvm by svn repository updated at two week ago.
>>
>> The code that I try to generation is something like:
>>
>> if varInt = 1 then
>> varInt := 10;
>> end_if;
>>
>>
>> This is my code:
>>
>> void *visit(integer_c *symbol) {
>> int64_t value = GET_CVALUE(int64, symbol);
>> if (typeid(*currentType) ==
>> typeid(get_datatype_info_c::bool_type_name)) {
>> std::cout &...