Package org.trifort.rootbeer.generate.opencl

Examples of org.trifort.rootbeer.generate.opencl.OpenCLClass


    ReverseClassHierarchy creator = new ReverseClassHierarchy(classes);
    m_hierarchy = creator.get();
  }
 
  private void processNode(TreeNode node, CompositeField composite) {
    OpenCLClass ocl_class = node.getOpenCLClass();
    List<OpenCLField> ref_fields = ocl_class.getInstanceRefFields();
    for(OpenCLField field : ref_fields){
      processNodeField(node, field, true, composite);
    }   
    List<OpenCLField> static_ref_fields = ocl_class.getStaticRefFields();
    for(OpenCLField field : static_ref_fields){
      processNodeField(node, field, true, composite);
    }
    List<OpenCLField> non_ref_fields = ocl_class.getInstanceNonRefFields();
    for(OpenCLField field : non_ref_fields){
      processNodeField(node, field, false, composite);
    }
    List<OpenCLField> static_non_ref_fields = ocl_class.getStaticNonRefFields();
    for(OpenCLField field : static_non_ref_fields){
      processNodeField(node, field, false, composite);
    }
    for(TreeNode child : node.getChildren()){
      processNode(child, composite);
View Full Code Here


    }
    return ret;
  }

  private List<OpenCLField> trimFields(List<OpenCLField> org_fields, SootClass curr_field_class, boolean ref_fields) {
    OpenCLClass ocl_class = OpenCLScene.v().getOpenCLClass(curr_field_class);
    List<OpenCLField> used_fields;
    if(ref_fields){
      used_fields = ocl_class.getInstanceRefFields()
    } else {
      used_fields = ocl_class.getInstanceNonRefFields();
    }
    List<OpenCLField> ret = new ArrayList<OpenCLField>();
    for(OpenCLField field : org_fields){
      if(listContains(used_fields, field.getName()))
        ret.add(field);
View Full Code Here

  private String getFullName(){
    FieldSignatureUtil util = new FieldSignatureUtil();
    util.parse(m_sootField.getSignature());
    SootField real_field = util.getSootField();
    OpenCLClass ocl_class = OpenCLScene.v().getOpenCLClass(real_field.getDeclaringClass());
    return ocl_class.getName()+"_"+getName();
  }
View Full Code Here

TOP

Related Classes of org.trifort.rootbeer.generate.opencl.OpenCLClass

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.