Home | History | Annotate | Download | only in radeon

Lines Matching refs:reg_width

248   my ($reg_width, $sub_reg_ref, @types) = @_;
249 return print_reg_class('SReg', 'SGPR', $reg_width, $SGPR_COUNT, $sub_reg_ref, @types);
253 my ($reg_width, $sub_reg_ref, @types) = @_;
254 return print_reg_class('VReg', 'VGPR', $reg_width, $VGPR_COUNT, $sub_reg_ref, @types);
258 my ($class_prefix, $reg_prefix, $reg_width, $reg_count, $sub_reg_ref, @types) = @_;
260 my $component_count = $reg_width / 32;
263 my $reg_name = $reg_prefix . $i . '_' . $reg_width;
269 print "def $reg_name : $reg_prefix\_$reg_width <$i, \"$reg_name\", [ ", join(',', @sub_regs) , "]>;\n";
274 if ($class_prefix eq 'SReg' and $reg_width == 64) {
279 if ($class_prefix eq 'SReg' and $reg_width == 64) {
285 print "def $class_prefix\_$reg_width : RegisterClass<\"AMDGPU\", [" . join (', ', @types) . "], $reg_width,\n (add $reg_list)\n>{\n";
286 print " let SubRegClasses = [($class_prefix\_", ($reg_width / $component_count) , ' ', join(', ', @{$sub_reg_ref}), ")];\n}\n";