Community
cancel
Showing results for 
Search instead for 
Did you mean: 
165 Views

Issue with generation LLVM IR using oneApi

Jump to solution

Hi everyone.
I'm trying to split the compilation, and generate LLVM IR. But the compiler shows an error that IR output is not supported.
clang++ -fsycl -fsycl-unnamed-lambda -S -emit-llvm -ferror-limit=5 addTwoArrays.dp.cpp -std=c++17

error: IR output is not supported.
1 error generated.

Maybe someone has encountered this, or knows some other option to generate IR?

Thanks!

0 Kudos
1 Solution
ShivaniK_Intel
Moderator
99 Views

Hi,

 

I apologize for the delay.

 

Please follow the below steps to generate LLVM IR.

 

export IGC_DumpToCurrentDir=1
export IGC_DumpLLVMIR=1
dpcpp <code>.cpp
./a.out

 

Thanks&Regards

Shivani

 

View solution in original post

4 Replies
ShivaniK_Intel
Moderator
147 Views

Hi,


Thanks for reaching out to us.


We are able to reproduce the error on our end. We are working on it and will get back to you soon.


Thanks & Regards

Shivani


ShivaniK_Intel
Moderator
100 Views

Hi,

 

I apologize for the delay.

 

Please follow the below steps to generate LLVM IR.

 

export IGC_DumpToCurrentDir=1
export IGC_DumpLLVMIR=1
dpcpp <code>.cpp
./a.out

 

Thanks&Regards

Shivani

 

View solution in original post

82 Views
ShivaniK_Intel
Moderator
71 Views


Hi,


Thanks for the confirmation! As your issue has been resolved, we will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.


Have a Good day!


Thanks & Regards

Shivani


Reply