P4 to Git Change 1151052 by emankov@em-hsa-amd on 2015/05/14 15:16:47

ECR #333753 - Compiler Lib/RT: libutils.h usage removal due to non-API interface

	Utils are to be used only by Compiler Lib itself.

	Testing: pre checkin

	Reviewers: German Andryeyev, Brian Sumner, Yaxun Liu

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.h#17 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#178 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#193 edit
这个提交包含在:
foreman
2015-05-14 15:28:01 -04:00
父节点 889deb9f55
当前提交 1c5ee64101
修改 4 个文件,包含 28 行新增22 行删除
+16 -1
查看文件
@@ -31,7 +31,6 @@ extern void DeviceUnload();
#include "blowfish/oclcrypt.hpp"
#endif
#include "../utils/libUtils.h"
#include "utils/bif_section_labels.hpp"
#include <vector>
@@ -42,6 +41,21 @@ extern void DeviceUnload();
#include <fstream>
#include <set>
#if !defined(BCMAG)
#define BCMAG "BC"
#define SBCMAG 2
#endif
// Helper predicate returns true if p starts with bit code signature.
// TODO: Move it into Compiler Lib back in new 1_0 API
inline static bool
isBcMagic(const char* p)
{
if (p==NULL || strncmp(p, BCMAG, SBCMAG) != 0) {
return false;
}
return true;
}
namespace device {
extern const char* BlitSourceCode;
}
@@ -238,6 +252,7 @@ Device::~Device()
}
}
// TODO: Move it into Compiler Lib in new 1_0 API
bool
Device::verifyBinaryImage( const void* image, size_t size) const
{