Package org.renjin.gcc.translate.expr

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


    ImPrimitivePtrType type = (ImPrimitivePtrType) lhs.type();

    JimpleExpr elementCount = getNumElementsExpr(context, sizeArg, type.getBaseType());

    // assign to our lhs
    ((ImLValue)lhs).writeAssignment(context, new NewArrayExpr(type, elementCount));
  }
View Full Code Here


    ImPrimitiveArrayPtrType type = (ImPrimitiveArrayPtrType) lhs.type();

    JimpleExpr elementCount = getNumElementsExpr(context, sizeArg, type.baseType().componentType());

    // assign to our lhs
    ((ImLValue)lhs).writeAssignment(context, new NewArrayExpr(type.baseType().componentType().pointerType(),
        elementCount));
  }
View Full Code Here

    ImPrimitivePtrType type = (ImPrimitivePtrType)lhs.type();

    checkSize(type, size);

    JimpleExpr elementCount = context.resolveExpr(n).translateToPrimitive(context, ImPrimitiveType.INT);
    lhs.writeAssignment(context, new NewArrayExpr(type, elementCount));
  }
View Full Code Here

TOP

Related Classes of org.renjin.gcc.translate.expr.NewArrayExpr

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.