2 import IR.TypeDescriptor;
4 public class FlatCastNode extends FlatNode {
9 public FlatCastNode(TypeDescriptor type, TempDescriptor src, TempDescriptor dst) {
15 public String toString() {
16 return "FlatCastNode_"+dst.toString()+"=("+type.toString()+")"+src.toString();
20 return FKind.FlatCastNode;
23 public TypeDescriptor getType() {
27 public TempDescriptor getSrc() {
31 public TempDescriptor getDst() {
35 public TempDescriptor [] writesTemps() {
36 return new TempDescriptor[] {dst};
39 public TempDescriptor [] readsTemps() {
40 return new TempDescriptor[] {src};