Examples of GimpleExpr


Examples of org.renjin.gcc.gimple.expr.GimpleExpr

    public void visitAssignment(GimpleAssign assignment) {
     
      switch (assignment.getOperator()) {
      case VAR_DECL:
      case NOP_EXPR:
        GimpleExpr rhs = assignment.getOperands().get(0);
        if(isReference(rhs)) {
          inferPossibleTypes(assignment.getLHS());

        } else if(isReference(assignment.getLHS())) {
          inferPossibleTypes(rhs);
View Full Code Here

Examples of org.renjin.gcc.gimple.expr.GimpleExpr

  }

  private String functionName(GimpleCall call) {
    if (call.getFunction() instanceof GimpleAddressOf) {
     
      GimpleExpr functionValue = ((GimpleAddressOf) call.getFunction()).getValue();
      if(functionValue instanceof GimpleFunctionRef) {
        return ((GimpleFunctionRef) functionValue).getName();
      }
    }
    throw new UnsupportedOperationException(call.toString());
View Full Code Here

Examples of org.renjin.gcc.gimple.expr.GimpleExpr

    this.functionName = functionName;
  }

  @Override
  public boolean accept(GimpleCall call) {
    GimpleExpr functionExpr = call.getFunction();
    if(!(functionExpr instanceof GimpleAddressOf)) {
      return false;
    }
    GimpleExpr value = ((GimpleAddressOf) functionExpr).getValue();
    if (!(value instanceof GimpleFunctionRef)) {
      return false;
    }
    return ((GimpleFunctionRef) value).getName().equals(functionName);
View Full Code Here

Examples of org.renjin.gcc.gimple.expr.GimpleExpr

  }
 
  @Override
  public boolean accept(GimpleCall call) {
    GimpleExpr functionExpr = call.getFunction();
    return functionExpr instanceof GimpleAddressOf &&
        ((GimpleAddressOf) functionExpr).getValue() instanceof GimpleFunctionRef;
  }
View Full Code Here

Examples of org.renjin.gcc.gimple.expr.GimpleExpr

public class RallocTranslator implements CallTranslator {


  @Override
  public boolean accept(GimpleCall call) {
    GimpleExpr functionExpr = call.getFunction();
    if(!(functionExpr instanceof GimpleAddressOf)) {
      return false;
    }
    GimpleExpr value = ((GimpleAddressOf) functionExpr).getValue();
    if (!(value instanceof GimpleFunctionRef)) {
      return false;
    }
    return ((GimpleFunctionRef) value).getName().equals("R_alloc");
  }
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.