From a5d85dc4fd6d709f7815c0d3fb2a79669cdf632c Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 30 Apr 2015 10:10:28 -0400
Subject: [PATCH] P4 to Git Change 1146222 by emankov@em-hsa-amd on 2015/04/30
10:04:18
ECR #333753 - Compiler Lib: 0_7 API removal
1) 0_7 API is totally removed from both legacy and non-legacy paths;
2) Bug 9641 - "tests on Compiler Lib (ocltst complib) should be refactored in order to use ACL API 0.8 instead of old 0.7" - fixed;
3) Side effect: pre-checkin testing cut down = 30% (from 14284 to 9918) =>
It looks like that we can add actually needed testing (for example, smoke on Win) instead of meaningless testing of the unused and abandoned API.
Testing: pre-checkin
Reviewers: Brian Sumner, Stanislav Mekhanoshin
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/amdocl.def.in#12 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/amdocl.map.in#14 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#110 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/amdoclcl.def.in#11 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/amdoclcl.map.in#10 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/Makefile#12 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_7/Compilerbuiltin.cpp#2 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_7/LLVMbuiltin.cpp#2 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_7/Makefile#2 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_7/SCbuiltin.cpp#2 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_7/amdil.cpp#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_7/build/Makefile#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_7/build/Makefile.apiv07#11 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_7/clCompiler.cpp#4 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_7/gpuisa.cpp#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_7/hsail.cpp#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_7/llvm.cpp#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_7/ocl.cpp#8 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_7/rt.cpp#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_7/x86.cpp#2 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/acl.cpp#30 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/library.hpp#13 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/build/Makefile.complib#81 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/amdil.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/api_defs.h#4 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/clCompiler.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/clTypes.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/gpuisa.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/hsail.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/llvm.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/ocl.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/plugins/CompilerLoader.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/plugins/LLVMLoader.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/plugins/SCLoader.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/plugins/interfaces/amdil.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/plugins/interfaces/gpuisa.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/plugins/interfaces/hsail.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/plugins/interfaces/llvm.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/plugins/interfaces/ocl.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/plugins/interfaces/rt.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/plugins/interfaces/x86.h#2 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/rt.h#3 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_7/x86.h#2 delete
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_8/aclDefs.h#4 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_9/aclTypes.h#7 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#7 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/binary/BIFBasic.cpp#12 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/binary/BIFEnumCheck.cpp#23 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/binary/BIFEnumCheck.hpp#7 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/binary/BIFIterator.cpp#2 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/CLAssumptionCheck.cpp#42 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/CLCompiler.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/CLCompilerTst.h#5 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/CLElf.cpp#11 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/CLElf.h#6 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/CLEnumCheck.cpp#43 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/CLTargetInfo.cpp#28 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/CLTargetInfo.h#4 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/TestList.cpp#17 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/aclAPI.cpp#19 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/aclCompat.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/build/Makefile.complib#34 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompLayer.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompLayer.h#3 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompileBinary.cpp#11 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompileBinary.h#6 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompileCGToISA.cpp#10 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompileCGToISA.h#5 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompileIRToCG.cpp#9 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompileIRToCG.h#4 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompileSource.cpp#23 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompileSource.h#7 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompileSourceToIR.cpp#6 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompileSourceToIR.h#4 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompilerFini.cpp#9 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompilerFini.h#5 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompilerInit.cpp#9 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompilerInit.h#5 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompilerVersion.cpp#9 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclCompilerVersion.h#5 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclExtractSection.cpp#16 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclExtractSection.h#8 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclExtractSymbol.cpp#13 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclExtractSymbol.h#6 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclGetCompilerLog.cpp#15 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclGetCompilerLog.h#7 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclInsertSection.cpp#10 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclInsertSection.h#7 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclInsertSymbol.cpp#12 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclInsertSymbol.h#6 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclVersionSize.cpp#9 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclVersionSize.h#5 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclilCompileBinary.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclilCompileBinary.h#8 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclilCompileSource.cpp#18 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclilCompileSource.h#7 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclilConvertType.cpp#10 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclilConvertType.h#7 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclilRetrieveType.cpp#12 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclilRetrieveType.h#7 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclilSetType.cpp#14 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclilSetType.h#7 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclisaDisassemble.cpp#13 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclisaDisassemble.h#7 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclisaGetBinaryBlob.cpp#10 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclisaGetBinaryBlob.h#7 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclrtGetInfo.cpp#17 delete
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/complib/oclrtGetInfo.h#3 delete
---
opencl/api/opencl/amdocl/amdocl.def.in | 48 --------------------------
opencl/api/opencl/amdocl/amdocl.map.in | 44 -----------------------
2 files changed, 92 deletions(-)
diff --git a/opencl/api/opencl/amdocl/amdocl.def.in b/opencl/api/opencl/amdocl/amdocl.def.in
index 263a67382b..041ab86a22 100644
--- a/opencl/api/opencl/amdocl/amdocl.def.in
+++ b/opencl/api/opencl/amdocl/amdocl.def.in
@@ -158,53 +158,5 @@ aclGetDeviceBinary
aclDumpBinary
_aclHsaLoader
-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
-
#if !defined(OPENCL_MAINLINE)
#endif
diff --git a/opencl/api/opencl/amdocl/amdocl.map.in b/opencl/api/opencl/amdocl/amdocl.map.in
index 4b6cf96aa2..e26be723ff 100644
--- a/opencl/api/opencl/amdocl/amdocl.map.in
+++ b/opencl/api/opencl/amdocl/amdocl.map.in
@@ -169,50 +169,6 @@ global:
ACL_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;