--- Quote Start ---
Hello, I found a way. For those who had the same problem as me,
aocl-clang -cc1 -O3 -emit-llvm-bc -DALTERA_CL -Wuninitialized -triple fpga64 -mllvm -board -mllvm
~/tools/altera/14.1/hld/board/s5_ref/hardware/s5_ref/board_spec.xml -DACL_BOARD_s5_ref=1 -DAOCL_BOARD_s5_ref=1
matrix_mult.cl -o
matrix_mult.pre.bc --- Quote End ---
Hi, there
I'm a newbie to Altera OpenCL.
As neither the programming guide nor best practices provided by official mention LLVM IR,
I'd like to know how can I found the exact IR during my aoc compilation derived from my kernel code?:confused:
I have already tried aocl-clang but it seems not existing there (using AOCL 15.1).
P.S: The reason I'd like to check IR is that I'm trying to compile my simple kernel to accommodate AOC requirement for pipeline execution, based on the optimization report.
However I found that it was not clear enough to identify the problems during my various simple experiments,
even after reading the programming guide or best practices.(curious whether I m the only one with such difficulty)
As a result, I'd like to find another way to tackle down the frustration - dive into LLVM IR, to figure out why those kernels are rejected.
even though I'm not sure whether it is a right direction.
Appreciate for any help or direction.:)