Skip to content

Commit d5e75b2

Browse files
committed
remove unused stuff
1 parent 577d3d8 commit d5e75b2

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@
1515

1616
#include "llvm/ADT/APInt.h"
1717
#include "llvm/ADT/FloatingPointMode.h"
18-
#include "llvm/CodeGen/GlobalISel/GenericMachineInstrs.h"
1918
#include "llvm/CodeGen/GlobalISel/Utils.h"
2019
#include "llvm/CodeGen/MachineRegisterInfo.h"
21-
#include "llvm/CodeGen/TargetOpcodes.h"
2220
#include "llvm/IR/InstrTypes.h"
23-
#include <optional>
2421

2522
namespace llvm {
2623
namespace MIPatternMatch {
@@ -88,12 +85,6 @@ inline std::optional<int64_t> matchConstant(Register Reg,
8885
return getIConstantVRegSExtVal(Reg, MRI);
8986
}
9087

91-
template <>
92-
inline std::optional<uint64_t> matchConstant(Register Reg,
93-
const MachineRegisterInfo &MRI) {
94-
return getIConstantVRegZExtVal(Reg, MRI);
95-
}
96-
9788
template <typename ConstT> struct ConstantMatch {
9889
ConstT &CR;
9990
ConstantMatch(ConstT &C) : CR(C) {}
@@ -129,12 +120,6 @@ matchConstantSplat(Register Reg, const MachineRegisterInfo &MRI) {
129120
return getIConstantSplatSExtVal(Reg, MRI);
130121
}
131122

132-
template <>
133-
inline std::optional<uint64_t>
134-
matchConstantSplat(Register Reg, const MachineRegisterInfo &MRI) {
135-
return getIConstantSplatZExtVal(Reg, MRI);
136-
}
137-
138123
template <typename ConstT> struct ICstOrSplatMatch {
139124
ConstT &CR;
140125
ICstOrSplatMatch(ConstT &C) : CR(C) {}

0 commit comments

Comments
 (0)