Examples of ImIndirectExpr


Examples of org.renjin.gcc.translate.expr.ImIndirectExpr

  public JimpleExpr marshall(FunctionContext context, ImExpr expr) {

    // EXPERIMENT:
    // Allow implicit referencing of pointers to pass arguments by value
    if(expr instanceof ImIndirectExpr) {
      ImIndirectExpr ptr = (ImIndirectExpr) expr;
      return context.declareTemp(targetType.asJimple(),
          ptr.memref().translateToPrimitive(context, targetType));
    }

    // TODO: casting
    return expr.translateToPrimitive(context, targetType);
  }
View Full Code Here

Examples of org.renjin.gcc.translate.expr.ImIndirectExpr

  }

  @Override
  public void writeAssignment(FunctionContext context, ImExpr rhs) {
    if(rhs instanceof ImIndirectExpr) {
      ImIndirectExpr ptr = (ImIndirectExpr) rhs;
      ArrayRef ref = ptr.translateToArrayRef(context);
      context.getBuilder().addAssignment(jimpleArrayName, ref.getArrayExpr());
      context.getBuilder().addAssignment(jimpleStartIndexName, ref.getIndexExpr());
    } else {
      throw new UnsupportedOperationException(rhs.toString());
    }
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.