|
15 | 15 |
|
16 | 16 | #include "llvm/ADT/APInt.h"
|
17 | 17 | #include "llvm/ADT/FloatingPointMode.h"
|
18 |
| -#include "llvm/CodeGen/GlobalISel/GenericMachineInstrs.h" |
19 | 18 | #include "llvm/CodeGen/GlobalISel/Utils.h"
|
20 | 19 | #include "llvm/CodeGen/MachineRegisterInfo.h"
|
21 |
| -#include "llvm/CodeGen/TargetOpcodes.h" |
22 | 20 | #include "llvm/IR/InstrTypes.h"
|
23 |
| -#include <optional> |
24 | 21 |
|
25 | 22 | namespace llvm {
|
26 | 23 | namespace MIPatternMatch {
|
@@ -88,12 +85,6 @@ inline std::optional<int64_t> matchConstant(Register Reg,
|
88 | 85 | return getIConstantVRegSExtVal(Reg, MRI);
|
89 | 86 | }
|
90 | 87 |
|
91 |
| -template <> |
92 |
| -inline std::optional<uint64_t> matchConstant(Register Reg, |
93 |
| - const MachineRegisterInfo &MRI) { |
94 |
| - return getIConstantVRegZExtVal(Reg, MRI); |
95 |
| -} |
96 |
| - |
97 | 88 | template <typename ConstT> struct ConstantMatch {
|
98 | 89 | ConstT &CR;
|
99 | 90 | ConstantMatch(ConstT &C) : CR(C) {}
|
@@ -129,12 +120,6 @@ matchConstantSplat(Register Reg, const MachineRegisterInfo &MRI) {
|
129 | 120 | return getIConstantSplatSExtVal(Reg, MRI);
|
130 | 121 | }
|
131 | 122 |
|
132 |
| -template <> |
133 |
| -inline std::optional<uint64_t> |
134 |
| -matchConstantSplat(Register Reg, const MachineRegisterInfo &MRI) { |
135 |
| - return getIConstantSplatZExtVal(Reg, MRI); |
136 |
| -} |
137 |
| - |
138 | 123 | template <typename ConstT> struct ICstOrSplatMatch {
|
139 | 124 | ConstT &CR;
|
140 | 125 | ICstOrSplatMatch(ConstT &C) : CR(C) {}
|
|
0 commit comments