: GenContext(unit, name, deviceID, relaxMath) {
};
/*! device's max srcatch buffer size */
- const int GEN75_SCRATCH_SIZE = 2 * KB * KB;
+ #define GEN75_SCRATCH_SIZE (2 * KB * KB)
/*! Emit the per-lane stack pointer computation */
virtual void emitStackPointer(void);
/*! Align the scratch size to the device's scratch unit size */
{
public:
/*! exec width of the double data type */
- const int GEN75_DOUBLE_EXEC_WIDTH = 4;
+ #define GEN75_DOUBLE_EXEC_WIDTH 4
virtual ~Gen75Encoder(void) { }
Gen75Encoder(uint32_t simdWidth, uint32_t gen, uint32_t deviceID)
/*! Release everything needed */
virtual ~GenContext(void);
/*! device's max srcatch buffer size */
- const int GEN7_SCRATCH_SIZE = 12 * KB;
+ #define GEN7_SCRATCH_SIZE (12 * KB)
/*! Start new code generation with specific parameters */
void startNewCG(uint32_t simdWidth, uint32_t reservedSpillRegs, bool limitRegisterPressure);
/*! Target device ID*/
/*! Size of the stack (should be large enough) */
enum { MAX_STATE_NUM = 16 };
/*! gen7 exec width of the double data type */
- const int GEN7_DOUBLE_EXEC_WIDTH = 8;
+ #define GEN7_DOUBLE_EXEC_WIDTH 8
/*! Push the current instruction state */
void push(void);
/*! Pop the latest pushed state */