search for: const_int64_175

Displaying 1 result from an estimated 1 matches for "const_int64_175".

2015 Mar 16
4
[LLVMdev] size of const_ptr for array index
Hi all, when e.g. accessing a global variable residing in a structure, the c++API code looks like: std::vector<Constant*> const_ptr_183_indices; const_ptr_183_indices.push_back(const_int32_172); const_ptr_183_indices.push_back(const_int32_184); const_ptr_183_indices.push_back(const_int64_175); Constant* const_ptr_183 = ConstantExpr::getGetElementPtr(gvar_struct_foo, const_ptr_183_indices); the struct could be struct stest { double age; double darray[3]; } The indices for accessing 'age' would be 0 (32bit) 0 (32bit). For an element of the darray, one however ne...