Displaying 9 results from an estimated 9 matches for "someblock".
Did you mean:
someblk
2010 Mar 26
1
[LLVMdev] Using GetElementPtr to traverse large arrays
...idn't find the solution..
What is the best way to traverse a large array (say size of million)
with GetElementPtr
The problem with the following code, is that it forces you to create
million constant index values:
intVars = new AllocaInst(Type::getInt32Ty(ctx), allocaSize, "intVars",
someBlock);
for(int i = 0; i < 1000000; i++)
{
Value *idx = ConstantInt::get(Type::getInt32Ty(ctx), i);
GetElementPtrInst *gep = GetElementPtrInst::Create(intVars, idx,
"ElemPtr", someBlock);
new StoreInst(idx, gep, entryBlock); //Store some value in it
}
Apart from the size issue, Wha...
2013 Sep 26
3
[LLVMdev] Request for comments: TBAA on call
...anguage. There are probably other examples that arise in high-level languages, but let's use allocation as an example for now. I can envision two ways of representing allocation in LLVM IR:
Method #1:
%object = call @runtime_allocate(... /* pass size and/or other data */)
Method #2:
SomeBlock:
... ; code preceding the allocation
%objectFast = ... ; IR for the inlined allocation fast path, which produces %objectFast but may yield null if the fast path fails and we need to take slow path
%didFail = icmp eq %objectFast, null
br %didFail, label %AllocationSlowPath, label...
2013 Oct 07
0
[LLVMdev] Request for comments: TBAA on call
...gh-level languages, but let's use allocation as an example for now. I
> can envision two ways of representing allocation in LLVM IR:
>
> Method #1:
>
> %object = call @runtime_allocate(... /* pass size and/or other
> data */)
>
> Method #2:
>
> SomeBlock:
> ... ; code preceding the allocation
> %objectFast = ... ; IR for the inlined allocation fast path,
> which produces %objectFast but may yield null if the fast path fails and we
> need to take slow path
> %didFail = icmp eq %objectFast, null
>...
2013 Oct 07
2
[LLVMdev] Request for comments: TBAA on call
...in high-level languages, but let's use allocation as an example for now. I can envision two ways of representing allocation in LLVM IR:
>
> Method #1:
>
> %object = call @runtime_allocate(... /* pass size and/or other data */)
>
> Method #2:
>
> SomeBlock:
> ... ; code preceding the allocation
> %objectFast = ... ; IR for the inlined allocation fast path, which produces %objectFast but may yield null if the fast path fails and we need to take slow path
> %didFail = icmp eq %objectFast, null
>...
2013 Oct 07
0
[LLVMdev] Request for comments: TBAA on call
...t let's use allocation as an example for now. I can envision two ways of representing allocation in LLVM IR:
>>
>> Method #1:
>>
>> %object = call @runtime_allocate(... /* pass size and/or other data */)
>>
>> Method #2:
>>
>> SomeBlock:
>> ... ; code preceding the allocation
>> %objectFast = ... ; IR for the inlined allocation fast path, which produces %objectFast but may yield null if the fast path fails and we need to take slow path
>> %didFail = icmp eq %objectFast, null
&g...
2013 Oct 08
3
[LLVMdev] Request for comments: TBAA on call
...xample for now. I can envision two ways of representing allocation in LLVM IR:
>>>
>>> Method #1:
>>>
>>> %object = call @runtime_allocate(... /* pass size and/or other data */)
>>>
>>> Method #2:
>>>
>>> SomeBlock:
>>> ... ; code preceding the allocation
>>> %objectFast = ... ; IR for the inlined allocation fast path, which produces %objectFast but may yield null if the fast path fails and we need to take slow path
>>> %didFail = icmp eq %objectFast...
2013 Oct 08
2
[LLVMdev] Request for comments: TBAA on call
...allocation as an example for now. I
>> can envision two ways of representing allocation in LLVM IR:
>>
>> Method #1:
>>
>> %object = call @runtime_allocate(... /* pass size and/or other
>> data */)
>>
>> Method #2:
>>
>> SomeBlock:
>> ... ; code preceding the allocation
>> %objectFast = ... ; IR for the inlined allocation fast path,
>> which produces %objectFast but may yield null if the fast path fails and we
>> need to take slow path
>> %didFail = icmp eq %obje...
2013 Oct 08
0
[LLVMdev] Request for comments: TBAA on call
...high-level languages, but let's use allocation as an example for now. I
> can envision two ways of representing allocation in LLVM IR:
>
> Method #1:
>
> %object = call @runtime_allocate(... /* pass size and/or other
> data */)
>
> Method #2:
>
> SomeBlock:
> ... ; code preceding the allocation
> %objectFast = ... ; IR for the inlined allocation fast path,
> which produces %objectFast but may yield null if the fast path fails and we
> need to take slow path
> %didFail = icmp eq %objectFast, null
>...
2013 Oct 08
0
[LLVMdev] Request for comments: TBAA on call
...;>> can envision two ways of representing allocation in LLVM IR:
>>>
>>> Method #1:
>>>
>>> %object = call @runtime_allocate(... /* pass size and/or
>>> other data */)
>>>
>>> Method #2:
>>>
>>> SomeBlock:
>>> ... ; code preceding the allocation
>>> %objectFast = ... ; IR for the inlined allocation fast path,
>>> which produces %objectFast but may yield null if the fast path fails and we
>>> need to take slow path
>>> %did...