Displaying 6 results from an estimated 6 matches for "maxstorespermemset".
2017 Sep 05
4
Lowering llvm.memset for ARM target
...or x86 target.
typedef struct {
int v0[100];
} test;
#define LIMIT 9
void init(test *t)
{
int i;
for (i = 0; i < LIMIT ; i++)
t->v0[i] = 0;
}
int main() {
test t;
init(&t);
return 0;
}
Looking at the llvm sources, I see that there are two key target
specific variables, MaxStoresPerMemset and MaxStoresPerMemsetOptSize,
that determine if the intrinsic llvm.memset can be lowered into store
operations. For ARM, these variables are set to 8 and 4 respectively.
I do not know as to how the default values for these two variables are
arrived at, but doubling these values (similar to that f...
2011 Nov 14
1
[LLVMdev] PTX backend fatal error
Justin,
Add this to your TargetLowering constructor, this fixes the mem* issue.
maxStoresPerMemcpy = 4096;
maxStoresPerMemmove = 4096;
maxStoresPerMemset = 4096;
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Justin Holewinski
Sent: Monday, November 14, 2011 7:12 AM
To: Alberto Magni
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] PTX backend fatal error
On Mon, Nov 14, 2011 at 8:57 AM, Alberto Magni &...
2011 Nov 14
0
[LLVMdev] PTX backend fatal error
On Mon, Nov 14, 2011 at 8:57 AM, Alberto Magni <alberto.magni86 at gmail.com>wrote:
> Hi everybody,
>
> I am testing the PTX backend using the OpenCL NVIDIA SDK benchmarks.
> Compiling the Histogram64.cl program I get a several backend errors.
>
> I isolated one of them in the following kernel program:
>
> __kernel void kernel_function(__global int *input) {
>
2011 Nov 14
2
[LLVMdev] PTX backend fatal error
Hi everybody,
I am testing the PTX backend using the OpenCL NVIDIA SDK benchmarks.
Compiling the Histogram64.cl program I get a several backend errors.
I isolated one of them in the following kernel program:
__kernel void kernel_function(__global int *input) {
__local char localArray[16];
for(unsigned int index = 0; index < 16; ++index)
localArray[index] = 0;
input[0] =
2012 Mar 05
0
[LLVMdev] Clang question
You'll need to do the work then. I'd also question why? On most platforms a decent memcpy exists.
-eric
On Mar 5, 2012, at 12:28 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> I would like it to always be lowered, I don't want it.
>
> On Mon, Mar 5, 2012 at 12:27 PM, Eric Christopher <echristo at apple.com> wrote:
> You don't have memcpy or want it to
2012 Mar 05
6
[LLVMdev] Clang question
I would like it to always be lowered, I don't want it.
On Mon, Mar 5, 2012 at 12:27 PM, Eric Christopher <echristo at apple.com>wrote:
> You don't have memcpy or want it to always lower it?
>
> -eric
>
> On Mar 5, 2012, at 11:56 AM, Ryan Taylor <ryta1203 at gmail.com> wrote:
>
> > Christoph,
> >
> > Yes, you are correct on the lifetime