search for: bool_type_nam

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

Did you mean: bool_type_name
2013 Jan 11
2
[LLVMdev] Make a comparation with IR builder
...epository 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::get(Type::getInt16Ty(getGlobalContext()), value, false); } void *visit(symbolic_varia...
2013 Jan 11
2
[LLVMdev] Make a comparation with IR builder
...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::get(...
2013 Jan 11
0
[LLVMdev] Make a comparation with IR builder
...ion 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::get(Type::** > getInt16...
2013 Jan 11
0
[LLVMdev] Make a comparation with IR builder
...= 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::get(...