File tree Expand file tree Collapse file tree 4 files changed +7
-12
lines changed Expand file tree Collapse file tree 4 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,7 @@ struct BPFMIPreEmitChecking : public MachineFunctionPass {
32
32
MachineFunction *MF;
33
33
const TargetRegisterInfo *TRI;
34
34
35
- BPFMIPreEmitChecking () : MachineFunctionPass(ID) {
36
- initializeBPFMIPreEmitCheckingPass (*PassRegistry::getPassRegistry ());
37
- }
35
+ BPFMIPreEmitChecking () : MachineFunctionPass(ID) {}
38
36
39
37
private:
40
38
// Initialize class variables.
Original file line number Diff line number Diff line change @@ -51,9 +51,7 @@ struct BPFMIPeephole : public MachineFunctionPass {
51
51
MachineFunction *MF;
52
52
MachineRegisterInfo *MRI;
53
53
54
- BPFMIPeephole () : MachineFunctionPass(ID) {
55
- initializeBPFMIPeepholePass (*PassRegistry::getPassRegistry ());
56
- }
54
+ BPFMIPeephole () : MachineFunctionPass(ID) {}
57
55
58
56
private:
59
57
// Initialize class variables.
@@ -311,9 +309,7 @@ struct BPFMIPreEmitPeephole : public MachineFunctionPass {
311
309
const BPFInstrInfo *TII;
312
310
bool SupportGotol;
313
311
314
- BPFMIPreEmitPeephole () : MachineFunctionPass(ID) {
315
- initializeBPFMIPreEmitPeepholePass (*PassRegistry::getPassRegistry ());
316
- }
312
+ BPFMIPreEmitPeephole () : MachineFunctionPass(ID) {}
317
313
318
314
private:
319
315
// Initialize class variables.
Original file line number Diff line number Diff line change @@ -50,9 +50,7 @@ struct BPFMISimplifyPatchable : public MachineFunctionPass {
50
50
const BPFInstrInfo *TII;
51
51
MachineFunction *MF;
52
52
53
- BPFMISimplifyPatchable () : MachineFunctionPass(ID) {
54
- initializeBPFMISimplifyPatchablePass (*PassRegistry::getPassRegistry ());
55
- }
53
+ BPFMISimplifyPatchable () : MachineFunctionPass(ID) {}
56
54
57
55
private:
58
56
std::set<MachineInstr *> SkipInsts;
Original file line number Diff line number Diff line change @@ -47,7 +47,10 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeBPFTarget() {
47
47
initializeGlobalISel (PR);
48
48
initializeBPFCheckAndAdjustIRPass (PR);
49
49
initializeBPFMIPeepholePass (PR);
50
+ initializeBPFMIPreEmitPeepholePass (PR);
50
51
initializeBPFDAGToDAGISelLegacyPass (PR);
52
+ initializeBPFMISimplifyPatchablePass (PR);
53
+ initializeBPFMIPreEmitCheckingPass (PR);
51
54
}
52
55
53
56
// DataLayout: little or big endian
You can’t perform that action at this time.
0 commit comments