Package org.renjin.gcc.translate.type

Examples of org.renjin.gcc.translate.type.ImPrimitivePtrType


    }
  }

  private void writeNewPrimitiveArray(FunctionContext context, ImExpr lhs, ImExpr sizeArg) {

    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


    }
  }

  private void writeNewArray(FunctionContext context, ImLValue lhs, GimpleExpr n, GimpleExpr size) {
   
    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.type.ImPrimitivePtrType

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.