Add the PrintfParser llvm parser into the llvm backend.
authorJunyan He <junyan.he@linux.intel.com>
Tue, 10 Jun 2014 04:52:54 +0000 (12:52 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Wed, 11 Jun 2014 03:04:04 +0000 (11:04 +0800)
commit42cdacda1b5217c593d23621775651a7143a353c
tree20e60920e80d69c9424a0b449df6c7f2f1450763
parent91afb05c0f6440ada79a0e6896b64aa0bc3b2ca2
Add the PrintfParser llvm parser into the llvm backend.

The PrintfParser will work before the llvm gen backend.
It will filter out all the printf function call. When
the printf call found, we will analyse the print format
and % place holder here. Replace the print call with
STORE or CONV+STORE instruction if needed.

Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/CMakeLists.txt
backend/src/ir/function.cpp
backend/src/ir/function.hpp
backend/src/llvm/llvm_gen_backend.cpp
backend/src/llvm/llvm_gen_backend.hpp
backend/src/llvm/llvm_printf_parser.cpp [new file with mode: 0644]
backend/src/llvm/llvm_to_gen.cpp