[Beignet] [PATCH] Adaptions for LLVM 3.3 / SPIR

zhigang gong zhigang.gong at gmail.com
Tue Jun 4 18:26:57 PDT 2013


On Tue, Jun 4, 2013 at 7:46 PM, Dag Lem <dag at nimrod.no> wrote:

> Zhigang Gong <zhigang.gong at linux.intel.com> writes:
>
> > And one minor comment below:
>
> [...]
>
> >> +// FIXME:
> >> +// This is a transitional hack to bypass the LLVM 3.3 built-in types.
> >> +// See the Khronos SPIR specification for handling of these types.
> > Should not define the image address space again for 3.2/3.1.
> >
> > #if 100 * __clang_major__ + __clang_minor__ == 303
> >> +#define __texture __attribute__((address_space(4)))
> > #endif
>
> AFAIK it is legal to redefine a macro to the same definition. Does this
> cause any problems in the form of warnings or otherwise? As noted it is
> (hopefully) just a temporary hack for LLVM 3.3. I saw you mention that
> you're going to work on this - great!


> In any case, feel free to change this to your liking. I haven't got
> access to my local git repository right now, so if you want me to change
> this it will have to wait a day or two.
>

 You are right that it doesn't cause real problem. Just to make the code a
little bit cleaner,
  I will fix it. And no need to submit another version for this tiny fix.

  I'm still waiting for some comments/test report from other systems.
Thanks for the patch.

>
> --
> Best regards,
>
> Dag Lem
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/beignet/attachments/20130605/5dccaf15/attachment.html>


More information about the Beignet mailing list