Displaying 4 results from an estimated 4 matches for "isglobalinsmallsectionkind".
2016 Nov 08
2
[MC] Target-Independent Small Data Section Handling
...(on top of BSS, Data, Common). That's what the r2 base is for (.sdata2, defined to be constant data). 32-bit immediate loads take 2 ops minimum on PPC, so even constant loading benefits from small data.
It'd be handy to add a third argument containing what kind would normally be returned:
isGlobalInSmallSectionKind(GO, TM, <nominal-kind-expr>)
If a ReadOnly global is better emitted as instruction immediates, then the target can return `false` right then and there.
> On Nov 8, 2016, at 07:21, Simon Dardis <Simon.Dardis at imgtec.com> wrote:
>
> isGlobalInSmallSectionKind
2016 Nov 08
3
[MC] Target-Independent Small Data Section Handling
...ndent small data classification has 2 usage
avenues depending on the context:
For all GlobalObjects:
1. Pass GlobalObject to target-independent
TargetLoweringObjectFile::isGlobalInSmallSection. If it's a
declaration, make a virtual call to a new method named
TargetLoweringObjectFile::isGlobalInSmallSectionKind (doing
target-specific scrutiny) and return the result early.
2. Pass to TargetLoweringObjectFile::getKindForGlobal.
If the Kind is Data, BSS or Common, make a virtual call to
TargetLoweringObjectFile::isGlobalInSmallSectionKind just before
returning the SectionKind. If true is returned...
2016 Nov 17
3
[MC] Target-Independent Small Data Section Handling
...2 usage avenues depending on the context:
>
> For all GlobalObjects:
>
> 1. Pass GlobalObject to target-independent
> TargetLoweringObjectFile::isGlobalInSmallSection. If it's a
> declaration, make a virtual call to a new method named
> TargetLoweringObjectFile::isGlobalInSmallSectionKind (doing
> target-specific scrutiny) and return the result early.
> 2. Pass to TargetLoweringObjectFile::getKindForGlobal.
> If the Kind is Data, BSS or Common, make a virtual call to
> TargetLoweringObjectFile::isGlobalInSmallSectionKind just before
> returning the Sect...
2016 Nov 18
0
[MC] Target-Independent Small Data Section Handling
...ontext:
> >
> > For all GlobalObjects:
> >
> > 1. Pass GlobalObject to target-independent
> > TargetLoweringObjectFile::isGlobalInSmallSection. If it's a
> > declaration, make a virtual call to a new method named
> > TargetLoweringObjectFile::isGlobalInSmallSectionKind (doing
> > target-specific scrutiny) and return the result early.
> > 2. Pass to TargetLoweringObjectFile::getKindForGlobal.
> > If the Kind is Data, BSS or Common, make a virtual call to
> > TargetLoweringObjectFile::isGlobalInSmallSectionKind just before
> >...