Package org.trifort.rootbeer.generate.opencl.fields

Examples of org.trifort.rootbeer.generate.opencl.fields.OpenCLField


  }

  public void addField(SootField soot_field){
    SootClass soot_class = soot_field.getDeclaringClass();
    OpenCLClass ocl_class = getOpenCLClass(soot_class);
    ocl_class.addField(new OpenCLField(soot_field, soot_class));
  }
View Full Code Here


    }
  }

  public void caseStaticFieldRef(StaticFieldRef arg0) {
    SootField field = arg0.getField();
    OpenCLField ocl_field = new OpenCLField(arg0.getField(), field.getDeclaringClass());
    if(isLhs()){
      m_output.append(ocl_field.getStaticSetterInvoke());
    } else {
      m_output.append(ocl_field.getStaticGetterInvoke());
    }
  }
View Full Code Here

    Local local = (Local) base;
    Type type = local.getType();
    if(type instanceof RefType == false)
      throw new UnsupportedOperationException("How do I handle type is not a ref type?");
    RefType ref = (RefType) type;
    OpenCLField ocl_field = new OpenCLField(arg0.getField(), ref.getSootClass());
    if(isLhs()){
      m_output.append(ocl_field.getInstanceSetterInvoke(arg0.getBase()));
    } else {
      m_output.append(ocl_field.getInstanceGetterInvoke(arg0.getBase()));
    }
    setCheckException();
  }
View Full Code Here

TOP

Related Classes of org.trifort.rootbeer.generate.opencl.fields.OpenCLField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.