Package org.renjin.gcc.translate.type

Examples of org.renjin.gcc.translate.type.ImPrimitiveArrayPtrType.baseType()


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

    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


    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));
  }


  private JimpleExpr getNumElementsExpr(FunctionContext context, ImExpr sizeArg, ImPrimitiveType type) {
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.