Refactor codegen resource masks
Another step towards a single compiler: unified the bulk of the
target-specific instruction resource use/def maps. This will
allow more shared code usage, and eliminates target-specific
defines used by otherwise common code.
Change-Id: I4132cb4d31647517a654ffdf6c87843b84af132b