attributes helper functions - please review

These were requested by Bill Wendling to simplify a Mips 16 clang change.

The test is in the code in Clang which uses these for mips 16.

mips16_attrl.txt (2.18 KB)