================
@@ -83,13 +85,82 @@ 
WebAssemblyInstructionSelector::WebAssemblyInstructionSelector(
 {
 }
 
+bool WebAssemblyInstructionSelector::selectCopy(
+    MachineInstr &I, MachineRegisterInfo &MRI) const {
+  Register DstReg = I.getOperand(0).getReg();
+  Register SrcReg = I.getOperand(1).getReg();
+
+  const TargetRegisterClass *DstRC;
----------------
arsenm wrote:

Use getConstrainedRegClassForOperand? (these APIs need work, there's no reason 
they should have a MachineOperand involved) 

https://github.com/llvm/llvm-project/pull/197256
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to