• Home
  • Raw
  • Download

Lines Matching full:webassembly

1 //===-- WebAssemblyPeephole.cpp - WebAssembly Peephole Optimiztions -------===//
11 /// \brief Late peephole optimizations for WebAssembly.
16 #include "WebAssembly.h"
29 cl::desc("WebAssembly: Disable fallthrough-return optimizations."),
35 return "WebAssembly late peephole optimizer"; in getPassName()
122 case WebAssembly::STORE8_I32: in runOnMachineFunction()
123 case WebAssembly::STORE16_I32: in runOnMachineFunction()
124 case WebAssembly::STORE8_I64: in runOnMachineFunction()
125 case WebAssembly::STORE16_I64: in runOnMachineFunction()
126 case WebAssembly::STORE32_I64: in runOnMachineFunction()
127 case WebAssembly::STORE_F32: in runOnMachineFunction()
128 case WebAssembly::STORE_F64: in runOnMachineFunction()
129 case WebAssembly::STORE_I32: in runOnMachineFunction()
130 case WebAssembly::STORE_I64: { in runOnMachineFunction()
137 MI.getOperand(WebAssembly::StoreValueOperandNo).getReg(); in runOnMachineFunction()
141 case WebAssembly::CALL_I32: in runOnMachineFunction()
142 case WebAssembly::CALL_I64: { in runOnMachineFunction()
169 case WebAssembly::RETURN_I32: in runOnMachineFunction()
171 MI, MBB, MF, MFI, MRI, TII, WebAssembly::FALLTHROUGH_RETURN_I32, in runOnMachineFunction()
172 WebAssembly::COPY_LOCAL_I32); in runOnMachineFunction()
174 case WebAssembly::RETURN_I64: in runOnMachineFunction()
176 MI, MBB, MF, MFI, MRI, TII, WebAssembly::FALLTHROUGH_RETURN_I64, in runOnMachineFunction()
177 WebAssembly::COPY_LOCAL_I64); in runOnMachineFunction()
179 case WebAssembly::RETURN_F32: in runOnMachineFunction()
181 MI, MBB, MF, MFI, MRI, TII, WebAssembly::FALLTHROUGH_RETURN_F32, in runOnMachineFunction()
182 WebAssembly::COPY_LOCAL_F32); in runOnMachineFunction()
184 case WebAssembly::RETURN_F64: in runOnMachineFunction()
186 MI, MBB, MF, MFI, MRI, TII, WebAssembly::FALLTHROUGH_RETURN_F64, in runOnMachineFunction()
187 WebAssembly::COPY_LOCAL_F64); in runOnMachineFunction()
189 case WebAssembly::RETURN_VOID: in runOnMachineFunction()
192 MI.setDesc(TII.get(WebAssembly::FALLTHROUGH_RETURN_VOID)); in runOnMachineFunction()