From 261fe7587d7413070a4e0f29e1a1bb7b0d2b5429 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 24 Jul 2020 16:37:51 -0700 Subject: Ensure labels are dumped in `lower-to-ir` (#1459) * Ensure labels are dumped in `lower-to-ir`. There is a `dumpIR` function that accepts a label parameter already in slang-emit.cpp. This change moves it to slang-ir.cpp so it may be called from other files. * update expected test result Co-authored-by: Yong He Co-authored-by: Tim Foley --- tests/ir/string-literal.slang.expected | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/ir/string-literal.slang.expected b/tests/ir/string-literal.slang.expected index 3f6b2f0ff..80d7ce67c 100644 --- a/tests/ir/string-literal.slang.expected +++ b/tests/ir/string-literal.slang.expected @@ -1,5 +1,6 @@ result code = 0 standard error = { +### LOWER-TO-IR: [entryPoint(6, "main")] [numThreads(1, 1, 1)] [export("_S3tu04mainp1puV")] @@ -12,6 +13,7 @@ block %1( return_void } global_hashed_string_literals("Hello \t\n\0x083 World") +### } standard output = { } -- cgit v1.2.3