[LLVMdev] MachineInstr: external symbols problem

Vladimir Prus ghost at cs.msu.su
Fri Apr 15 08:31:11 PDT 2005

On Friday 15 April 2005 19:29, Chris Lattner wrote:
> On Fri, 15 Apr 2005, Vladimir Prus wrote:
> >> Another thing that might be interesting is the new llvm.pcmarker
> >> intrinsic that Andrew recently added.  I have no idea if it would be
> >> useful to you or not, but... it's documented here:
> >> http://llvm.cs.uiuc.edu/docs/LangRef.html#i_pcmarker
> >
> > In fact, I'm having problems exactly while lowering the pcmarker
> > intrinsic ;-) Need to get in to assembler somehow, and I already have a
> > code that parses assembler and recognised calls to functions with certain
> > name patterns as markers.
> It looks like the Alpha backend treats these as pseudo instructions:
> def PCLABEL : PseudoInstAlpha<(ops s64imm:$num), "PCMARKER_$num:\n">;

Interesting trick. It looks like '$num' inside the string is interpreted 
automatically. Is it matches with "$num" in the first argument? If the first 
argument is DAG, will it work if my backend does not use pattern matching?


More information about the llvm-dev mailing list