reimplement structurize algorithm

Graphics / Beignet - Luo Xionghu [intel.com] - 17 June 2015 22:37 UTC

serial, loop and if pattern match from top to down.

v2: remove recursive sort since the blocks are in order already, just copy it from Function; add comments to explain the pattern match process.

a572a98 reimplement structurize algorithm.
backend/src/CMakeLists.txt | 2 +
backend/src/ir/structurizer.cpp | 987 ++++++++++++++++++++++++++++++++++++++
backend/src/ir/structurizer.hpp | 247 ++++++++++
backend/src/llvm/llvm_to_gen.cpp | 15 +
4 files changed, 1251 insertions(+)

Upstream: cgit.freedesktop.org


  • Share