Displaying 2 results from an estimated 2 matches for "int32_12".
Did you mean:
int32_16
2012 Jun 17
3
[LLVMdev] BlockAddress instruction is copied instead of cloned during module link?
...terNull* const_ptr_11 =
ConstantPointerNull::get(PointerTy_1);
// Global Variable Definitions
gvar_array_switch_bbs->setInitializer(const_array_5);
// Function Definitions
// Function: my_func (func_my_func)
{
Function::arg_iterator args = func_my_func->arg_begin();
Value* int32_12 = args++;
// Block issue.top (label_issue_top)
std::vector<Value*> ptr_switch_gep_indices;
ptr_switch_gep_indices.push_back(const_int32_10);
ptr_switch_gep_indices.push_back(int32_12);
Instruction* ptr_switch_gep =
GetElementPtrInst::Create(gvar_array_switch_bbs, ptr_switch_...
2011 Aug 19
1
[LLVMdev] LLVM: Very simple question
Hi, guys. I'm a newbie to LLVM and have a very simple question.
Which instructions should I use (in terms of IRBuilder calls) to allocate an
array of bytes in stack (alloca?), then to work with it (from a given
offset) as with integer (bitcast?). I mean something like that:
unsigned char var[8];
unsigned int offset = 3;
int val = *(int*)(&var+offset); /* read */
*(int*)(&var+offset)