[feat][fix] Fix for wrongly casting and allocating private regions as
global
@@ -93,14 +93,14 @@ public class OCLArchitecture extends Architecture {
public static OCLRegister sp;
public static final OCLMemoryBase constantSpace = new OCLMemoryBase(2, CONSTANT_REGION_NAME, OCLMemorySpace.CONSTANT);
public static final OCLMemoryBase localSpace = new OCLMemoryBase(3, LOCAL_REGION_NAME, OCLMemorySpace.LOCAL);
- public static final OCLMemoryBase privateSpace = new OCLMemoryBase(4, PRIVATE_REGION_NAME, OCLMemorySpace.GLOBAL);
+ public static final OCLMemoryBase privateSpace = new OCLMemoryBase(4, PRIVATE_REGION_NAME, OCLMemorySpace.PRIVATE);
public static OCLRegister[] abiRegisters;
public OCLArchitecture(final OCLKind wordKind, final ByteOrder byteOrder) {
super("Tornado OpenCL", wordKind, byteOrder, false, null, LOAD_STORE | STORE_STORE, 0, 0);
sp = new OCLRegister(1, FRAME_BASE_NAME, wordKind);
- abiRegisters = new OCLRegister[] { globalSpace, sp, constantSpace, localSpace, privateSpace };
+ abiRegisters = new OCLRegister[] { globalSpace, sp, constantSpace, localSpace }; // Remove ABI register for private memory
}
@Override
