Package org.trifort.rootbeer.generate.opencl

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


  public void popMonitor(){
    m_oldValueFromMonitorStack.pop();
  }

  protected boolean methodReturnsAValue(){
    OpenCLMethod ocl_method = new OpenCLMethod(m_sootMethod, m_sootMethod.getDeclaringClass());
    return ocl_method.returnsAValue();
  }
View Full Code Here


    String count = getVarName();
    String old = getVarName();
    m_oldValueFromMonitorStack.push(old);
   
    OpenCLClass ocl_class = OpenCLScene.v().getOpenCLClass(m_sootMethod.getDeclaringClass());
    OpenCLMethod ocl_method = ocl_class.getMethod(m_sootMethod.getSignature());
   
    m_output.append("int "+id+" = getThreadId();\n");
    m_output.append("char * "+mem+" = org_trifort_gc_deref(");
    arg0.getOp().apply(m_valueSwitch);
    m_output.append(");\n");
View Full Code Here

    }
    SootMethod soot_method = sexpr.getMethod();
    SootClass soot_class = soot_method.getDeclaringClass();
    if(soot_class.getName().equals("java.lang.Object"))
      return;
    OpenCLMethod ocl_method = new OpenCLMethod(soot_method, soot_class);
    m_output.append(ocl_method.getConstructorBodyInvokeString(sexpr));
    m_output.append(";\n");
  }
View Full Code Here

TOP

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

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.