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 dst.toString()+"=("+type.toString()+")"+src.toString();
20 return FKind.FlatCastNode;
23 public TempDescriptor [] writesTemps() {
24 return new TempDescriptor[] {dst};
27 public TempDescriptor [] readsTemps() {
28 return new TempDescriptor[] {src};