Examples of translateToPrimitive()


Examples of org.renjin.gcc.translate.expr.ImExpr.translateToPrimitive()

    if(TypeChecker.isDouble(x.type())) {
      //assignPrimitive(lhs, JimpleExpr.integerConstant(0));
      assignPrimitive(lhs, new JimpleExpr(String.format(
              "staticinvoke <org.renjin.gcc.runtime.Builtins: boolean unordered(double, double)>(%s, %s)",
              x.translateToPrimitive(context, ImPrimitiveType.DOUBLE),
              y.translateToPrimitive(context, ImPrimitiveType.DOUBLE))));
    } else {
      throw new UnsupportedOperationException();
    }
  }
View Full Code Here

Examples of org.renjin.gcc.translate.expr.ImExpr.translateToPrimitive()

  @Override
  public void visitSwitch(GimpleSwitch gimpleSwitch) {
    ImExpr switchExpr = context.resolveExpr(gimpleSwitch.getValue());

    JimpleSwitchStatement jimpleSwitch = new JimpleSwitchStatement(
        switchExpr.translateToPrimitive(context, ImPrimitiveType.INT));

    for (GimpleSwitch.Case branch : gimpleSwitch.getCases()) {
      jimpleSwitch.addBranch(branch.getLow(), basicBlockLabel(branch.getBasicBlockIndex()));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.