[PATCH] Move getX86SubSuperRegister to a new X86RegisterUtils file

Pete Cooper peter_cooper at apple.com
Mon Apr 20 14:48:25 PDT 2015

Hi Quentin, Evgeniy

X86AsmInstrumentation.cpp uses a method in X86 CodeGen called getX86SubSuperRegister.

This patch creates a new file in X86 Utils for register utilities such as this method.  This breaks a cycle between the MC layer AsmInstrumentation, and the CodeGen layer.

Bike shedding welcome on the name of the file as well as its location. Targets don’t explicitly have an MC directory, so Utils seemed to make sense, but i’m happy to move it elsewhere.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: x86-register-utils.diff
Type: application/octet-stream
Size: 21334 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150420/461acfef/attachment.obj>

More information about the llvm-commits mailing list