search for: get_cvalue

Displaying 4 results from an estimated 4 matches for "get_cvalue".

2013 Jan 11
2
[LLVMdev] Make a comparation with IR builder
...nstruction 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 *)ConstantInt::get(Type::getInt1Ty(getGlobalContext()), value, false); } return (void *)ConstantInt:...
2013 Jan 11
2
[LLVMdev] Make a comparation with IR builder
...tory 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 > *)ConstantInt::get(Type::getInt1Ty(g...
2013 Jan 11
0
[LLVMdev] Make a comparation with IR builder
...9;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 *)ConstantInt::get(Type::**getInt1Ty(getGlobalContext()), &...
2013 Jan 11
0
[LLVMdev] Make a comparation with IR builder
...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 >> *)ConstantInt::get(Type::getInt1Ty(g...