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
{{ message }}
Repository navigation
DecodeException "Unknown subclass id for DINode: MDSubclassID 26" #15
I tried to use WLLVM to compile a huge program. Then I got a excuteable file , and I used the command 'extract-bc' which was came from WLLVM to get the *.ll file. Finally, I used sys to check bugs, but I got a error "DecodeException "Unknown subclass id for DINode: MDSubclassID 26".
I found some clue about the problem in the llvm-hs project.
"Comparing LLVM Specialized Metadata Nodes with llvm-hs supported Metadata subclasses " llvm-hs/llvm-hs#307
Is there anyone knows how to slove the isssue? or, Is there any other way to get the ll file in a huge program?
Thanks!
sorry for the delay, my notification set up sucks. I think I fixed a few similar issues in llvm-hs in the past. (You can checkout our llvm-hs fork.) Their support is not complete and with huge files you'll hit edge cases like this once in a while.
That's honestly the easiest way to go about it.
I'm happy to hear from the author. I also want to know the commit version of llvm-hs which you had fixed. In that case, I can build the right llvm-hs. Thanks!
I think the easiest way is to build without the -g flag, otherwise, you need to add DILabel support manually in llvm-hs as specified in the issue that you mentioned. You would also need to cherry-pick this commit llvm-hs/llvm-hs@b518fe1 before add new node.
Activity
deian commentedon Feb 8, 2021
sorry for the delay, my notification set up sucks. I think I fixed a few similar issues in llvm-hs in the past. (You can checkout our llvm-hs fork.) Their support is not complete and with huge files you'll hit edge cases like this once in a while.
That's honestly the easiest way to go about it.
killer933 commentedon Feb 18, 2021
I'm happy to hear from the author. I also want to know the commit version of llvm-hs which you had fixed. In that case, I can build the right llvm-hs. Thanks!
deian commentedon Feb 18, 2021
https://github.com/PLSysSec/sys/blob/master/stack.yaml#L8
asesidaa commentedon Apr 20, 2023
I think the easiest way is to build without the
-gflag, otherwise, you need to addDILabelsupport manually in llvm-hs as specified in the issue that you mentioned. You would also need to cherry-pick this commit llvm-hs/llvm-hs@b518fe1 before add new node.