Lines Matching full:webassembly
23 #include "WebAssembly.h"
24 #include "MCTargetDesc/WebAssemblyMCTargetDesc.h" // for WebAssembly::ARGUMENT_*
43 return "WebAssembly Register Stackify"; in getPassName()
77 if (!MI->definesRegister(WebAssembly::EXPR_STACK)) in ImposeStackOrdering()
78 MI->addOperand(MachineOperand::CreateReg(WebAssembly::EXPR_STACK, in ImposeStackOrdering()
83 if (!MI->readsRegister(WebAssembly::EXPR_STACK)) in ImposeStackOrdering()
84 MI->addOperand(MachineOperand::CreateReg(WebAssembly::EXPR_STACK, in ImposeStackOrdering()
153 case WebAssembly::DIV_S_I32: case WebAssembly::DIV_S_I64: in Query()
154 case WebAssembly::REM_S_I32: case WebAssembly::REM_S_I64: in Query()
155 case WebAssembly::DIV_U_I32: case WebAssembly::DIV_U_I64: in Query()
156 case WebAssembly::REM_U_I32: case WebAssembly::REM_U_I64: in Query()
157 case WebAssembly::I32_TRUNC_S_F32: case WebAssembly::I64_TRUNC_S_F32: in Query()
158 case WebAssembly::I32_TRUNC_S_F64: case WebAssembly::I64_TRUNC_S_F64: in Query()
159 case WebAssembly::I32_TRUNC_U_F32: case WebAssembly::I64_TRUNC_U_F32: in Query()
160 case WebAssembly::I32_TRUNC_U_F64: case WebAssembly::I64_TRUNC_U_F64: in Query()
180 case WebAssembly::DIV_S_I32: case WebAssembly::DIV_S_I64: in Query()
181 case WebAssembly::REM_S_I32: case WebAssembly::REM_S_I64: in Query()
182 case WebAssembly::DIV_U_I32: case WebAssembly::DIV_U_I64: in Query()
183 case WebAssembly::REM_U_I32: case WebAssembly::REM_U_I64: in Query()
184 case WebAssembly::I32_TRUNC_S_F32: case WebAssembly::I64_TRUNC_S_F32: in Query()
185 case WebAssembly::I32_TRUNC_S_F64: case WebAssembly::I64_TRUNC_S_F64: in Query()
186 case WebAssembly::I32_TRUNC_U_F32: case WebAssembly::I64_TRUNC_U_F32: in Query()
187 case WebAssembly::I32_TRUNC_U_F64: case WebAssembly::I64_TRUNC_U_F64: in Query()
202 case WebAssembly::CALL_VOID: in Query()
203 case WebAssembly::CALL_INDIRECT_VOID: in Query()
206 case WebAssembly::CALL_I32: case WebAssembly::CALL_I64: in Query()
207 case WebAssembly::CALL_F32: case WebAssembly::CALL_F64: in Query()
208 case WebAssembly::CALL_INDIRECT_I32: case WebAssembly::CALL_INDIRECT_I64: in Query()
209 case WebAssembly::CALL_INDIRECT_F32: case WebAssembly::CALL_INDIRECT_F64: in Query()
295 if (Reg == WebAssembly::ARGUMENTS) in IsSafeToMove()
413 if (RC == &WebAssembly::I32RegClass) in GetTeeLocalOpcode()
414 return WebAssembly::TEE_LOCAL_I32; in GetTeeLocalOpcode()
415 if (RC == &WebAssembly::I64RegClass) in GetTeeLocalOpcode()
416 return WebAssembly::TEE_LOCAL_I64; in GetTeeLocalOpcode()
417 if (RC == &WebAssembly::F32RegClass) in GetTeeLocalOpcode()
418 return WebAssembly::TEE_LOCAL_F32; in GetTeeLocalOpcode()
419 if (RC == &WebAssembly::F64RegClass) in GetTeeLocalOpcode()
420 return WebAssembly::TEE_LOCAL_F64; in GetTeeLocalOpcode()
507 LIS.removePhysRegDefAt(WebAssembly::ARGUMENTS, Idx); in RematerializeCheapDef()
765 if (Def->getOpcode() == WebAssembly::ARGUMENT_I32 || in runOnMachineFunction()
766 Def->getOpcode() == WebAssembly::ARGUMENT_I64 || in runOnMachineFunction()
767 Def->getOpcode() == WebAssembly::ARGUMENT_F32 || in runOnMachineFunction()
768 Def->getOpcode() == WebAssembly::ARGUMENT_F64) in runOnMachineFunction()
819 MF.getRegInfo().addLiveIn(WebAssembly::EXPR_STACK); in runOnMachineFunction()
821 MBB.addLiveIn(WebAssembly::EXPR_STACK); in runOnMachineFunction()