File tree 4 files changed +7
-7
lines changed 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ using MachineFunctionAnalysisManager = AnalysisManager<MachineFunction>;
41
41
// / MachineFunctionProperties properly.
42
42
template <typename PassT> class MFPropsModifier {
43
43
public:
44
- MFPropsModifier (PassT &P_, MachineFunction &MF_) : P(P_), MF(MF_) {
44
+ MFPropsModifier (const PassT &P_, MachineFunction &MF_) : P(P_), MF(MF_) {
45
45
auto &MFProps = MF.getProperties ();
46
46
#ifndef NDEBUG
47
47
if constexpr (has_get_required_properties_v<PassT>) {
@@ -71,7 +71,7 @@ template <typename PassT> class MFPropsModifier {
71
71
}
72
72
73
73
private:
74
- PassT &P;
74
+ const PassT &P;
75
75
MachineFunction &MF;
76
76
77
77
template <typename T>
Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ class RegAllocFastPass : public PassInfoMixin<RegAllocFastPass> {
27
27
RegAllocFastPass (RegAllocFastPassOptions Opts = RegAllocFastPassOptions())
28
28
: Opts(Opts) {}
29
29
30
- MachineFunctionProperties getRequiredProperties () {
30
+ MachineFunctionProperties getRequiredProperties () const {
31
31
return MachineFunctionProperties ().set (
32
32
MachineFunctionProperties::Property::NoPHIs);
33
33
}
34
34
35
- MachineFunctionProperties getSetProperties () {
35
+ MachineFunctionProperties getSetProperties () const {
36
36
if (Opts.ClearVRegs ) {
37
37
return MachineFunctionProperties ().set (
38
38
MachineFunctionProperties::Property::NoVRegs);
@@ -41,7 +41,7 @@ class RegAllocFastPass : public PassInfoMixin<RegAllocFastPass> {
41
41
return MachineFunctionProperties ();
42
42
}
43
43
44
- MachineFunctionProperties getClearedProperties () {
44
+ MachineFunctionProperties getClearedProperties () const {
45
45
return MachineFunctionProperties ().set (
46
46
MachineFunctionProperties::Property::IsSSA);
47
47
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class TwoAddressInstructionPass
18
18
public:
19
19
PreservedAnalyses run (MachineFunction &MF,
20
20
MachineFunctionAnalysisManager &MFAM);
21
- MachineFunctionProperties getSetProperties () {
21
+ MachineFunctionProperties getSetProperties () const {
22
22
return MachineFunctionProperties ().set (
23
23
MachineFunctionProperties::Property::TiedOpsRewritten);
24
24
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class SILowerSGPRSpillsPass : public PassInfoMixin<SILowerSGPRSpillsPass> {
17
17
PreservedAnalyses run (MachineFunction &MF,
18
18
MachineFunctionAnalysisManager &MFAM);
19
19
20
- MachineFunctionProperties getClearedProperties () {
20
+ MachineFunctionProperties getClearedProperties () const {
21
21
// SILowerSGPRSpills introduces new Virtual VGPRs for spilling SGPRs.
22
22
return MachineFunctionProperties ()
23
23
.set (MachineFunctionProperties::Property::IsSSA)
You can’t perform that action at this time.
0 commit comments