[TableGen] Remove TypeSetByHwMode::isDefaultOnly(). Use InfoByHwMode<T>::isSimple...
authorCraig Topper <craig.topper@sifive.com>
Sun, 9 Apr 2023 17:56:06 +0000 (10:56 -0700)
committerCraig Topper <craig.topper@sifive.com>
Sun, 9 Apr 2023 17:56:06 +0000 (10:56 -0700)
commitab84a93287db9533d6c023a26ebb1429db03b74d
treeeeeae8301d795c9c22a0437bd496655931e5a33f
parent6329993ca1aeaad9328450ac5013b6890634712f
[TableGen] Remove TypeSetByHwMode::isDefaultOnly(). Use InfoByHwMode<T>::isSimple(). NFC

InfoByHwMode is the base class of TypeSetByHwMode. The two methods
did the same thing. No reason to have two ways to do it.

Also use the getSimple() access instead of Map.begin()->second.
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
llvm/utils/TableGen/CodeGenDAGPatterns.h
llvm/utils/TableGen/InfoByHwMode.h