IDAPython 8.4
Loading...
Searching...
No Matches
optblock_t Class Reference

Proxy of C++ optblock_t class.

Inheritance diagram for optblock_t:

Public Member Functions

"int" func (self, *args)
 func(self, blk) -> int Optimize a block.
 
"void" install (self, *args)
 install(self)
 
"bool" remove (self, *args)
 remove(self) -> bool
 
 __init__ (self, *args)
 init(self) -> optblock_t
 
 __disown__ (self)
 

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
* args )
Parameters
selfPyObject *

Member Function Documentation

◆ __disown__()

__disown__ ( self)

◆ func()

"int" func ( self,
* args )

This function usually performs the optimizations that require analyzing the entire block and/or its neighbors. For example it can recognize patterns and perform conversions like: b0: b0: ... ... jnz x, 0, @b2 => jnz x, 0, @b2 b1: b1: add x, 0, y mov x, y ... ...

Parameters
blk(C++: mblock_t *) Basic block to optimize as a whole.
Returns
: number of changes made to the block. See also mark_lists_dirty.

◆ install()

"void" install ( self,
* args )

◆ remove()

"bool" remove ( self,
* args )

Property Documentation

◆ thisown

thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static

The documentation for this class was generated from the following file: