Correct Intermediate Language related implementation

Change-Id: Ib2bdd21c255245767df787797bb5cfe05482e489
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2020-10-08 12:21:58 +02:00
committed by sys_ocldev
parent 410e3c0ced
commit da524fa03d
12 changed files with 80 additions and 76 deletions

View File

@@ -36,12 +36,21 @@ class Context;
class CompilerInterface;
class Device;
class ExecutionEnvironment;
class Program;
struct KernelInfo;
template <>
struct OpenCLObjectMapper<_cl_program> {
typedef class Program DerivedType;
};
namespace ProgramFunctions {
using CreateFromILFunc = std::function<Program *(Context *ctx,
const void *il,
size_t length,
int32_t &errcodeRet)>;
extern CreateFromILFunc createFromIL;
} // namespace ProgramFunctions
constexpr cl_int asClError(TranslationOutput::ErrorCode err) {
switch (err) {
default: