LabelIndex labelIndex; //!< Index of the label the branch targets
bool hasPredicate:1; //!< Is it predicated?
bool hasLabel:1; //!< Is there any target label?
- Register dst[]; //!< No destination
+ Register dst[0]; //!< No destination
};
class ALIGNED_INSTRUCTION LoadInstruction :
INLINE void out(std::ostream &out, const Function &fn) const;
INLINE bool isAligned(void) const { return !!dwAligned; }
Type type; //!< Type to store
- Register src[]; //!< Address where to load from
+ Register src[0]; //!< Address where to load from
Register offset; //!< Alias to make it similar to store
Tuple values; //!< Values to load
AddressSpace addrSpace; //!< Where to load
AddressSpace addrSpace; //!< Where to store
uint8_t valueNum:7; //!< Number of values to store
uint8_t dwAligned:1; //!< DWORD aligned is what matters with GEN
- Register dst[]; //!< No destination
+ Register dst[0]; //!< No destination
};
class ALIGNED_INSTRUCTION SampleInstruction : // TODO
bool wellFormed(const Function &fn, std::string &why) const;
INLINE void out(std::ostream &out, const Function &fn) const;
Register dst[1]; //!< RegisterData to store into
- Register src[]; //!< No source register
+ Register src[0]; //!< No source register
ImmediateIndex immediateIndex; //!< Index in the vector of immediates
Type type; //!< Type of the immediate
};
INLINE bool wellFormed(const Function &fn, std::string &why) const;
INLINE void out(std::ostream &out, const Function &fn) const;
uint32_t parameters;
- Register dst[], src[];
+ Register dst[0], src[0];
};
class ALIGNED_INSTRUCTION LabelInstruction :
INLINE bool wellFormed(const Function &fn, std::string &why) const;
INLINE void out(std::ostream &out, const Function &fn) const;
LabelIndex labelIndex; //!< Index of the label
- Register dst[], src[];
+ Register dst[0], src[0];
};
#undef ALIGNED_INSTRUCTION