[ir] Lower IR before dumping.

This CL updates the Tint command to create a lowered IR before dumping
to the console. This is closer to what the user expects to see as that's
the IR they will be interacting with.

Bug: tint:1718
Change-Id: I16a7c4cb7cf93ffe2a9fce28e2f6bf88f350cf7f
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/162268
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
diff --git a/src/tint/cmd/tint/main.cc b/src/tint/cmd/tint/main.cc
index 528735b..5ba2c6e 100644
--- a/src/tint/cmd/tint/main.cc
+++ b/src/tint/cmd/tint/main.cc
@@ -1163,7 +1163,7 @@
 
 #if TINT_BUILD_WGSL_READER
     if (options.dump_ir) {
-        auto result = tint::wgsl::reader::ProgramToIR(info.program);
+        auto result = tint::wgsl::reader::ProgramToLoweredIR(info.program);
         if (!result) {
             std::cerr << "Failed to build IR from program: " << result.Failure() << "\n";
         } else {