Displaying 4 results from an estimated 4 matches for "6wtpxj".
2020 Jun 21
3
Restrict qualifier on class members
Hi,
I'm trying to abstract some special pointers with a class, like in the
example program below:
1 #define __remote __attribute__((address_space(1)))
2 #include <stdint.h>
3
4 __remote int* A;
5 __remote int* B;
6
7 class RemotePtr {
8 private:
9 __remote int* __restrict a;
10
11 public:
12 RemotePtr(__remote int* a) : a(a) {}
13
14 __remote
2020 Jun 22
2
Restrict qualifier on class members
...working on support for restrict qualified local variables and struct members.
>
> The patches exist but are not merged yet. If you want to give it a try apply https://reviews.llvm.org/D69542.
>
>
> Initially I could only think of this solution for your problem: https://godbolt.org/z/6WtPXJ
>
> Michael (CC'ed) might now another annotation to get `llvm.access` metadata for the loop, which should do what you intend.
>
>
> Cheers,
>
> Johannes
>
>
> On 6/21/20 11:56 AM, Bandhav Veluri via llvm-dev wrote:
>
> Hi,
>
> I'm trying to abstra...
2020 Jun 22
2
Restrict qualifier on class members
...struct members.
>> >
>> > The patches exist but are not merged yet. If you want to give it a try
>> apply https://reviews.llvm.org/D69542.
>> >
>> >
>> > Initially I could only think of this solution for your problem:
>> https://godbolt.org/z/6WtPXJ
>> >
>> > Michael (CC'ed) might now another annotation to get `llvm.access`
>> metadata for the loop, which should do what you intend.
>> >
>> >
>> > Cheers,
>> >
>> > Johannes
>> >
>> >
>> > On 6/...
2020 Jun 24
2
FW: Restrict qualifier on class members
...org/D69542
> <https://urldefense.com/v3/__https:/reviews.llvm.org/D69542__;!!A4F2R9G_pg!KbQb7EC98K_vFVBRDQoSveXuMcvOvKcWvTers1QW_g1LmGPsOh-wI0r2mV_c2G1yLLzXOdAP$>
> .
> >
> >
> > Initially I could only think of this solution for your problem:
> https://godbolt.org/z/6WtPXJ
> <https://urldefense.com/v3/__https:/godbolt.org/z/6WtPXJ__;!!A4F2R9G_pg!KbQb7EC98K_vFVBRDQoSveXuMcvOvKcWvTers1QW_g1LmGPsOh-wI0r2mV_c2G1yLEju0wQ6$>
> >
> > Michael (CC'ed) might now another annotation to get `llvm.access`
> metadata for the loop, which should do what yo...