Package org.renjin.gcc.translate.expr

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


    }

    ImExpr sizeArg = computeSize(context, call);
    ImExpr lhs = context.resolveExpr(call.getLhs());

    if(lhs.type() instanceof ImPrimitivePtrType) {
      writeNewPrimitiveArray(context, lhs, sizeArg);

    } else if(lhs.type() instanceof ImPrimitiveArrayPtrType) {
      writeNewPrimitiveArrayPtr(context, lhs, sizeArg);
View Full Code Here


    ImExpr lhs = context.resolveExpr(call.getLhs());

    if(lhs.type() instanceof ImPrimitivePtrType) {
      writeNewPrimitiveArray(context, lhs, sizeArg);

    } else if(lhs.type() instanceof ImPrimitiveArrayPtrType) {
      writeNewPrimitiveArrayPtr(context, lhs, sizeArg);

    } else {
      throw new UnsupportedOperationException("type: " + lhs.type());
    }
View Full Code Here

    } else if(lhs.type() instanceof ImPrimitiveArrayPtrType) {
      writeNewPrimitiveArrayPtr(context, lhs, sizeArg);

    } else {
      throw new UnsupportedOperationException("type: " + lhs.type());
    }
  }

  private void writeNewPrimitiveArray(FunctionContext context, ImExpr lhs, ImExpr sizeArg) {
View Full Code Here

      // TODO: evaluate args for side effects
      return;
    }

    ImExpr lhs = context.resolveExpr(call.getLhs());
    if(lhs.type() instanceof ImPrimitivePtrType) {
      writeNewArray(context, (ImLValue) lhs, call.getArguments().get(0), call.getArguments().get(1));
    } else {
      throw new UnsupportedOperationException("lhs: " + lhs);
    }
  }
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.