1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

[GlobalISel][Legalizer] Convert some typedefs to using. NFC.

llvm-svn: 322466
This commit is contained in:
Amara Emerson 2018-01-15 00:44:20 +00:00
parent 9aea8c1468
commit e611130658

View File

@ -121,8 +121,8 @@ public:
}
}
typedef std::pair<uint16_t, LegalizeAction> SizeAndAction;
typedef std::vector<SizeAndAction> SizeAndActionsVec;
using SizeAndAction = std::pair<uint16_t, LegalizeAction>;
using SizeAndActionsVec = std::vector<SizeAndAction>;
using SizeChangeStrategy =
std::function<SizeAndActionsVec(const SizeAndActionsVec &v)>;
@ -441,7 +441,7 @@ private:
static const int LastOp = TargetOpcode::PRE_ISEL_GENERIC_OPCODE_END;
// Data structures used temporarily during construction of legality data:
typedef DenseMap<LLT, LegalizeAction> TypeMap;
using TypeMap = DenseMap<LLT, LegalizeAction>;
SmallVector<TypeMap, 1> SpecifiedActions[LastOp - FirstOp + 1];
SmallVector<SizeChangeStrategy, 1>
ScalarSizeChangeStrategies[LastOp - FirstOp + 1];