From: Philipp Klaus Krause <pkk@sp...> - 2012-06-02 13:37:38
Currently symops have the same type as the underlying symbol.
setOperandType() changes the type of the underlaing symbol. This means
that e.g. when I want to read two bitfields that are in the same byte, I
need two different iTemps to hold the address from which I fetch, which
need tobe in separate registers, etc. Even though they will always hold
the same value. Also signed vs. unsigned multiplication ich chosen based
on the types of the operands. On the other hand CAST does not use the
type of the result operand.
Would it make sense to have operands have type independent of the
underlying symbol, or handling GET_VALUE_AT_ADDRESS similar to CAST?