Skip to content

Commit 62ba16f

Browse files
committed
Add a wantdecont op
Which compiles its child with the want-decont flag set, thus giving the code-gen a hint it may not be able to otherwise figure out.
1 parent 8702222 commit 62ba16f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vm/moar/QAST/QASTOperationsMAST.nqp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2575,6 +2575,9 @@ QAST::MASTOperations.add_core_op('decont', -> $qastcomp, $op {
25752575
MAST::InstructionList.new($expr.instructions, $res_reg, $MVM_reg_obj)
25762576
});
25772577
QAST::MASTOperations.add_core_moarop_mapping('decont', 'decont');
2578+
QAST::MASTOperations.add_core_op('wantdecont', -> $qastcomp, $op {
2579+
$qastcomp.as_mast($op[0], :want-decont)
2580+
});
25782581
QAST::MASTOperations.add_core_moarop_mapping('decont_i', 'decont_i');
25792582
QAST::MASTOperations.add_core_moarop_mapping('decont_n', 'decont_n');
25802583
QAST::MASTOperations.add_core_moarop_mapping('decont_s', 'decont_s');

0 commit comments

Comments
 (0)