TODO

TODO

The compiler is quite complete now in terms of functionality. It could pass almos all of the piglit OCL test cases and the pass rate for the OpenCV test suite is also quite good now. But there are plenty of things to do for the final performance tuning.

OpenCL standard library

Today we define the OpenCL API in header file src/ocl_stdlib.h.

By the way, one question remains: do we want to implement the high-precision functions as inline functions or as external functions to call? Indeed, inlining all functions may lead to severe code bloats while calling functions will require to implement a proper ABI. We certainly want to do both actually.

LLVM front-end

The code is defined in src/llvm. We used the SPIR and the OpenCL profile to compile the code. Therefore, a good part of the job is already done. However, many things must be implemented:

Gen IR

The code is defined in src/ir. Main things to do are:

Backend

The code is defined in src/backend. Main things to do are:

General plumbing

I tried to keep the code clean, well, as far as C++ can be really clean. There are some header cleaning steps required though, in particular in the backend code.

The context used in the IR code generation (see src/ir/context.*pp) should be split up and cleaned up too.

I also purely and simply copied and pasted the Gen ISA disassembler from Mesa. This leads to code duplication. Also some messages used by OpenCL (untyped reads and writes) are not properly decoded yet.

All of those code should be improved and cleaned up are tracked with "XXX" comments in the code.