1 #===-- AMDGPUGenShaderPatterns.pl - TODO: Add brief description -------===#
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
8 #===----------------------------------------------------------------------===#
10 # TODO: Add full description
12 #===----------------------------------------------------------------------===#
19 my $reg_prefix = $ARGV[0];
21 for (my $i = 0; $i < CONST_REG_COUNT * 4; $i++) {
22 my $index = get_hw_index($i);
23 my $chan = get_chan_str($i);
26 (int_AMDGPU_load_const $i),
27 (f32 (MOV (f32 $reg_prefix$index\_$chan)))