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
Hello, i have recently been using this library to parse some data from the DXIL directx shader , which uses llvm bitcode to store it's bytecode and type information. Long story short, it uses named metadata to store important information about buffer structures. Using llvmlite it seems i wasn't able to obtain named metadata from ModuleRef objects from bitcode, whilst the ir Module is able to.
As llvmlite uses llvm::Module already for it's ModuleRef, wouldn't it be trivial to implement a function to use the getNamedMetadata function of llvm::Module
Am i doing something wrong, or is it just not implemented?
Best regards
The text was updated successfully, but these errors were encountered:
I think it's just not implemented, things tend to be implemented on an as-needed basis. If getNamedMetadata() were implemented, what methods of the resulting NamedMDNode would you want to use (e.g. dump())? I think some would also need to be implemented to fully provide the functionality you want - does that align with your understanding?
Well ideally it would be the same as for the ir, but that the nodes use the llvm backing nodes instead, but ofc then the question would be if it should be reused or some higher order abstractions to be placed between both ir and backend.
To be honest, i would also just be fine with a method to obtain a ir Module from a ModuleRef, as then they would be convertible to and from.
This could be implemented in many ways, as for example printing a ModuleRef results in llvm ir assembly, which could be parsed into a ir object? or a direct conversion?
Again i am open to the implementation, i just want access to named and unnamed metadata from llvm bitcode
Feature request
Hello, i have recently been using this library to parse some data from the DXIL directx shader , which uses llvm bitcode to store it's bytecode and type information. Long story short, it uses named metadata to store important information about buffer structures. Using llvmlite it seems i wasn't able to obtain named metadata from
ModuleRef
objects from bitcode, whilst the ir Module is able to.As llvmlite uses
llvm::Module
already for it'sModuleRef
, wouldn't it be trivial to implement a function to use thegetNamedMetadata
function ofllvm::Module
Am i doing something wrong, or is it just not implemented?
Best regards
The text was updated successfully, but these errors were encountered: