P4 to Git Change 1175561 by mbareghe@mbareghe_stg_win30 on 2015/07/30 10:53:59

EPR #419362 - Forum [170348]: problem with printf for OpenCL 2.0 kernel build - fix for regression caused in Sanity debugger tests.

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/llvm32/lib/Target/AMDIL/AMDILKernelManager.cpp#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#197 edit
Bu işleme şunda yer alıyor:
foreman
2015-07-30 11:08:43 -04:00
ebeveyn 51ecd77d53
işleme 6ee94556b7
+18
Dosyayı Görüntüle
@@ -1273,6 +1273,8 @@ NullProgram::parseFuncMetadata(const std::string& source, size_t posBegin, size_
for (size_t i = 0; i < tmp; ++i) {
char symbol = source[pos++];
if (symbol == '\\') {
// Rest of the C escape sequences (e.g. \') are handled correctly
// by the MDParser, we are not sure exactly how!
switch (source[pos]) {
case 'n':
pos++;
@@ -1282,6 +1284,22 @@ NullProgram::parseFuncMetadata(const std::string& source, size_t posBegin, size_
pos++;
symbol = '\r';
break;
case 'a':
pos++;
symbol = '\a';
break;
case 'b':
pos++;
symbol = '\b';
break;
case 'f':
pos++;
symbol = '\f';
break;
case 'v':
pos++;
symbol = '\v';
break;
default:
break;
}