swr/rast: add graph write to jit debug putput
authorTim Rowley <timothy.o.rowley@intel.com>
Thu, 7 Sep 2017 20:18:08 +0000 (15:18 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Wed, 13 Sep 2017 15:09:30 +0000 (10:09 -0500)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp

index fc32b627bd1150b2b6bd5b0debbe241069647017..e4281f8e920900eaba74f5c8293a8d38240d1be2 100644 (file)
@@ -296,10 +296,10 @@ void JitManager::DumpToFile(Function *f, const char *fileName)
 #endif
         fd.flush();
 
-        //raw_fd_ostream fd_cfg(fName, EC, llvm::sys::fs::F_Text);
-        //WriteGraph(fd_cfg, (const Function*)f);
+        raw_fd_ostream fd_cfg(fName, EC, llvm::sys::fs::F_Text);
+        WriteGraph(fd_cfg, (const Function*)f);
 
-        //fd_cfg.flush();
+        fd_cfg.flush();
     }
 }