@@ -9,15 +9,14 @@ SPDX-License-Identifier: MIT
99#include " BinaryEncodingIGA.h"
1010#include " GTGPU_RT_ASM_Interface.h"
1111#include " iga/IGALibrary/api/igaEncoderWrapper.hpp"
12- #include " iga/IGALibrary/Frontend/FormatterJSON.hpp"
1312#include " Timer.h"
1413#include " BuildIR.h"
1514#include " Common_ISA_framework.h"
1615
17- #include < fstream>
1816#include < map>
1917#include < utility>
2018
19+
2120using namespace iga ;
2221using namespace vISA ;
2322
@@ -46,8 +45,6 @@ class BinaryEncodingIGA
4645 // translates and encodes (formerly "DoAll")
4746 void Encode ();
4847
49- void EmitJSON (int dumpJSON);
50-
5148 // /////////////////////////////////////////////////////////////////////////
5249 // these function translate G4 IR to IGA IR
5350 Instruction *translateInstruction (G4_INST *g4inst, Block*& bbNew);
@@ -1037,19 +1034,6 @@ void BinaryEncodingIGA::Encode()
10371034 kernel.fg .builder ->getJitInfo ()->offsetToSkipSetFFIDGP1 =
10381035 kernel.getComputeFFIDGP1NextOff ();
10391036 }
1040-
1041- int dumpJSON = kernel.fg .builder ->getuint32Option (vISA_dumpIgaJson);
1042- if (dumpJSON) {
1043- EmitJSON (dumpJSON);
1044- }
1045- }
1046-
1047- void BinaryEncodingIGA::EmitJSON (int dumpJSON) {
1048- std::string jsonFileName = fileName + " .json" ;
1049- std::ofstream ofs (jsonFileName, std::ofstream::out);
1050- FormatOpts fos (*platformModel);
1051- fos.printJson = true ;
1052- FormatJSON (ofs, fos, *IGAKernel, nullptr );
10531037}
10541038
10551039Instruction *BinaryEncodingIGA::translateInstruction (
@@ -2007,3 +1991,4 @@ bool vISA::InstSupportsSrcModifierIGA(TARGET_PLATFORM p, const G4_INST &i, const
20071991 return false ;
20081992 }
20091993}
1994+
0 commit comments