Displaying 1 result from an estimated 1 matches for "ptr_gpr".
Did you mean:
ptr_err
2010 Jul 01
1
[LLVMdev] The question about how to refer an element in a pointer array by a dynamic index by IR
...LLVM as IR
to dynamic translate machine code,
I encounter some issues when try to write some IR to express writting
a value to the reigster.
The situation is described as the following description.
write_reg is my function for writing "v" to the register indicated by
"index". ptr_gpr is the struct pointer for my general register file.
write_reg(cpu_t *cpu, uint32_t index, Value *v,BasicBlock *bb ){
Value **regs = cpu->ptr_gpr;
}
If index do not need to do any runtime calculation, I can write the
following sentence to fulfil my requirement.
new StoreInst(v, regs[i...