Displaying 9 results from an estimated 9 matches for "array_endof".
Did you mean:
array_end
2009 Dec 09
5
[LLVMdev] [PATCH] increase the max number of physical registers
...t; Probably caused by this member:
>
> /// KillIndices - The index of the most recent kill (proceding bottom-up),
> /// or ~0u if the register is not live.
> unsigned KillIndices[TargetRegisterInfo::FirstVirtualRegister];
>
> And this:
>
> std::fill(KillIndices, array_endof(KillIndices), ~0u);
>
> It should probably be dynamically allocated with TRI->getNumRegs() members instead.
Yep. David Goodwin is going to fix it.
Evan
>
> /jakob
>
2011 Jul 26
4
[LLVMdev] How to get the return address on the stack on LLVM
...canary on
the stack, I can get the return address by:
ConstantInt* ci =
llvm::ConstantInt::get(Type::getInt32Ty(RI->getContext()), 0);
Value* Args1[] = {ci};
CallInst* callInst = CallInst::Create(Intrinsic::getDeclaration(M,
Intrinsic::returnaddress),
&Args1[0], array_endof(Args1), "Call Return Address", InsPt);
CallInst will get the return address and it works.
While, in the epilogue of the function, due to the canary has been
inserted. I write the similar code:
ConstantInt* ci2 =
llvm::ConstantInt::get(Type::getInt32Ty(RI->getContext()), 1);...
2010 Jul 06
1
[LLVMdev] [PATCH] increase the max number of physical registers
...mber:
>>
>> /// KillIndices - The index of the most recent kill (proceding bottom-up),
>> /// or ~0u if the register is not live.
>> unsigned KillIndices[TargetRegisterInfo::FirstVirtualRegister];
>>
>> And this:
>>
>> std::fill(KillIndices, array_endof(KillIndices), ~0u);
>>
>> It should probably be dynamically allocated with TRI->getNumRegs() members instead.
>
> Yep. David Goodwin is going to fix it.
>
> Evan
>
>> /jakob
>>
>
>
> _______________________________________________
> LLVM De...
2009 Dec 08
2
[LLVMdev] [PATCH] increase the max number of physical registers
This caused a massive slow down to post-ra scheduler (llc -O3 on x86, -O2 on ARM). I'm going to revert it for now until it has been addressed.
Evan
On Dec 7, 2009, at 11:39 AM, Dan Gohman wrote:
>
> On Dec 7, 2009, at 11:15 AM, Pekka Jääskeläinen wrote:
>
>> Here's the actual patch, sorry ;)
>
> Applied in r90789.
>
> Dan
>
>
>
2009 Dec 08
0
[LLVMdev] [PATCH] increase the max number of physical registers
...for now until it has been addressed.
Probably caused by this member:
/// KillIndices - The index of the most recent kill (proceding bottom-up),
/// or ~0u if the register is not live.
unsigned KillIndices[TargetRegisterInfo::FirstVirtualRegister];
And this:
std::fill(KillIndices, array_endof(KillIndices), ~0u);
It should probably be dynamically allocated with TRI->getNumRegs() members instead.
/jakob
2011 Jun 15
0
[LLVMdev] Custom allocation orders
...ion dedicate RBP / EBP to being a frame ptr?
if (!Subtarget.is64Bit())
// In 32-mode, none of the 8-bit registers aliases EBP or ESP.
return begin() + 8;
else if (TFI->hasFP(MF) || MFI->getReserveFP())
// If so, don't allocate SPL or BPL.
return array_endof(X86_GR8_AO_64) - 1;
else
// If not, just don't allocate SPL.
return array_endof(X86_GR8_AO_64);
}
}];
}
It is inconvenient to compute the front and back of the same list in two different functions, but the biggest problem with this is that TableGen doesn't under...
2011 Jul 26
0
[LLVMdev] How to get the return address on the stack on LLVM
...gt;>> ConstantInt* ci =
>>> llvm::ConstantInt::get(Type::getInt32Ty(RI->getContext()), 0);
>>> Value* Args1[] = {ci};
>>> CallInst* callInst = CallInst::Create(Intrinsic::getDeclaration(M,
>>> Intrinsic::returnaddress),
>>> &Args1[0], array_endof(Args1), "Call Return Address", InsPt);
>>
>> This generates a call to llvm.returnaddress(0). This returns the
>> program counter of the call site that called the currently active
>> function.
>>
>>>
>>> CallInst will get the return address...
2010 Sep 02
0
[LLVMdev] [PATCH] increase the max number of physical registers
... /// KillIndices - The index of the most recent kill (proceding bottom-up),
>>> /// or ~0u if the register is not live.
>>> unsigned KillIndices[TargetRegisterInfo::FirstVirtualRegister];
>>>
>>> And this:
>>>
>>> std::fill(KillIndices, array_endof(KillIndices), ~0u);
>>>
>>> It should probably be dynamically allocated with TRI->getNumRegs() members instead.
>>
>> Yep. David Goodwin is going to fix it.
>>
>> Evan
>>
>>> /jakob
>>>
>>
>>
>> _________________...
2010 Sep 02
2
[LLVMdev] [PATCH] increase the max number of physical registers
.../// KillIndices - The index of the most recent kill (proceding bottom-up),
>>> /// or ~0u if the register is not live.
>>> unsigned KillIndices[TargetRegisterInfo::FirstVirtualRegister];
>>>
>>> And this:
>>>
>>> std::fill(KillIndices, array_endof(KillIndices), ~0u);
>>>
>>> It should probably be dynamically allocated with TRI->getNumRegs() members instead.
>> Yep. David Goodwin is going to fix it.
>>
>> Evan
>>
>>> /jakob
>>>
>>
>> ___________________________________...