[LLVMdev] MachineInstr: external symbols problem

Chris Lattner sabre at nondot.org
Fri Apr 15 08:29:11 PDT 2005


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">;

maybe you could do something similar?  If not, I think the string table is 
the way to go...

-Chris

-- 
http://nondot.org/sabre/
http://llvm.cs.uiuc.edu/




More information about the llvm-dev mailing list