[cfe-dev] Strange character around function declared with "asm"

Lorenzo De Carli lorenzo at cs.wisc.edu
Fri Dec 3 09:02:26 PST 2010


Chris,

It is a bunch of intrinsics that I defined myself, and it only makes
sense with the code I am compiling.

Lorenzo


On Fri, Dec 3, 2010 at 10:37 AM, Chris Lattner <clattner at apple.com> wrote:
>
> On Dec 3, 2010, at 7:40 AM, Lorenzo De Carli wrote:
>
>> Thanks everyone. I guess the question then becomes how can I instruct
>> CLANG to emit calls to user-defined intrinsics when it generates LLVM
>> bytecode.
>>
>> Does anyone have a suggestion? Or if someone can point me to the code
>> that generates the asm code, I can do some dirty hack (without
>> submitting it!) to manage the situation where the symbol start with
>> "llvm.". As it was said, it is probably not a good idea in general,
>> but it would be good enough for my purpose :-)
>
> Which intrinsic is it?  Is this something you're adding to LLVM, or something standard?
>
> -Chris




More information about the cfe-dev mailing list