mie: ir: op: remove redundant op_dialect pointer
This commit is contained in:
@@ -31,7 +31,7 @@ static enum mie_match_result if_match(const struct mie_op *op)
|
||||
static struct mie_rewrite_result if_rewrite(
|
||||
struct mie_op *op, struct mie_rewriter *rewriter)
|
||||
{
|
||||
printf("if: rewriting %p %s.%s\n", op, op->op_dialect->d_name,
|
||||
printf("if: rewriting %p %s.%s\n", op, op->op_info->op_parent->d_name,
|
||||
op->op_info->op_name);
|
||||
|
||||
struct mie_register *cond = mie_op_get_arg(op, 0);
|
||||
@@ -111,7 +111,7 @@ static struct mie_pass_result transform(
|
||||
struct mie_pass *pass, struct mie_op *op, struct mie_pass_args *args)
|
||||
{
|
||||
printf("%s: taking a look at %p %s.%s\n", mie_pass_get_name(pass), op,
|
||||
op->op_dialect->d_name, op->op_info->op_name);
|
||||
op->op_info->op_parent->d_name, op->op_info->op_name);
|
||||
|
||||
struct mie_convert_config *cfg = mie_convert_config_create(args->p_ctx);
|
||||
mie_convert_config_add_illegal_op(cfg, "scf", "if");
|
||||
|
||||
Reference in New Issue
Block a user