• Home
  • Raw
  • Download

Lines Matching full:webassembly

10 /// This file converts any remaining registers into WebAssembly locals.
19 #include "WebAssembly.h"
37 return "WebAssembly Explicit Locals"; in getPassName()
56 "Convert registers to WebAssembly locals", false, false)
89 if (RC == &WebAssembly::I32RegClass) in getDropOpcode()
90 return WebAssembly::DROP_I32; in getDropOpcode()
91 if (RC == &WebAssembly::I64RegClass) in getDropOpcode()
92 return WebAssembly::DROP_I64; in getDropOpcode()
93 if (RC == &WebAssembly::F32RegClass) in getDropOpcode()
94 return WebAssembly::DROP_F32; in getDropOpcode()
95 if (RC == &WebAssembly::F64RegClass) in getDropOpcode()
96 return WebAssembly::DROP_F64; in getDropOpcode()
97 if (RC == &WebAssembly::V128RegClass) in getDropOpcode()
98 return WebAssembly::DROP_V128; in getDropOpcode()
99 if (RC == &WebAssembly::FUNCREFRegClass) in getDropOpcode()
100 return WebAssembly::DROP_FUNCREF; in getDropOpcode()
101 if (RC == &WebAssembly::EXTERNREFRegClass) in getDropOpcode()
102 return WebAssembly::DROP_EXTERNREF; in getDropOpcode()
103 if (RC == &WebAssembly::EXNREFRegClass) in getDropOpcode()
104 return WebAssembly::DROP_EXNREF; in getDropOpcode()
110 if (RC == &WebAssembly::I32RegClass) in getLocalGetOpcode()
111 return WebAssembly::LOCAL_GET_I32; in getLocalGetOpcode()
112 if (RC == &WebAssembly::I64RegClass) in getLocalGetOpcode()
113 return WebAssembly::LOCAL_GET_I64; in getLocalGetOpcode()
114 if (RC == &WebAssembly::F32RegClass) in getLocalGetOpcode()
115 return WebAssembly::LOCAL_GET_F32; in getLocalGetOpcode()
116 if (RC == &WebAssembly::F64RegClass) in getLocalGetOpcode()
117 return WebAssembly::LOCAL_GET_F64; in getLocalGetOpcode()
118 if (RC == &WebAssembly::V128RegClass) in getLocalGetOpcode()
119 return WebAssembly::LOCAL_GET_V128; in getLocalGetOpcode()
120 if (RC == &WebAssembly::EXNREFRegClass) in getLocalGetOpcode()
121 return WebAssembly::LOCAL_GET_EXNREF; in getLocalGetOpcode()
122 if (RC == &WebAssembly::FUNCREFRegClass) in getLocalGetOpcode()
123 return WebAssembly::LOCAL_GET_FUNCREF; in getLocalGetOpcode()
124 if (RC == &WebAssembly::EXTERNREFRegClass) in getLocalGetOpcode()
125 return WebAssembly::LOCAL_GET_EXTERNREF; in getLocalGetOpcode()
131 if (RC == &WebAssembly::I32RegClass) in getLocalSetOpcode()
132 return WebAssembly::LOCAL_SET_I32; in getLocalSetOpcode()
133 if (RC == &WebAssembly::I64RegClass) in getLocalSetOpcode()
134 return WebAssembly::LOCAL_SET_I64; in getLocalSetOpcode()
135 if (RC == &WebAssembly::F32RegClass) in getLocalSetOpcode()
136 return WebAssembly::LOCAL_SET_F32; in getLocalSetOpcode()
137 if (RC == &WebAssembly::F64RegClass) in getLocalSetOpcode()
138 return WebAssembly::LOCAL_SET_F64; in getLocalSetOpcode()
139 if (RC == &WebAssembly::V128RegClass) in getLocalSetOpcode()
140 return WebAssembly::LOCAL_SET_V128; in getLocalSetOpcode()
141 if (RC == &WebAssembly::EXNREFRegClass) in getLocalSetOpcode()
142 return WebAssembly::LOCAL_SET_EXNREF; in getLocalSetOpcode()
143 if (RC == &WebAssembly::FUNCREFRegClass) in getLocalSetOpcode()
144 return WebAssembly::LOCAL_SET_FUNCREF; in getLocalSetOpcode()
145 if (RC == &WebAssembly::EXTERNREFRegClass) in getLocalSetOpcode()
146 return WebAssembly::LOCAL_SET_EXTERNREF; in getLocalSetOpcode()
152 if (RC == &WebAssembly::I32RegClass) in getLocalTeeOpcode()
153 return WebAssembly::LOCAL_TEE_I32; in getLocalTeeOpcode()
154 if (RC == &WebAssembly::I64RegClass) in getLocalTeeOpcode()
155 return WebAssembly::LOCAL_TEE_I64; in getLocalTeeOpcode()
156 if (RC == &WebAssembly::F32RegClass) in getLocalTeeOpcode()
157 return WebAssembly::LOCAL_TEE_F32; in getLocalTeeOpcode()
158 if (RC == &WebAssembly::F64RegClass) in getLocalTeeOpcode()
159 return WebAssembly::LOCAL_TEE_F64; in getLocalTeeOpcode()
160 if (RC == &WebAssembly::V128RegClass) in getLocalTeeOpcode()
161 return WebAssembly::LOCAL_TEE_V128; in getLocalTeeOpcode()
162 if (RC == &WebAssembly::EXNREFRegClass) in getLocalTeeOpcode()
163 return WebAssembly::LOCAL_TEE_EXNREF; in getLocalTeeOpcode()
164 if (RC == &WebAssembly::FUNCREFRegClass) in getLocalTeeOpcode()
165 return WebAssembly::LOCAL_TEE_FUNCREF; in getLocalTeeOpcode()
166 if (RC == &WebAssembly::EXTERNREFRegClass) in getLocalTeeOpcode()
167 return WebAssembly::LOCAL_TEE_EXTERNREF; in getLocalTeeOpcode()
173 if (RC == &WebAssembly::I32RegClass) in typeForRegClass()
175 if (RC == &WebAssembly::I64RegClass) in typeForRegClass()
177 if (RC == &WebAssembly::F32RegClass) in typeForRegClass()
179 if (RC == &WebAssembly::F64RegClass) in typeForRegClass()
181 if (RC == &WebAssembly::V128RegClass) in typeForRegClass()
183 if (RC == &WebAssembly::EXNREFRegClass) in typeForRegClass()
185 if (RC == &WebAssembly::FUNCREFRegClass) in typeForRegClass()
187 if (RC == &WebAssembly::EXTERNREFRegClass) in typeForRegClass()
237 if (!WebAssembly::isArgument(MI.getOpcode())) in runOnMachineFunction()
261 assert(!WebAssembly::isArgument(MI.getOpcode())); in runOnMachineFunction()
266 if (MI.getOpcode() == WebAssembly::IMPLICIT_DEF) { in runOnMachineFunction()
275 if (WebAssembly::isTee(MI.getOpcode())) { in runOnMachineFunction()
396 if (WebAssembly::isCopy(MI.getOpcode())) { in runOnMachineFunction()