[LLVMdev] [PATCH] - Union types, attempt 2

Talin viridia at gmail.com
Fri Jan 8 14:14:26 PST 2010


Anyone want to take a look at this and tell me if I am on a reasonable path?

On Wed, Jan 6, 2010 at 12:45 PM, Talin <viridia at gmail.com> wrote:

> This patch adds a UnionType to DerivedTypes.h. It also adds code to the
> bitcode reader / writer and the assembly parser for the new type, as well as
> a tiny .ll test file in test/Assembler. It does not contain any code related
> to code generation or type layout - I wanted to see if this much was
> acceptable before I proceeded any further.
>
> Unlike my previous patch, in which the Union type was implemented as a
> packing option to type Struct (thereby re-using the machinery of Struct),
> this patch defines Union as a completely separate type from Struct.
>
> I was a little uncertain as to how to write the tests. I'd particularly
> like to write tests for the bitcode reader/writer stuff, but I am not sure
> how to do that.
>
> --
> -- Talin
>



-- 
-- Talin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100108/bbd61984/attachment.html>


More information about the llvm-dev mailing list