llvm.org GIT mirror llvm / 837e2e9
MIR: remove explicit "noVRegs" property. We can infer this from the incoming MIR, so there's no reason to represent it with a special flag. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304246 91177308-0d34-0410-b5e6-96231b3b80d8 Tim Northover 3 years ago
10 changed file(s) with 0 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
380380 StringRef Name;
381381 unsigned Alignment = 0;
382382 bool ExposesReturnsTwice = false;
383 bool NoVRegs;
384383 // GISel MachineFunctionProperties.
385384 bool Legalized = false;
386385 bool RegBankSelected = false;
405404 YamlIO.mapRequired("name", MF.Name);
406405 YamlIO.mapOptional("alignment", MF.Alignment);
407406 YamlIO.mapOptional("exposesReturnsTwice", MF.ExposesReturnsTwice);
408 YamlIO.mapOptional("noVRegs", MF.NoVRegs);
409407 YamlIO.mapOptional("legalized", MF.Legalized);
410408 YamlIO.mapOptional("regBankSelected", MF.RegBankSelected);
411409 YamlIO.mapOptional("selected", MF.Selected);
331331 MF.setAlignment(YamlMF.Alignment);
332332 MF.setExposesReturnsTwice(YamlMF.ExposesReturnsTwice);
333333
334 if (YamlMF.NoVRegs)
335 MF.getProperties().set(MachineFunctionProperties::Property::NoVRegs);
336334 if (YamlMF.Legalized)
337335 MF.getProperties().set(MachineFunctionProperties::Property::Legalized);
338336 if (YamlMF.RegBankSelected)
182182 YamlMF.Alignment = MF.getAlignment();
183183 YamlMF.ExposesReturnsTwice = MF.exposesReturnsTwice();
184184
185 YamlMF.NoVRegs = MF.getProperties().hasProperty(
186 MachineFunctionProperties::Property::NoVRegs);
187185 YamlMF.Legalized = MF.getProperties().hasProperty(
188186 MachineFunctionProperties::Property::Legalized);
189187 YamlMF.RegBankSelected = MF.getProperties().hasProperty(
1212 name: main
1313 alignment: 2
1414 exposesReturnsTwice: false
15 noVRegs: false
1615 legalized: true
1716 regBankSelected: true
1817 selected: false
4949 name: test
5050 alignment: 0
5151 exposesReturnsTwice: false
52 noVRegs: false
5352 legalized: false
5453 regBankSelected: false
5554 selected: false
189189 name: foo
190190 alignment: 1
191191 exposesReturnsTwice: false
192 noVRegs: true
193192 legalized: false
194193 regBankSelected: false
195194 selected: false
288287 name: bar
289288 alignment: 1
290289 exposesReturnsTwice: false
291 noVRegs: true
292290 legalized: false
293291 regBankSelected: false
294292 selected: false
3838 name: l5
3939 alignment: 2
4040 exposesReturnsTwice: false
41 noVRegs: true
4241 legalized: false
4342 regBankSelected: false
4443 selected: false
3838 name: Func
3939 alignment: 1
4040 exposesReturnsTwice: false
41 noVRegs: true
4241 legalized: false
4342 regBankSelected: false
4443 selected: false
44 ; CHECK-LABEL: name: test_void_return
55 ; CHECK: alignment: 4
66 ; CHECK-NEXT: exposesReturnsTwice: false
7 ; CHECK-NEXT: noVRegs: false
87 ; CHECK-NEXT: legalized: false
98 ; CHECK-NEXT: regBankSelected: false
109 ; CHECK-NEXT: selected: false
7272 name: _ZN1C5m_fn3Ev
7373 alignment: 4
7474 exposesReturnsTwice: false
75 noVRegs: true
7675 legalized: false
7776 regBankSelected: false
7877 selected: false