diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-06-24 16:16:12 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-06-24 16:16:12 +0000 |
commit | faeaedf8e938696497021adcd5925e5741c72f62 (patch) | |
tree | 66d3c65d42cfac2b080183c6c79562d0c205b23f /llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp | |
parent | 906d494b6e7eb0d8bde19bec2de7d93a9516ebe3 (diff) | |
download | bcm5719-llvm-faeaedf8e938696497021adcd5925e5741c72f62.tar.gz bcm5719-llvm-faeaedf8e938696497021adcd5925e5741c72f62.zip |
GlobalISel: Remove unsigned variant of SrcOp
Force using Register.
One downside is the generated register enums require explicit
conversion.
llvm-svn: 364194
Diffstat (limited to 'llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp')
-rw-r--r-- | llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp b/llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp index aed0b3fbc5d..7ba79188cb7 100644 --- a/llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp +++ b/llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp @@ -111,7 +111,7 @@ static MachineFunction *getMFFromMMI(const Module *M, return MF; } -static void collectCopies(SmallVectorImpl<unsigned> &Copies, +static void collectCopies(SmallVectorImpl<Register> &Copies, MachineFunction *MF) { for (auto &MBB : *MF) for (MachineInstr &MI : MBB) { @@ -128,7 +128,7 @@ TEST(PatternMatchInstr, MatchIntConstant) { auto ModuleMMIPair = createDummyModule(Context, *TM, ""); MachineFunction *MF = getMFFromMMI(ModuleMMIPair.first.get(), ModuleMMIPair.second.get()); - SmallVector<unsigned, 4> Copies; + SmallVector<Register, 4> Copies; collectCopies(Copies, MF); MachineBasicBlock *EntryMBB = &*MF->begin(); MachineIRBuilder B(*MF); @@ -149,7 +149,7 @@ TEST(PatternMatchInstr, MatchBinaryOp) { auto ModuleMMIPair = createDummyModule(Context, *TM, ""); MachineFunction *MF = getMFFromMMI(ModuleMMIPair.first.get(), ModuleMMIPair.second.get()); - SmallVector<unsigned, 4> Copies; + SmallVector<Register, 4> Copies; collectCopies(Copies, MF); MachineBasicBlock *EntryMBB = &*MF->begin(); MachineIRBuilder B(*MF); @@ -276,7 +276,7 @@ TEST(PatternMatchInstr, MatchFPUnaryOp) { auto ModuleMMIPair = createDummyModule(Context, *TM, ""); MachineFunction *MF = getMFFromMMI(ModuleMMIPair.first.get(), ModuleMMIPair.second.get()); - SmallVector<unsigned, 4> Copies; + SmallVector<Register, 4> Copies; collectCopies(Copies, MF); MachineBasicBlock *EntryMBB = &*MF->begin(); MachineIRBuilder B(*MF); @@ -347,7 +347,7 @@ TEST(PatternMatchInstr, MatchExtendsTrunc) { auto ModuleMMIPair = createDummyModule(Context, *TM, ""); MachineFunction *MF = getMFFromMMI(ModuleMMIPair.first.get(), ModuleMMIPair.second.get()); - SmallVector<unsigned, 4> Copies; + SmallVector<Register, 4> Copies; collectCopies(Copies, MF); MachineBasicBlock *EntryMBB = &*MF->begin(); MachineIRBuilder B(*MF); @@ -403,7 +403,7 @@ TEST(PatternMatchInstr, MatchSpecificType) { auto ModuleMMIPair = createDummyModule(Context, *TM, ""); MachineFunction *MF = getMFFromMMI(ModuleMMIPair.first.get(), ModuleMMIPair.second.get()); - SmallVector<unsigned, 4> Copies; + SmallVector<Register, 4> Copies; collectCopies(Copies, MF); MachineBasicBlock *EntryMBB = &*MF->begin(); MachineIRBuilder B(*MF); @@ -450,7 +450,7 @@ TEST(PatternMatchInstr, MatchCombinators) { auto ModuleMMIPair = createDummyModule(Context, *TM, ""); MachineFunction *MF = getMFFromMMI(ModuleMMIPair.first.get(), ModuleMMIPair.second.get()); - SmallVector<unsigned, 4> Copies; + SmallVector<Register, 4> Copies; collectCopies(Copies, MF); MachineBasicBlock *EntryMBB = &*MF->begin(); MachineIRBuilder B(*MF); @@ -493,7 +493,7 @@ TEST(PatternMatchInstr, MatchMiscellaneous) { auto ModuleMMIPair = createDummyModule(Context, *TM, ""); MachineFunction *MF = getMFFromMMI(ModuleMMIPair.first.get(), ModuleMMIPair.second.get()); - SmallVector<unsigned, 4> Copies; + SmallVector<Register, 4> Copies; collectCopies(Copies, MF); MachineBasicBlock *EntryMBB = &*MF->begin(); MachineIRBuilder B(*MF); |