Displaying 2 results from an estimated 2 matches for "register_num".
2014 Jul 31
3
[LLVMdev] initialize register attributes in instruction definition
Hi All,
Is it possible to initialize(set up) register attributes when we define an instruction?
like
if a register is defined like this:
" class SC_Register<bits<8> register_num,
REG_FLAG SC_X,
REG_FLAG SC_Y,
REG_FLAG SC_Z,
REG_FLAG SC_W,
string asmstr> : Register<asmstr>
{
let HWEncoding{7-0} = register_num; // register_num
let HWEncoding{8} = SC_X;
let HWEncoding{9} = SC_Y;...
2014 Aug 01
2
[LLVMdev] initialize register attributes in instruction definition
...41:06PM -0400, kewuzhang wrote:
>> Hi All,
>>
>> Is it possible to initialize(set up) register attributes when we define an instruction?
>>
>> like
>>
>> if a register is defined like this:
>>
>> " class SC_Register<bits<8> register_num,
>> REG_FLAG SC_X,
>> REG_FLAG SC_Y,
>> REG_FLAG SC_Z,
>> REG_FLAG SC_W,
>> string asmstr> : Register<asmstr>
>> {
>>
>> let HWEncoding{7-0} = register_num; // register...