You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the following command to optimize OPT.ll by adding O3 optimization:
opt -O3 -S -o OPT_O3.ll OPT.ll
an error occurs indicating an error in expected type:
OPT.ll:12:63: warning: ptr type is only supported in -opaque-pointers mode
@om_external_constant_data_constant_733_opt = internal global ptr null, align 16
^
opt: OPT.ll:12:63: error: expected type
@om_external_constant_data_constant_733_opt = internal global ptr null, align 16
^ ^
I have attached the OPT.ll file to reproduce the error by running the above mentioned command. OPT.ll .
I generated OPT.ll using onnx-mlir tools and the commands are as follows:-
Can you give us the original onnx file? Since we are mostly about lowering ONNX to LLVM, that is where we would like to see if something went wrong. Please a small reproducer if it's a large model.
Also, does it work if you issue the command that lower it directly to .so (namely -EmitLib). That is how we usually issue the command.
Problem Description:
When running the following command to optimize
OPT.ll
by adding O3 optimization:an error occurs indicating an error in expected type:
I have attached the OPT.ll file to reproduce the error by running the above mentioned command.
OPT.ll .
I generated OPT.ll using onnx-mlir tools and the commands are as follows:-
The above mentioned command generated the OPT.onnx.mlir
and OPT.ll is generated by the above command
The text was updated successfully, but these errors were encountered: