]> granicus.if.org Git - llvm/commit
[Subtarget] Merge ProcSched and ProcDesc arrays in MCSubtargetInfo into a single...
authorCraig Topper <craig.topper@intel.com>
Tue, 5 Mar 2019 18:54:38 +0000 (18:54 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 5 Mar 2019 18:54:38 +0000 (18:54 +0000)
commit99a4c92625c344d81f22aaf12195221ee0a0136c
tree020e3f837b6766bfabfc7e6fb5362353ce625fbc
parent83df32c4f82a3c8dcdee3da8662219304fa8a472
[Subtarget] Merge ProcSched and ProcDesc arrays in MCSubtargetInfo into a single array.

These arrays are both keyed by CPU name and go into the same tablegenerated file. Merge them so we only need to store keys once.

This also removes a weird space saving quirk where we used the ProcDesc.size() to create to build an ArrayRef for ProcSched.

Differential Revision: https://reviews.llvm.org/D58939

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355431 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/TargetSubtargetInfo.h
include/llvm/MC/MCSubtargetInfo.h
lib/CodeGen/TargetSubtargetInfo.cpp
lib/MC/MCSubtargetInfo.cpp
unittests/CodeGen/MachineInstrTest.cpp
utils/TableGen/SubtargetEmitter.cpp