Ejemplo n.º 1
0
 bool is_same_inst_field(const Type* tp, int id, int index, int offset) {
   return type()->basic_type() == tp->basic_type() &&
          inst_id()     == id     &&
          inst_index()  == index  &&
          inst_offset() == offset &&
          type()->higher_equal(tp);
 }
Ejemplo n.º 2
0
bool Inst::equal( const Inst *b ) const {
    if ( inst_id() != b->inst_id() or inp_size() != b->inp_size() )
        return false;
    for( int i = 0; i < inp_size(); ++i )
        if ( inp_expr( i ) != b->inp_expr( i ) )
            return false;
    return true;
}