Displaying 4 results from an estimated 4 matches for "constantrc".
Did you mean:
constant
2005 Jul 25
2
[LLVMdev] How to partition registers into different RegisterClass?
..., v2 // write the output register 'o1'
I planed to partition the register into different RegisterClass:
input, output, general purpose, constant, etc.
def GeneralPurposeRC : RegisterClass<packed, 128, [R0, R1]>;
def InputRC : RegisterClass<packed, 128, [V0, V1]>;
def ConstantRC : RegisterClass<packed, 128, [C0, C1]>;
def ADDgg : BinaryInst<0x51, (
ops GeneralPurposeRC :$dest,
ope GeneralPurposeRC :$src), "add $dest, $src">;
def ADDgi : BinaryInst<0x52, (
ops GeneralPurposeRC :$dest,
ope InputRC :$src), "add $dest, $src"&g...
2005 Jul 23
0
[LLVMdev] How to partition registers into different RegisterClass?
On Sat, 23 Jul 2005, Tzu-Chien Chiu wrote:
> 2005/7/23, Chris Lattner <sabre at nondot.org>:
>> What does a 'read only' register mean? Is it a 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
2005 Jul 23
3
[LLVMdev] How to partition registers into different RegisterClass?
2005/7/23, Chris Lattner <sabre at nondot.org>:
>
> What does a 'read only' register mean? Is it a 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
2005 Jul 26
0
[LLVMdev] How to partition registers into different RegisterClass?
...order' is to cover.
> I planed to partition the register into different RegisterClass:
> input, output, general purpose, constant, etc.
>
> def GeneralPurposeRC : RegisterClass<packed, 128, [R0, R1]>;
> def InputRC : RegisterClass<packed, 128, [V0, V1]>;
> def ConstantRC : RegisterClass<packed, 128, [C0, C1]>;
The way you want to partition these is based on how the instruction set
works. If there is a single 'add' instruction that can operate on any of
these registers, there should be a single register class. If there are
two adds (as it looks l...