Commit 0230736e authored by Christoph Mallon's avatar Christoph Mallon
Browse files

ia32: Use an enum bitfield for the attribute tp of ia32_attr_t.

* Also only use the necessary number of bits.
* Improve its comment.
parent 1f94845e
......@@ -92,7 +92,7 @@ typedef struct ia32_attr_t ia32_attr_t;
struct ia32_attr_t {
except_attr exc; /**< the exception attribute. MUST be the first one. */
unsigned tp:3; /**< ia32 node type. */
ENUMBF(ia32_op_type_t) tp:2; /**< Indicator of used address mode. */
unsigned am_arity:2; /**< Indicates the address mode type supported by this node. */
unsigned am_scale:2; /**< The address mode scale for index register. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment