-
Notifications
You must be signed in to change notification settings - Fork 22
How to translate GLSL file to LLVM's .bc file? #71
Comments
This is Top IR define fastcc void @main() { mainBody: ; preds = %entry stage-epilogue: ; preds = %mainBody stage-exit: ; preds = %stage-epilogue ; Function Attrs: alwaysinline ; Function Attrs: alwaysinline ; Function Attrs: alwaysinline ; Function Attrs: alwaysinline ; Function Attrs: alwaysinline ; Function Attrs: nounwind readnone ; Function Attrs: nounwind readnone ; Function Attrs: nounwind readnone ; Function Attrs: nounwind readnone ; Function Attrs: nounwind readnone ; Function Attrs: nounwind readnone ; Function Attrs: nounwind readnone ; Function Attrs: nounwind readnone ; Function Attrs: nounwind readnone ; Function Attrs: nounwind readnone ; Function Attrs: nounwind readnone ; Function Attrs: nounwind readnone ; Function Attrs: nounwind readnone ; Function Attrs: nounwind readnone ; Function Attrs: nounwind readnone attributes #0 = { alwaysinline } !gla.outputs = !{!0, !2, !4} !0 = metadata !{metadata !"o", i32 9, <4 x float>* @o_typeProxy, metadata !1} |
This sounds like it might be mixing versions. Possibly independent point is that I don't think LunarGLASS has been ported to LLVM 4.x. |
Thank you very much for your response! |
Can you add some program operation description? Just like "how to transform a.frag file to a.frag.out file?" I know your program is very powerful,it have a lots of useful functions.But,I don't know how to use it in a right operate way. |
Hey,I am asking question again~~
My LLVM version is LLVM-4.0
Initially,I saved 130.frag.out file's bottom IR part as a.ll file.
Then, I use llvm-as to translate a.ll file to a.bc file,
but I get an error :"error: expected comma after load's type %0 = load i32 addrspace(1)* @sampc, !gla.uniform !50"
Then I saved 130.frag.out file's Top IR part as b.ll file.Next,I use llvm-as to translate b.ll file to b.bc file,I get an error again: "error: expected comma after getelementptr's type
%1 = call i32 @cudaSetupArgument(i8* %0, i64 ptrtoint (i32* getelementptr (i32* null, i32 1) to i64), i64 0)"
So,our program how to translate GLSL file to LLVM's .bc file??
The text was updated successfully, but these errors were encountered: