[LLVMdev] adding comment
Anton Korobeynikov
anton at korobeynikov.info
Thu Apr 24 06:46:01 PDT 2014
> I tried out CommentFlag and it looks ideal for this purpose. The attached patch adds a FastISel flag and prints it in the AsmPrinter and the IR dump. You can then call MachineInstr::setAsmPrinterFlag(MachineInstr::FastISel) to set the flag.
>
> Some passes seem to be stripping the comment flags though. The one I noticed is the pseudo-instruction expansion pass:
Right. Flags is not something which one would expect to be accurate
and preserved. The MI passes are allowed to remove / alter the flags
in any way.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the llvm-dev
mailing list