Added compiler arg --print_ir_with_descriptors

Sometimes it would be useful to see IR with all corresponding
descriptors - now it is possible.
This commit is contained in:
Igor Chevdar
2017-04-07 20:09:13 +03:00
parent 8fc1577fe5
commit f389afee16
7 changed files with 401 additions and 10 deletions
@@ -123,6 +123,7 @@ class K2Native : CLICompiler<K2NativeCompilerArguments>() {
put(OPTIMIZATION, arguments.optimization)
put(PRINT_IR, arguments.printIr)
put(PRINT_IR_WITH_DESCRIPTORS, arguments.printIrWithDescriptors)
put(PRINT_DESCRIPTORS, arguments.printDescriptors)
put(PRINT_LOCATIONS, arguments.printLocations)
put(PRINT_BITCODE, arguments.printBitCode)
@@ -73,6 +73,9 @@ public class K2NativeCompilerArguments extends CommonCompilerArguments {
@Argument(value = "print_ir", prefix = "--", description = "Print IR")
public boolean printIr;
@Argument(value = "print_ir_with_descriptors", prefix = "--", description = "Print IR with descriptors")
public boolean printIrWithDescriptors;
@Argument(value = "print_descriptors", prefix = "--", description = "Print descriptor tree")
public boolean printDescriptors;