Displaying 6 results from an estimated 6 matches for "setconstantvalue".
Did you mean:
  getconstantvalue
  
2005 Jul 23
3
[LLVMdev] How to partition registers into different RegisterClass?
...constant (e.g. returns
> 1.0)?  Otherwise, how can it be a useful value?
Yes, it's a constant register.
Because the instruction cannot contain an immediate value, a constant
value may be stored in a constant register, and it's defined _before_
the program starts by API. For example:
  SetConstantValue( 5, Vector4( 1, 2, 3, 4 ); // C5 = <1,2,3,4>
  HANDLE handle = LoadCodeFromFile( filename );
  SetCode( handle );  // C5 is referenced here
  Execute();
-- 
Tzu-Chien Chiu,
3D Graphics Hardware Enginner,
<URL:http://www.csie.nctu.edu.tw/~jwchiu>
2005 Jul 23
0
[LLVMdev] How to partition registers into different RegisterClass?
...therwise, how can it be a useful value?
>
> Yes, it's a constant register.
>
> Because the instruction cannot contain an immediate value, a constant
> value may be stored in a constant register, and it's defined _before_
> the program starts by API. For example:
>
>  SetConstantValue( 5, Vector4( 1, 2, 3, 4 ); // C5 = <1,2,3,4>
>  HANDLE handle = LoadCodeFromFile( filename );
>  SetCode( handle );  // C5 is referenced here
>  Execute();
Ah, ok. In that case, you want to put all of the registers in one register 
file, and not make the constant register allocatabl...
2005 Jul 25
2
[LLVMdev] How to partition registers into different RegisterClass?
...> >
> > Yes, it's a constant register.
> >
> > Because the instruction cannot contain an immediate value, a constant
> > value may be stored in a constant register, and it's defined _before_
> > the program starts by API. For example:
> >
> >  SetConstantValue( 5, Vector4( 1, 2, 3, 4 ); // C5 = <1,2,3,4>
> >  HANDLE handle = LoadCodeFromFile( filename );
> >  SetCode( handle );  // C5 is referenced here
> >  Execute();
> 
> Ah, ok. In that case, you want to put all of the registers in one register
> file, and not make the...
2005 Jul 22
0
[LLVMdev] How to partition registers into different RegisterClass?
On Fri, 22 Jul 2005, Tzu-Chien Chiu wrote:
> All registers in my hardware are 4-element vector registers (128-bit).
> Some are floating point registers, and the others are integer
> registers.
>
> I typedef two packed classes: [4 x float] and [4 x int], and add an
> enum 'packed' to MVT::ValueType (ValuesTypes.h).
>
> I declared all 'RegisterClass'es to be
2005 Jul 22
2
[LLVMdev] How to partition registers into different RegisterClass?
All registers in my hardware are 4-element vector registers (128-bit).
Some are floating point registers, and the others are integer
registers.
I typedef two packed classes: [4 x float] and [4 x int], and add an
enum 'packed' to MVT::ValueType (ValuesTypes.h).
I declared all 'RegisterClass'es to be 'packed' (first argument of
RegisterClass):
  def GeneralPurposeRC :
2005 Jul 26
0
[LLVMdev] How to partition registers into different RegisterClass?
...; Yes, it's a constant register.
>>>
>>> Because the instruction cannot contain an immediate value, a constant
>>> value may be stored in a constant register, and it's defined _before_
>>> the program starts by API. For example:
>>>
>>>  SetConstantValue( 5, Vector4( 1, 2, 3, 4 ); // C5 = <1,2,3,4>
>>>  HANDLE handle = LoadCodeFromFile( filename );
>>>  SetCode( handle );  // C5 is referenced here
>>>  Execute();
>>
>> Ah, ok. In that case, you want to put all of the registers in one register
>> fi...