Jeroen Dobbelaere
2013-May-30 20:44 UTC
[LLVMdev] How to associate extra comments to a MachineInstruction ?
Hi, is there a convenient way to associate/add a comment to a MachineInstruction, so that in the produced assembly file, the comment is added next to the instruction ? Greetings, Jeroen Dobbelaere
Eric Christopher
2013-May-30 21:00 UTC
[LLVMdev] How to associate extra comments to a MachineInstruction ?
Should be spelled like this yes? Asm->OutStreamer.AddComment("foo") Asm->EmitFoo(); -eric On Thu, May 30, 2013 at 1:44 PM, Jeroen Dobbelaere <Jeroen.Dobbelaere at synopsys.com> wrote:> Hi, > > is there a convenient way to associate/add a comment to a MachineInstruction, so that > in the produced assembly file, the comment is added next to the instruction ? > > Greetings, > > Jeroen Dobbelaere > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Jeroen Dobbelaere
2013-May-30 21:16 UTC
[LLVMdev] How to associate extra comments to a MachineInstruction ?
> From: Eric Christopher > Subject: Re: [LLVMdev] How to associate extra comments to a > MachineInstruction ? > > Should be spelled like this yes? > > Asm->OutStreamer.AddComment("foo") > Asm->EmitFoo(); > > -ericThat should work at the moment that you are emitting the instructions. But what would you do when you are manipulating a MachineBasicBlock and want to annotate some instructions there ? (way before the assembler jumps in) The annotation belongs to the instruction and other manipulations that are performed later (like reordering of instructions) should keep the annotation (iff the instruction itself is kept). Greetings, Jeroen> > On Thu, May 30, 2013 at 1:44 PM, Jeroen Dobbelaere > <Jeroen.Dobbelaere at synopsys.com> wrote: > > Hi, > > > > is there a convenient way to associate/add a comment to a > MachineInstruction, so that > > in the produced assembly file, the comment is added next to the > instruction ? > > > > Greetings, > > > > Jeroen Dobbelaere > > > > > > _______________________________________________ > > LLVM Developers mailing list > > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reasonably Related Threads
- [LLVMdev] How to associate extra comments to a MachineInstruction ?
- [LLVMdev] How to associate extra comments to a MachineInstruction ?
- [LLVMdev] How to associate extra comments to a MachineInstruction ?
- Inlining + CSE + restrict pointers == funtimes
- LLVM Alias Analysis Technical Call - Doodle Poll