[LLVMdev] [PATCH] - Union types, attempt 2
Talin
viridia at gmail.com
Wed Jan 6 12:45:02 PST 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100106/00a6d6fd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uniontype.patch
Type: application/octet-stream
Size: 23155 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100106/00a6d6fd/attachment.obj>
More information about the llvm-dev
mailing list