search for: load_reg

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

2017 Jun 21
2
question about llvmlite
...ppend_basic_block('entry')irbuilder = ll.IRBuilder(bb_entry)int_type = ll.IntType(64);irsb = pyvex.block.IRSB(CODE, 0x400400, archinfo.ArchAMD64()) for stmt in irsb.statements: #if isinstance(pyvex.IRStmt.Store): with irbuilder.if_then(stmt, pyvex.IRStmt.Store): t = irbuilder.load_reg(ll.IntType(64), stmt.data) t1 = irbuilder.load_reg(ll.IntType(64), stmt.addr) tcall = irbuilder.call(func, [t]) t1call = irbuilder.call(func, [t1]) result = irbuilder.store_reg(ll.Constant(ll.IntType(64), t), ll.IntType(64), t1) irbuilder.ret( result ) print( m...