llvm.org GIT mirror llvm / 71f0fc1
Ignore register mask operands when lowering instructions to MC. This is similar to implicit register operands. MC doesn't understand register liveness and call clobbers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148437 91177308-0d34-0410-b5e6-96231b3b80d8 Jakob Stoklund Olesen 8 years ago
6 changed file(s) with 17 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
106106 MCOp = MCOperand::CreateFPImm(Val.convertToDouble());
107107 break;
108108 }
109 case MachineOperand::MO_RegisterMask:
110 // Ignore call clobbers.
111 return false;
109112 }
110113 return true;
111114 }
149149 case MachineOperand::MO_BlockAddress:
150150 MCOp = LowerSymbolOperand(MO, GetBlockAddressSymbol(MO));
151151 break;
152 case MachineOperand::MO_FPImmediate:
152 case MachineOperand::MO_FPImmediate: {
153153 bool ignored;
154154 APFloat FVal = MO.getFPImm()->getValueAPF();
155155 FVal.convert(APFloat::IEEEsingle, APFloat::rmTowardZero, &ignored);
159159 MCOp = MCOperand::CreateImm(Val);
160160 break;
161161 }
162 case MachineOperand::MO_RegisterMask:
163 continue;
164 }
162165
163166 OutMI.addOperand(MCOp);
164167 }
142142 break;
143143 case MachineOperand::MO_BlockAddress:
144144 MCOp = LowerSymbolOperand(MO, GetBlockAddressSymbol(MO));
145 break;
146 case MachineOperand::MO_RegisterMask:
147 continue;
145148 }
146149
147150 OutMI.addOperand(MCOp);
191191 case MachineOperand::MO_ConstantPoolIndex:
192192 case MachineOperand::MO_BlockAddress:
193193 return LowerSymbolOperand(MO, MOTy, offset);
194 case MachineOperand::MO_RegisterMask:
195 break;
194196 }
195197
196198 return MCOperand();
165165 MCOp = GetSymbolRef(MO,AP.GetBlockAddressSymbol(MO.getBlockAddress()),AP,
166166 isDarwin);
167167 break;
168 case MachineOperand::MO_RegisterMask:
169 continue;
168170 }
169171
170172 OutMI.addOperand(MCOp);
334334 MCOp = LowerSymbolOperand(MO,
335335 AsmPrinter.GetBlockAddressSymbol(MO.getBlockAddress()));
336336 break;
337 case MachineOperand::MO_RegisterMask:
338 // Ignore call clobbers.
339 continue;
337340 }
338341
339342 OutMI.addOperand(MCOp);