Forum Discussion
Altera_Forum
Honored Contributor
10 years agoHello, 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 Start --- Hello,- I am very new to Altera-openCL. I tried getting LLVM Itermediate representaion of an example Altera-opencl code by using Clang version 3.3. Though it compiles with warnings as below, I would like to know is there any proper way of getting LLVM IR.
- I also tried doing the same with aocl-clang but it resulted me the following.
- If I try to include --board option with aocl-clang, I receive the following