ahatanak added a comment. Thanks, I'll commit this patch shortly. If it makes the code cleaner, I can define enums in TargetInfo and change validateGlobalRegisterVariable to return one of them in a follow-up patch. http://reviews.llvm.org/D13834