[PATCH] Move getX86SubSuperRegister to a new X86RegisterUtils file
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...
Size: 21334 bytes
Desc: not available
More information about the llvm-commits