[LLVMdev] Intrinsic & address space

Julien Schmitt Julien.Schmitt at dibcom.fr
Wed Mar 11 02:10:48 PDT 2009


Ok thank you for the tip Luke; I understand my problem ... now it's working well

--
Julien Schmitt

-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Luke Dalessandro
Sent: Tuesday, March 10, 2009 12:42 AM
To: LLVM Developers Mailing List
Subject: Re: [LLVMdev] Intrinsic & address space


Julien Schmitt wrote:
> I would like to use intrinsic with different address space.
> I defined an intrinsic (used to represent à specific instruction of my target) with a pointer in its arguments, but when calling this intrinsic, if the pointer is not in the generic address space (ie AddrSpace 0), an error occurs ("bad signature").
>
> How can I specify the address space in the intrinsic definition ?
> Thank you.

Julien,

If the type of your parameter is llvm_anyptr_ty it should just work with
non-default address spaces. I don't immediately see anything actually
using this type though, so there may be a bug somewhere. I'd verify that
you have defined the intrinsic and then possibly post more information
to the list with more details or a test case if it still isn't working.

Luke

>
>
> --
> Julien Schmitt
>
>
> CONFIDENTIAL NOTICE: The contents of this message, including any attachments, are confidential and are intended solely for the use of the person or entity to whom the message was addressed. If you are not the intended recipient of this message, please be advised that any dissemination, distribution, or use of the contents of this message is strictly prohibited. If you received this message in error, please notify the sender. Please also permanently delete all copies of the original message and any attached documentation. Thank you.
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

CONFIDENTIAL NOTICE: The contents of this message, including any attachments, are confidential and are intended solely for the use of the person or entity to whom the message was addressed. If you are not the intended recipient of this message, please be advised that any dissemination, distribution, or use of the contents of this message is strictly prohibited. If you received this message in error, please notify the sender. Please also permanently delete all copies of the original message and any attached documentation. Thank you.




More information about the llvm-dev mailing list