Skip to content

Commit bcae074

Browse files
aparshin-intelsys_zuul
authored andcommitted
remove depreaceted code
Change-Id: I9926391c5864acfe1b3958934c2ba48e56aeb25a
1 parent 5faa84b commit bcae074

File tree

5 files changed

+119
-162
lines changed

5 files changed

+119
-162
lines changed

IGC/AdaptorOCL/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ set(IGC_BUILD__HDR__AdaptorOCL
106106
"${CMAKE_CURRENT_SOURCE_DIR}/OCL/CommandStream/SamplerTypes.h"
107107
"${CMAKE_CURRENT_SOURCE_DIR}/OCL/CommandStream/SurfaceTypes.h"
108108
"${CMAKE_CURRENT_SOURCE_DIR}/DriverInfoOCL.hpp"
109-
"${CMAKE_CURRENT_SOURCE_DIR}/igcmc.h"
110109
"${CMAKE_CURRENT_SOURCE_DIR}/cmc.h"
111110
"${CMAKE_CURRENT_SOURCE_DIR}/UnifyIROCL.hpp"
112111
"${CMAKE_CURRENT_SOURCE_DIR}/MoveStaticAllocas.h"

IGC/AdaptorOCL/cmc.h

Lines changed: 119 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,130 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3333
#include <llvm/Support/DynamicLibrary.h>
3434
#include "common/LLVMWarningsPop.hpp"
3535

36-
#include "igcmc.h"
3736
#include "Compiler/CodeGenPublic.h"
3837
#include "common/LLVMWarningsPush.hpp"
3938
#include "VectorCompiler/include/vc/GenXCodeGen/GenXWrapper.h"
4039
#include "common/LLVMWarningsPop.hpp"
4140

41+
// optional resource access kind
42+
enum class cmc_access_kind : int32_t {
43+
undef,
44+
read_only,
45+
write_only,
46+
read_write
47+
};
48+
49+
enum class cmc_arg_kind : int32_t {
50+
General,
51+
LocalSize, // IMPLICIT_LOCAL_SIZE
52+
GroupCount, // IMPLICIT_NUM_GROUPS
53+
Buffer, // 1D buffer
54+
SVM, // stateless global pointer
55+
Sampler,
56+
Image1d,
57+
Image2d,
58+
Image3d,
59+
PrintBuffer,
60+
PrivateBase
61+
};
62+
63+
struct cmc_ocl_print_string {
64+
static constexpr unsigned max_width = 256;
65+
char s[max_width];
66+
};
67+
68+
struct cmc_arg_info {
69+
// The argument kind.
70+
cmc_arg_kind kind = cmc_arg_kind::General;
71+
72+
// The argument index in this kernel.
73+
int32_t index = 0;
74+
75+
// the byte offset of this argument in payload
76+
int32_t offset = 0;
77+
78+
// The byte size of this argument in payload
79+
int32_t sizeInBytes = 0;
80+
81+
// The BTI for this resource, if applicable.
82+
int32_t BTI = 0;
83+
84+
// the optional resource access kind, if applicable.
85+
cmc_access_kind access = cmc_access_kind::undef;
86+
};
87+
88+
// compilation interface bewteen cmc and igc
89+
struct cmc_kernel_info_v2 {
90+
/// The kernel name.
91+
const char *name;
92+
93+
/// The number of kernel arguments
94+
unsigned num_args;
95+
96+
/// The kernel argument info.
97+
cmc_arg_info *arg_descs;
98+
99+
// ThreadPayload
100+
bool HasLocalIDx = false;
101+
bool HasLocalIDy = false;
102+
bool HasLocalIDz = false;
103+
bool HasGroupID = false;
104+
105+
// ExecutionEnivronment
106+
uint32_t CompiledSIMDSize = 8;
107+
uint32_t SLMSize = 0;
108+
uint32_t NumGRFRequired = 128;
109+
uint32_t GRFByteSize = 32;
110+
uint32_t HasBarriers = 0;
111+
bool HasReadWriteImages = false;
112+
uint32_t ThreadPrivateMemSize = 0;
113+
uint32_t StatelessPrivateMemSize = 0;
114+
115+
/// number of format strings in the kernel
116+
unsigned num_print_strings = 0;
117+
/// The kernel format string storage
118+
cmc_ocl_print_string *print_string_descs = nullptr;
119+
120+
struct TableInfo {
121+
void *Buf = nullptr;
122+
uint32_t Size = 0;
123+
uint32_t NumEntries = 0;
124+
};
125+
126+
TableInfo RelocationTable;
127+
TableInfo SymbolTable;
128+
vc::ocl::ZEBinaryInfo ZEBinInfo;
129+
};
130+
131+
struct cmc_compile_info_v2 {
132+
/// The vISA binary size in bytes.
133+
uint64_t binary_size;
134+
135+
/// The vISA binary data.
136+
void* binary;
137+
138+
uint32_t pointer_size_in_bytes;
139+
140+
/// The vISA major version.
141+
uint32_t visa_major_version;
142+
143+
/// The vISA minor version.
144+
uint32_t visa_minor_version;
145+
146+
/// The number of kernel.
147+
unsigned num_kernels;
148+
149+
/// Ugly stub for compatibility with cmc
150+
void *compatibility_stub;
151+
152+
/// The context for this compilation. This opaque data holds all memory
153+
/// allocations that will be freed in the end.
154+
void* context;
155+
156+
/// The kernel infomation.
157+
cmc_kernel_info_v2 *kernel_info_v2;
158+
};
159+
42160
namespace iOpenCL {
43161
class CGen8CMProgram;
44162
}

IGC/AdaptorOCL/dllInterfaceCompute.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5353
#include "usc.h"
5454

5555
#include "AdaptorOCL/OCL/sp/gtpin_igc_ocl.h"
56-
#include "AdaptorOCL/igcmc.h"
5756
#include "AdaptorOCL/cmc.h"
5857
#include "common/LLVMWarningsPush.hpp"
5958
#include <llvm/ADT/ScopeExit.h>

IGC/AdaptorOCL/igcmc.h

Lines changed: 0 additions & 158 deletions
This file was deleted.

IGC/DriverInterface/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ set(IGC_BUILD__HDR__DriverInterface
8080
"${CMAKE_CURRENT_SOURCE_DIR}/../AdaptorOCL/OCL/sp/zebin_builder.hpp"
8181
"${CMAKE_CURRENT_SOURCE_DIR}/../AdaptorOCL/MoveStaticAllocas.h"
8282
"${CMAKE_CURRENT_SOURCE_DIR}/../AdaptorOCL/cmc.h"
83-
"${CMAKE_CURRENT_SOURCE_DIR}/../AdaptorOCL/igcmc.h"
8483

8584
"${IGC_BUILD__COMMON_COMPILER_DIR}/API/ErrorCode.h"
8685
"${IGC_BUILD__COMMON_COMPILER_DIR}/API/SurfaceFormats.h"

0 commit comments

Comments
 (0)