[LLVMdev] adding comment

Reed Kotler rkotler at mips.com
Thu Apr 17 16:26:02 PDT 2014


On 04/17/2014 09:30 AM, Matt Arsenault wrote:
>
> On Apr 16, 2014, at 2:06 PM, reed kotler <rkotler at mips.com> wrote:
>
>> Is there a simple way to add a comment in the machine instructions of a basic block?
>>
>> Ideally something that can be used with machine instruction builder.
>>
>
> I’ve also been looking for something like this. I’m trying to start work on a pass that would be easiest to implement by merging multiple machine basic blocks into one, but I would really like to retain the comments marking the beginning of the merged blocks. I’ve been considering more complicated ways of doing it rather than losing those
>
> -Matt
>

There is definitely a need for a mechanism to be able to add character 
data to any instruction which will get added as a comment.

Reed



More information about the llvm-dev mailing list