search for: globalindirectsymbol

Displaying 10 results from an estimated 10 matches for "globalindirectsymbol".

2020 Sep 10
2
[IR] Modelling of GlobalIFunc
...some sense. At the same time from implementation point of view there were lots of similarities between GlobalAlias and GlobalIFunc (in the most case they should be handled identically or very similarly). getBaseObject method in initial implementation belonged to GlobalAlias only. David moved it to GlobalIndirectSymbol in https://reviews.llvm.org/rG95549497ec8b5269f0439f12859537b7371b7c90 but unfortunately I cannot find corresponding review and discussion. On Tue, Sep 8, 2020 at 6:22 PM Teresa Johnson <tejohnson at google.com> wrote: > Thanks Itay for summarizing the discussion on D81911. Directly addi...
2020 Sep 07
3
[IR] Modelling of GlobalIFunc
...the IFunc has the same signature of the function pointer that the resolver potentially returns, not of the resolver itself). * It makes sense for the IFunc to be its own base object (which is GlobalObject-like-behavior), but type-hierarchy-wise it can't. This is because GlobalIFunc derives from GlobalIndirectSymbol which derives directly from GlobalValue, and therefore it is not a GlobalObject. Would it make sense for GlobalIFunc to derive from GlobalObject instead of GlobalIndirectSymbol? If so, GlobalIndirectSymbol would lose its purpose somewhat, and could be merged into GlobalAlias. It would, however, re...
2016 Oct 25
4
RFC: Absolute or "fixed address" symbols as immediate operands
...ack to IR-level representation: here is an alternative representation based on a suggestion from Eli. > > Introduce a new type of GlobalValue called GlobalConstant. GlobalConstant would fit into the GlobalValue hierarchy like this: > GlobalValue > GlobalConstant > GlobalPointer > GlobalIndirectSymbol > GlobalAlias > GlobalIFunc > GlobalObject > Function > GlobalVariable > GlobalValue would no longer be assumed to be of pointer type. The getType() overload that takes a PointerType, as well as getValueType() would be moved down to GlobalPointer. (A nice side benefit of this is t...
2016 Oct 25
3
RFC: Absolute or "fixed address" symbols as immediate operands
...tation: here is an alternative representation based on a suggestion from Eli. >> >> Introduce a new type of GlobalValue called GlobalConstant. GlobalConstant would fit into the GlobalValue hierarchy like this: >> GlobalValue >> GlobalConstant >> GlobalPointer >> GlobalIndirectSymbol >> GlobalAlias >> GlobalIFunc >> GlobalObject >> Function >> GlobalVariable >> GlobalValue would no longer be assumed to be of pointer type. The getType() overload that takes a PointerType, as well as getValueType() would be moved down to GlobalPointer. (A nice s...
2016 Oct 24
3
RFC: Absolute or "fixed address" symbols as immediate operands
...native > representation based on a suggestion from Eli. > > Introduce a new type of GlobalValue called GlobalConstant. > GlobalConstant would fit into the GlobalValue hierarchy like this: > > * GlobalValue > o GlobalConstant > o GlobalPointer > + GlobalIndirectSymbol > # GlobalAlias > # GlobalIFunc > + GlobalObject > # Function > # GlobalVariable > > GlobalValue would no longer be assumed to be of pointer type. The > getType() overload that takes a PointerType, as well as...
2020 Aug 21
3
[RFC][LLVM] New Constant type for representing function PLT entries
> -----Original Message----- > From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Fangrui > Song via llvm-dev > Sent: Thursday, August 20, 2020 10:18 PM > To: Leonard Chan <leonardchan at google.com> > Cc: llvm-dev <llvm-dev at lists.llvm.org> > Subject: [EXT] Re: [llvm-dev] [RFC][LLVM] New Constant type for > representing function PLT
2016 Oct 11
5
RFC: Absolute or "fixed address" symbols as immediate operands
Hi all, I wanted to summarise some discussion on llvm-commits [0,1] as an RFC, as I felt it demanded wider circulation. Our support for references to absolute symbols is not very good. The symbol will be resolved accurately in non-PIC code, but suboptimally: the symbol reference cannot currently appear as the immediate operand of an instruction, and the code generator cannot make any assumptions
2020 Aug 22
3
[RFC][LLVM] New Constant type for representing function PLT entries
...alues. And it would make it clear that > > importing one from another IR module might be a non-trivial operation. (I > > don't think we actually do cross-DSO optimizations at the moment, but it's > > not outside the realm of possibility.) > > > A new subclass of GlobalIndirectSymbol? Looks fine. Do you think the > name "plt" should be moved from the name of the subclass to an > argument of the syntax (like alias/ifunc)? The IR concept could be generalized so it doesn't actually depend on the object format having a PLT. For example, it could be used to ref...
2016 Oct 25
2
RFC: Absolute or "fixed address" symbols as immediate operands
...esentation based on a suggestion from Eli. >> >> Introduce a new type of GlobalValue called GlobalConstant. GlobalConstant >> would fit into the GlobalValue hierarchy like this: >> >> GlobalValue >> >> GlobalConstant >> GlobalPointer >> >> GlobalIndirectSymbol >> >> GlobalAlias >> GlobalIFunc >> >> GlobalObject >> >> Function >> GlobalVariable >> >> GlobalValue would no longer be assumed to be of pointer type. The >> getType() overload that takes a PointerType, as well as getValueType() wo...
2017 Apr 04
3
RFC: Adding a string table to the bitcode format
On Tue, Apr 4, 2017 at 12:36 PM, Duncan P. N. Exon Smith < dexonsmith at apple.com> wrote: > > On 2017-Apr-04, at 12:12, Peter Collingbourne <peter at pcc.me.uk> wrote: > > On Mon, Apr 3, 2017 at 8:13 PM, Mehdi Amini <mehdi.amini at apple.com> wrote: > >> >> On Apr 3, 2017, at 7:08 PM, Peter Collingbourne <peter at pcc.me.uk> wrote: >>