Displaying 3 results from an estimated 3 matches for "smalltag".
Did you mean:
smalltalk
2015 Apr 15
4
[LLVMdev] RFC: Metadata attachments to function definitions
...39;re you picturing that
> would be different from/better than SmallVector?
>
Data storage would be:
struct Data {
struct value_type {
unsigned Tag;
TrackingMDNodeRef MD;
};
unsigned Capacity;
union {
unsigned LargeSize;
unsigned SmallTag;
} Unsigned;
AlignedCharArrayUnion<
value_type *, // LargeArray
TrackingMDNodeRef // SmallMD
> Pointer;
};
static_assert(sizeof(Data) == sizeof(void *) + sizeof(unsigned) * 2,
"Wrong size");
Two advantages over...
2015 Apr 18
2
[LLVMdev] RFC: Metadata attachments to function definitions
...llVector?
> >
>
> Data storage would be:
>
> struct Data {
> struct value_type {
> unsigned Tag;
> TrackingMDNodeRef MD;
> };
>
> unsigned Capacity;
> union {
> unsigned LargeSize;
> unsigned SmallTag;
> } Unsigned;
>
> AlignedCharArrayUnion<
> value_type *, // LargeArray
> TrackingMDNodeRef // SmallMD
> > Pointer;
> };
> static_assert(sizeof(Data) == sizeof(void *) + sizeof(unsigned) * 2,
> &...
2015 Apr 15
2
[LLVMdev] RFC: Metadata attachments to function definitions
...llVector?
> >
>
> Data storage would be:
>
> struct Data {
> struct value_type {
> unsigned Tag;
> TrackingMDNodeRef MD;
> };
>
> unsigned Capacity;
> union {
> unsigned LargeSize;
> unsigned SmallTag;
> } Unsigned;
>
> AlignedCharArrayUnion<
> value_type *, // LargeArray
> TrackingMDNodeRef // SmallMD
> > Pointer;
> };
> static_assert(sizeof(Data) == sizeof(void *) + sizeof(unsigned) * 2,
> &...