Displaying 5 results from an estimated 5 matches for "disciminator".
Did you mean:
discriminator
2010 Sep 25
2
[LLVMdev] Patch to allow llvm.gcroot to work with non-pointer allocas.
...ike this:
>
> var x:int or String.
>
> The variable 'x' can be either an integer or a reference to a string
> object. In LLVM assembly, this data structure is represented by the
> following struct:
>
> { i1, String * }
>
> The 'i1' field (the 'disciminator') is used to determine what kind of value
> is currently stored in the union. If it's 0, then it's an int, and the
> structure will be cast to { i8, int } before extracting the value. If it's
> 1, then it's a String pointer. The compiler does not allow access to the
>...
2010 Sep 25
0
[LLVMdev] Patch to allow llvm.gcroot to work with non-pointer allocas.
...ted union type, whose type declaration looks like
this:
var x:int or String.
The variable 'x' can be either an integer or a reference to a string object.
In LLVM assembly, this data structure is represented by the following
struct:
{ i1, String * }
The 'i1' field (the 'disciminator') is used to determine what kind of value
is currently stored in the union. If it's 0, then it's an int, and the
structure will be cast to { i8, int } before extracting the value. If it's
1, then it's a String pointer. The compiler does not allow access to the
wrong type - if th...
2010 Sep 25
0
[LLVMdev] Patch to allow llvm.gcroot to work with non-pointer allocas.
...or String.
>>
>> The variable 'x' can be either an integer or a reference to a string
>> object. In LLVM assembly, this data structure is represented by the
>> following struct:
>>
>> { i1, String * }
>>
>> The 'i1' field (the 'disciminator') is used to determine what kind of
>> value is currently stored in the union. If it's 0, then it's an int, and the
>> structure will be cast to { i8, int } before extracting the value. If it's
>> 1, then it's a String pointer. The compiler does not allow acces...
2010 Sep 25
2
[LLVMdev] Patch to allow llvm.gcroot to work with non-pointer allocas.
Hi Talin,
On Sat, Sep 25, 2010 at 4:18 AM, Talin <viridia at gmail.com> wrote:
>
>
> Many languages support the notion of a "value type". Value types are always
> passed by value, unlike reference types which are always passed by
> pointer. An example is the "struct" type in C#. Another example is a "tuple"
> type. A value type which is a
2010 Jul 18
6
CRAN (and crantastic) updates this week
CRAN (and crantastic) updates this week
New packages
------------
* allan (1.0)
Alan Lee
http://crantastic.org/packages/allan
Automates Large Linear Analysis Model Fitting
* andrews (1.0)
Jaroslav Myslivec
http://crantastic.org/packages/andrews
Andrews curves for visualization of multidimensional data
* anesrake (0.3)
Josh Pasek
http://crantastic.org/packages/anesrake
This