OSDN Git Service

[X86] Move the X86InstrFMA3Info class into the cpp file. Expose only a getFMA3Group...
authorCraig Topper <craig.topper@intel.com>
Sat, 30 Jun 2018 22:38:42 +0000 (22:38 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 30 Jun 2018 22:38:42 +0000 (22:38 +0000)
commit16815e99bbac1ba34e041ab1cb137db9aca89c78
tree805214ac1799bac9d37fe503f2c02cd7527cff66
parent8dc6c5c5dae53e8e6155577670721ed796ab94ee
[X86] Move the X86InstrFMA3Info class into the cpp file. Expose only a getFMA3Group free function. NFCI

The class only exists to hold a DenseMap and is only created as a ManagedStatic. It used to expose a single static method that outside code was expected to use.

This patch moves that static function out of the class and moves it implementation into the cpp file. It can now access the ManagedStatic directly by name without the need for the other static method that accessed the ManagedStatic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336055 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrFMA3Info.cpp
lib/Target/X86/X86InstrFMA3Info.h
lib/Target/X86/X86InstrInfo.cpp