@@ -9,15 +9,14 @@ SPDX-License-Identifier: MIT
9
9
#include " BinaryEncodingIGA.h"
10
10
#include " GTGPU_RT_ASM_Interface.h"
11
11
#include " iga/IGALibrary/api/igaEncoderWrapper.hpp"
12
- #include " iga/IGALibrary/Frontend/FormatterJSON.hpp"
13
12
#include " Timer.h"
14
13
#include " BuildIR.h"
15
14
#include " Common_ISA_framework.h"
16
15
17
- #include < fstream>
18
16
#include < map>
19
17
#include < utility>
20
18
19
+
21
20
using namespace iga ;
22
21
using namespace vISA ;
23
22
@@ -46,8 +45,6 @@ class BinaryEncodingIGA
46
45
// translates and encodes (formerly "DoAll")
47
46
void Encode ();
48
47
49
- void EmitJSON (int dumpJSON);
50
-
51
48
// /////////////////////////////////////////////////////////////////////////
52
49
// these function translate G4 IR to IGA IR
53
50
Instruction *translateInstruction (G4_INST *g4inst, Block*& bbNew);
@@ -1037,19 +1034,6 @@ void BinaryEncodingIGA::Encode()
1037
1034
kernel.fg .builder ->getJitInfo ()->offsetToSkipSetFFIDGP1 =
1038
1035
kernel.getComputeFFIDGP1NextOff ();
1039
1036
}
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 );
1053
1037
}
1054
1038
1055
1039
Instruction *BinaryEncodingIGA::translateInstruction (
@@ -2007,3 +1991,4 @@ bool vISA::InstSupportsSrcModifierIGA(TARGET_PLATFORM p, const G4_INST &i, const
2007
1991
return false ;
2008
1992
}
2009
1993
}
1994
+
0 commit comments