Displaying 7 results from an estimated 7 matches for "veluri".
2020 Jun 28
2
__restirct ignored when including headers like <cmath>
Hi,
I am observing a strange behaviour in which Clang ignores __restirct when I
include some standard headers.
For example, this code:
void vec_add(int* __restrict a,
int* __restrict b,
int n) {
#pragma unroll 4
for(int i=0; i<n; ++i) {
a[i] += b[i];
}
}
results in:
; Function Attrs: nofree norecurse nounwind
define dso_local void @_Z7vec_addPiS_i(i32*
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 May 27
2
Custom Instruction Cost Model to LLVM RISC-V Backend
...ably model the loads from
> different address spaces as being different instructions, even if they are
> in the end the same instruction in the output machine code, and tag them
> with different costs.
>
> Hope this helps,
> Henrik
>
> On Tue, May 26, 2020 at 4:55 AM Bandhav Veluri via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> Hi,
>>
>> I’m working on a RISC-V architecture that has instruction costs different
>> from those in the default cost model. Is there an out-of-source way to
>> provide llc with custom cost model? Or,...
2020 May 26
2
Custom Instruction Cost Model to LLVM RISC-V Backend
Hi,
I’m working on a RISC-V architecture that has instruction costs different
from those in the default cost model. Is there an out-of-source way to
provide llc with custom cost model? Or, does this need a change in LLVM
backend?
Also, the cost model is not totally static. For example, loads from
0x1000-0x1ffc take 1 cycle, whereas loads from address > 0x80000000, take
10-100 cycles. Is it
2020 Jun 24
2
FW: Restrict qualifier on class members
...> <https://reviews.llvm.org/rGb2a37cfe2bda0bc8c4d2e981922b5ac59c429bdc>
> (June 12, 2020)
>
>
>
> Greetings,
>
>
>
> Jeroen Dobbelaere
>
>
>
>
>
>
>
> *From:* llvm-dev <llvm-dev-bounces at lists.llvm.org> *On Behalf Of *Bandhav
> Veluri via llvm-dev
> *Sent:* Monday, June 22, 2020 18:32
> *To:* Neil Henning <neil.henning at unity3d.com>
> *Cc:* llvm-dev <llvm-dev at lists.llvm.org>; Kruse, Michael <
> michael.kruse at anl.gov>
> *Subject:* Re: [llvm-dev] Restrict qualifier on class members
>
>...
2020 Jun 22
2
Restrict qualifier on class members
...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 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...
2020 Jun 22
2
Restrict qualifier on class members
...> 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 abstract some special pointers with a class, like in the
>> > example program below:
>> >
>> > 1 #define __remote __attribute__((address_space(1)))
>> > 2 #inclu...