diff --git a/projects/clr/rocclr/compiler/lib/amdoclcl.def.in b/projects/clr/rocclr/compiler/lib/amdoclcl.def.in index 797c4bfcbb..e63d96bfe5 100644 --- a/projects/clr/rocclr/compiler/lib/amdoclcl.def.in +++ b/projects/clr/rocclr/compiler/lib/amdoclcl.def.in @@ -38,53 +38,6 @@ aclConvertType aclDisassemble aclGetDeviceBinary aclInsertKernelStatistics -oclCompilerInit -oclCompilerFini -oclCompilerVersion -oclVersionSize -oclCompileSource -oclCompileSourceToIR -oclCompileIRToIL -oclCompileILToISA -oclCompileBinary -oclGetCompilerLog -oclGetArchInfo -oclGetFamilyInfo -oclGetDeviceInfo -oclGetAsicInfo -oclGetTargetInfo -oclGetArchitecture -oclGetFamily -oclGetChip -oclGetAsic -elfInsertSection -elfExtractSection -elfInsertSymbol -elfExtractSymbol -oclirSetType -oclirRetrieveType -oclirLink -oclhsaCompileSource -oclhsaCompileBinary -oclhsaSetType -oclhsaRetrieveType -oclhsaConvertType -oclilCompileSource -oclilCompileBinary -oclilSetType -oclilRetrieveType -oclilConvertType -oclisaDisassemble -oclisaGetBinaryBlob -constructOclElf -destructOclElf -readOclElfFromFile -readOclElfFromMem -writeOclElfToFile -writeOclElfToMem -createElfFromElf -getBIFVersion -rtGetInfo aclDumpBinary aclJITObjectImageCreate aclJITObjectImageCopy diff --git a/projects/clr/rocclr/compiler/lib/amdoclcl.map.in b/projects/clr/rocclr/compiler/lib/amdoclcl.map.in index cf282d315b..981529d8c9 100644 --- a/projects/clr/rocclr/compiler/lib/amdoclcl.map.in +++ b/projects/clr/rocclr/compiler/lib/amdoclcl.map.in @@ -1,49 +1,5 @@ ACL_API_0.8 { global: - oclCompilerInit; - oclCompilerFini; - oclCompilerVersion; - oclVersionSize; - oclCompileSource; - oclCompileSourceToIR; - oclCompileIRToIL; - oclCompileILToISA; - oclCompileBinary; - oclGetCompilerLog; - oclGetArchInfo; - oclGetDeviceInfo; - oclGetTargetInfo; - oclGetArchitecture; - oclGetFamily; - oclGetChip; - readOclElfFromFile; - readOclElfFromMem; - writeOclElfToFile; - writeOclElfToMem; - createElfFromElf; - getBIFVersion; - constructOclElf; - destructOclElf; - elfInsertSection; - elfExtractSection; - elfInsertSymbol; - elfExtractSymbol; - oclirSetType; - oclirRetrieveType; - oclirLink; - oclhsaCompileSource; - oclhsaCompileBinary; - oclhsaSetType; - oclhsaRetrieveType; - oclhsaConvertType; - oclilCompileSource; - oclilCompileBinary; - oclilSetType; - oclilRetrieveType; - oclilConvertType; - oclisaDisassemble; - oclisaGetBinaryBlob; - rtGetInfo; aclCompilerInit; aclCompilerFini; aclCompilerVersion; diff --git a/projects/clr/rocclr/compiler/lib/backends/common/library.hpp b/projects/clr/rocclr/compiler/lib/backends/common/library.hpp index 2d563a81f4..d0f8b8665a 100644 --- a/projects/clr/rocclr/compiler/lib/backends/common/library.hpp +++ b/projects/clr/rocclr/compiler/lib/backends/common/library.hpp @@ -9,7 +9,7 @@ #include namespace amd { -typedef enum _library_selector_0_7 { +typedef enum _library_selector { LibraryUndefined = 0, GPU_Library_7xx, GPU_Library_Evergreen, diff --git a/projects/clr/rocclr/compiler/lib/include/v0_8/aclDefs.h b/projects/clr/rocclr/compiler/lib/include/v0_8/aclDefs.h index f39756b9d4..2d21ea83d1 100644 --- a/projects/clr/rocclr/compiler/lib/include/v0_8/aclDefs.h +++ b/projects/clr/rocclr/compiler/lib/include/v0_8/aclDefs.h @@ -16,10 +16,6 @@ #define ACL_API_0_8 #endif -#ifndef AOC_API_0_7 -#define AOC_API_0_7 -#endif - #ifndef BIF_API_2_0 #define BIF_API_2_0 #endif diff --git a/projects/clr/rocclr/compiler/lib/utils/v0_8/libUtils.cpp b/projects/clr/rocclr/compiler/lib/utils/v0_8/libUtils.cpp index c4d272fa3a..8aab1432c2 100644 --- a/projects/clr/rocclr/compiler/lib/utils/v0_8/libUtils.cpp +++ b/projects/clr/rocclr/compiler/lib/utils/v0_8/libUtils.cpp @@ -4,8 +4,6 @@ #include "acl.h" #include "aclTypes.h" #include "api/v0_8/aclValidation.h" -#include "v0_7/clTypes.h" -#include "v0_7/clCompiler.h" #include "libUtils.h" #include "bif/bifbase.hpp" #include "utils/target_mappings.h" @@ -635,18 +633,14 @@ cloneOclElfNoBIF(const aclBinary *src) { aclBinary_0_8_1 *dptr = reinterpret_cast(dst); const aclBinary_0_8_1 *sptr = reinterpret_cast(src); dptr->target.struct_size = sizeof(aclTargetInfo_0_8); - if (sptr->target.struct_size == sizeof(oclTargetInfo_0_7)) { - dptr->target.arch_id = sptr->target.arch_id; - dptr->target.chip_id = sptr->target.chip_id; - } else if (sptr->target.struct_size == sizeof(aclTargetInfo_0_8)) { + if (sptr->target.struct_size == sizeof(aclTargetInfo_0_8)) { memcpy(&dptr->target, &sptr->target, sptr->target.struct_size); } else { assert(!"Unsupported target info detected!"); } memcpy(&dptr->caps, &sptr->caps, sptr->caps.struct_size); - assert(sizeof(aclDevCaps_0_8) == dptr->caps.struct_size - && "The caps struct is not version 0.7!"); + assert(sizeof(aclDevCaps_0_8) == dptr->caps.struct_size); amd::option::Options *Opts = reinterpret_cast( aclutAlloc(src)(sizeof(amd::option::Options))); Opts = new (Opts) amd::option::Options; @@ -668,10 +662,7 @@ cloneOclElfNoBIF(const aclBinary *src) { aclBinary_0_8 *dptr = reinterpret_cast(dst); const aclBinary_0_8 *sptr = reinterpret_cast(src); dptr->target.struct_size = sizeof(aclTargetInfo_0_8); - if (sptr->target.struct_size == sizeof(oclTargetInfo_0_7)) { - dptr->target.arch_id = sptr->target.arch_id; - dptr->target.chip_id = sptr->target.chip_id; - } else if (sptr->target.struct_size == sizeof(aclTargetInfo_0_8)) { + if (sptr->target.struct_size == sizeof(aclTargetInfo_0_8)) { memcpy(&dptr->target, &sptr->target, sptr->target.struct_size); } else { assert(!"Unsupported target info detected!"); @@ -691,29 +682,6 @@ cloneOclElfNoBIF(const aclBinary *src) { dptr->options = reinterpret_cast(Opts); dptr->bin = NULL; return dst; - } else if (src->struct_size == sizeof(oclElfHandle_0_7)) { - oclElf *dst = constructOclElf(src->struct_size); - if (dst == NULL) { - return NULL; - } - oclElfHandle_0_7 *dptr = reinterpret_cast(dst); - const oclElfHandle_0_7 *sptr = reinterpret_cast(src); - dptr->target.struct_size = sptr->target.struct_size; - memcpy(&dptr->target, &sptr->target, sptr->target.struct_size); - assert(sizeof(oclTargetInfo_0_7) == dptr->target.struct_size - && "The target info struct is not version 0.7!"); - memcpy(&dptr->caps, &sptr->caps, sptr->caps.struct_size); - assert(sizeof(elfDevCaps_0_7) == dptr->caps.struct_size - && "The caps struct is not version 0.7!"); - amd::option::Options *Opts = reinterpret_cast( - aclutAlloc(src)(sizeof(amd::option::Options))); - Opts = new (Opts) amd::option::Options; - amd::option::Options *sOpts = reinterpret_cast( - sptr->options); - parseAllOptions(sOpts->origOptionStr, *Opts); - dptr->options = reinterpret_cast(Opts); - dptr->bin = NULL; - return reinterpret_cast(dst); } else { assert(!"Elf version not supported!"); }