public void caseArrayRef(ArrayRef arg0) { OpenCLArrayType array = new OpenCLArrayType((ArrayType) arg0.getBase().getType()); if (isLhs()) { m_output.append(array.getArrayRefSetter(arg0)); setCheckException(); } else { m_output.append(array.getArrayRefGetter(arg0)); setCheckException(); } }
public void caseNewMultiArrayExpr(NewMultiArrayExpr arg0) { OpenCLScene.v().setUsingGarbageCollector(); OpenCLArrayType array_type = new OpenCLArrayType((ArrayType) arg0.getType()); m_output.append(array_type.invokeNewMultiArrayExpr(arg0)); m_newCalled = true; }