[LLVMdev] attaching metadata to llvm::Argument

Florian Merz
Mon, 21 Feb 2011 16:18:12 -0000

Hey everyone,

I'm trying to retrieve information about signed-/unsignedness of an
llvm::Argument so I can print out it's value to the user properly. llvm
itself
doesn't distinguish signed and unsigned and so llvm::Type is of no help
here.
Checking for nsw/usw is only an unreliable approximation and only available
for llvm::Instructions anyways.

I tried to use debugging information (llvm::DIType) for this, but
getMetadata() is not available for llvm::Argument, only for llvm::Instruction.

Is there any other way to get at this information?

Regards,
 Florian