Extend OCLAssembler with local mem template for all primitive types
@@ -456,9 +456,15 @@ public final class OCLAssembler extends Assembler {
public static final OCLBinaryTemplate ARRAY_INDEX = new OCLBinaryTemplate("index", "%s[%s]");
public static final OCLBinaryTemplate NEW_ARRAY = new OCLBinaryTemplate("new array", "char %s[%s]");
- public static final OCLBinaryTemplate NEW_LOCAL_INT_ARRAY = new OCLBinaryTemplate("local memory array", "ulong %s = (__local ulong) &_local_region[0]; //__local int %s ");
+ public static final OCLBinaryTemplate NEW_LOCAL_INT_ARRAY2 = new OCLBinaryTemplate("local memory array", "ulong %s = (__local ulong) &_local_region[0]; //__local int %s ");
public static final OCLBinaryTemplate NEW_LOCAL_FLOAT_ARRAY = new OCLBinaryTemplate("local memory array float", "__local float %s[%s]");
+ public static final OCLBinaryTemplate NEW_LOCAL_INT_ARRAY = new OCLBinaryTemplate("local memory array float", "__local int %s[%s]");
+ public static final OCLBinaryTemplate NEW_LOCAL_DOUBLE_ARRAY = new OCLBinaryTemplate("local memory array float", "__local double %s[%s]");
+ public static final OCLBinaryTemplate NEW_LOCAL_LONG_ARRAY = new OCLBinaryTemplate("local memory array float", "__local long %s[%s]");
+ public static final OCLBinaryTemplate NEW_LOCAL_SHORT_ARRAY = new OCLBinaryTemplate("local memory array float", "__local short %s[%s]");
+ public static final OCLBinaryTemplate NEW_LOCAL_CHAR_ARRAY = new OCLBinaryTemplate("local memory array float", "__local char %s[%s]");
+ public static final OCLBinaryTemplate NEW_LOCAL_BYTE = new OCLBinaryTemplate("local memory array float", "__local byte %s[%s]");
// @formatter:on
private final String template;
