Displaying 3 results from an estimated 3 matches for "gettypestoragesize".
2010 Jul 21
1
[LLVMdev] Union type, is it really used or necessary?
...tively easy to write a frontend
> that is 99% target-neutral with LLVM, that last 1% cannot be eliminated.
>
This is indeed a problem if a front-end or any pass has to compute the size
of a type. For example, Sometimes I need to find out the size of a type in
my pass, I then call TargetData.getTypeStorageSize() to get the size of a
particular type. This practice will introduce architecture-dependent LLVM
code. IMHO, LLVM cannot avoid this problem anyway, unless such function is
removed or returns a ConstantExpr. Probably, LLVM has a function that
returns a ConstantExpr type size, I'm just ignoran...
2010 Jul 20
0
[LLVMdev] Union type, is it really used or necessary?
On Tue, Jul 20, 2010 at 8:34 AM, Chris Lattner <clattner at apple.com> wrote:
>
> On Jul 20, 2010, at 1:36 AM, Anton Korobeynikov wrote:
>
> >> used to make the code manipulating the union type "well typed". This
> >> approach seems work very well, is there really a need to keep union type
> in
> >> LLVM?
> > I think in its current
2010 Jul 20
4
[LLVMdev] Union type, is it really used or necessary?
On Jul 20, 2010, at 1:36 AM, Anton Korobeynikov wrote:
>> used to make the code manipulating the union type "well typed". This
>> approach seems work very well, is there really a need to keep union type in
>> LLVM?
> I think in its current state the unions should be removed from LLVM IR
> in next release. It's pretty much unfinished and noone is willing to