[IR] Print evaluated const directly into interpreter's tests

This commit is contained in:
Ivan Kylchik
2023-04-07 17:16:01 +02:00
committed by Space Team
parent 0b70b7904d
commit 5956e9b500
54 changed files with 1459 additions and 1375 deletions
@@ -15,7 +15,7 @@ abstract class EvaluatedConstTracker {
/**
* Right now there are two places where we want to create this tracker.
* 1. Right before `fir2ir` phase. We need to store evaluated values to use them later in const value serialization.
* 2. In interpreter's tests for all IR backends. This is needed ONLY for tests and cover case when we run K1 IR compiler.
* 2. In tests for K1 IR. This is needed ONLY for tests to log results of interpretation on lowering level.
*/
fun create(): EvaluatedConstTracker {
return DefaultEvaluatedConstTracker()