29 // Utilities to characterize effect statements |
29 // Utilities to characterize effect statements |
30 static bool is_def(int usedef) { |
30 static bool is_def(int usedef) { |
31 switch(usedef) { |
31 switch(usedef) { |
32 case Component::DEF: |
32 case Component::DEF: |
33 case Component::USE_DEF: return true; break; |
33 case Component::USE_DEF: return true; break; |
34 } |
|
35 return false; |
|
36 } |
|
37 |
|
38 static bool is_use(int usedef) { |
|
39 switch(usedef) { |
|
40 case Component::USE: |
|
41 case Component::USE_DEF: |
|
42 case Component::USE_KILL: return true; break; |
|
43 } |
|
44 return false; |
|
45 } |
|
46 |
|
47 static bool is_kill(int usedef) { |
|
48 switch(usedef) { |
|
49 case Component::KILL: |
|
50 case Component::USE_KILL: return true; break; |
|
51 } |
34 } |
52 return false; |
35 return false; |
53 } |
36 } |
54 |
37 |
55 // Define an array containing the machine register names, strings. |
38 // Define an array containing the machine register names, strings. |