Displaying 3 results from an estimated 3 matches for "properway".
Did you mean:
properly
2016 Jun 20
7
Suggestion / Help regarding new calling convention
...gisters to none for local functions,
currently I am doing it in following way:
if (F->hasLocalLinkage() && !F->hasAddressTaken()) {
DEBUG(dbgs() << "Function has LocalLinkage \n");
F->setCallingConv(CallingConv::GHC);
}
but we think threre should be clean and properway to do this perhaps like:
if (F->hasLocalLinkage() && !F->hasAddressTaken()) {
DEBUG(dbgs() << "Function has LocalLinkage \n");
F->setCallingConv(CallingConv::NO_Callee_Saved);
}
So I would like to know any better suggestions and if it is better to add a...
2016 Jun 24
2
Suggestion / Help regarding new calling convention
...gt; currently I am doing it in following way:
>
> if (F->hasLocalLinkage() && !F->hasAddressTaken()) {
> DEBUG(dbgs() << "Function has LocalLinkage \n");
> F->setCallingConv(CallingConv::GHC);
> }
>
> but we think threre should be clean and properway to do this perhaps like:
>
> if (F->hasLocalLinkage() && !F->hasAddressTaken()) {
> DEBUG(dbgs() << "Function has LocalLinkage \n");
> F->setCallingConv(CallingConv::NO_Callee_Saved);
> }
>
> So I would like to know any better suggesti...
2016 Jun 21
2
Suggestion / Help regarding new calling convention
...ction pointer. I believe SAFECode has some code somewhere that does this if you need it.
>
>
>> DEBUG(dbgs() << "Function has LocalLinkage \n");
>> F->setCallingConv(CallingConv::GHC);
>> }
>>
>> but we think threre should be clean and properway to do this perhaps like:
>>
>> if (F->hasLocalLinkage() && !F->hasAddressTaken()) {
>> DEBUG(dbgs() << "Function has LocalLinkage \n");
>> F->setCallingConv(CallingConv::NO_Callee_Saved);
>> }
>>
>> So I would li...