[LLVMdev] llvm::Type as llvm::Value in metadata
Marcus Frenkel
marcus.frenkel at FernUni-Hagen.de
Mon Mar 26 15:08:25 PDT 2012
Hi all,
I've a question about something that's bothering me for quite some time now: why is a llvm::Function seen as a llvm::Value (in a sense that llvm::Function is a subclass of llvm::Value), but llvm::Type is not? Should they not - technically seen - be equal?
And to ask a concrete question: is there any way to store a reference to a llvm::Type within the LLVM metadata? As far as I know, the MD nodes take only llvm::Values, so I see no way of storing a reference to a type; it would be a nice thing to be able to store such informations, e.g. when using the metadata to store some more user-specific informations about the module.
Hope someone has a nice idea about this!
Greetings
Marcus
More information about the llvm-dev
mailing list