[TableGen] Make the map in InfoByHwMode protected. NFCI
authorCraig Topper <craig.topper@sifive.com>
Fri, 12 Feb 2021 05:02:50 +0000 (21:02 -0800)
committerCraig Topper <craig.topper@sifive.com>
Fri, 12 Feb 2021 05:16:10 +0000 (21:16 -0800)
commit56277e3e10d204e26e7884c4d978b82fd1620f02
treeb29b748d718d29181a5dcf3ab4fffb20152edae7
parent9b123cde6340449669b88afc540d560080b4113b
[TableGen] Make the map in InfoByHwMode protected. NFCI

Switch some for loops to just use the begin()/end() implementations
in the InfoByHwMode struct.

Add a method to insert into the map for the one case that was
modifying the map directly.
llvm/utils/TableGen/CodeEmitterGen.cpp
llvm/utils/TableGen/CodeGenRegisters.cpp
llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
llvm/utils/TableGen/InfoByHwMode.h