On 01/11/12 09:16, Duncan Sands wrote:> check out AssemblyAnnotationWriter.hI've got some static data being output, but now I'm unsure on how I should structure the actual strings I wish to write. For example, on the emitFunctionAnnot I get a Function object, but I don't see any API which we set/get user or meta data for a function. (Note, obviously I can just do my own mapping of the Function pointer and lookup what I want at this point. It just doesn't seem correct.) -- edA-qa mort-ora-y -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Sign: Please digitally sign your emails. Encrypt: I'm also happy to receive encrypted mail. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121101/bc3f25d3/attachment.sig>
Hi edA-qa mort-ora-y, On 01/11/12 10:57, edA-qa mort-ora-y wrote:> On 01/11/12 09:16, Duncan Sands wrote: >> check out AssemblyAnnotationWriter.h > > I've got some static data being output, but now I'm unsure on how I > should structure the actual strings I wish to write. For example, on the > emitFunctionAnnot I get a Function object, but I don't see any API which > we set/get user or meta data for a function. > > (Note, obviously I can just do my own mapping of the Function pointer > and lookup what I want at this point. It just doesn't seem correct.)what is it you want to lookup? I mean, what is the information that you plan to annotate the IR with? Ciao, Duncan.
On 01/11/12 18:25, Duncan Sands wrote:>> I've got some static data being output, but now I'm unsure on how I >> should structure the actual strings I wish to write. For example, on the >> emitFunctionAnnot I get a Function object, but I don't see any API which >> we set/get user or meta data for a function. > > what is it you want to lookup? I mean, what is the information that you > plan to annotate the IR with?I want to be able to print a piece of the source code which is associated with the following lines of IR (when printed). This is strictly so I can better debug my code generation -- I don't need actual debug information. For example, if a function is defined in the source code I'd like the printed IR function to be preceeded with the line which defined it. I don't need this information to become debug information, just printed along with the dumped assembly. -- edA-qa mort-ora-y -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Sign: Please digitally sign your emails. Encrypt: I'm also happy to receive encrypted mail. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121101/4977880d/attachment.sig>