Lines Matching refs:wasm

113 static char getInvokeSig(wasm::ValType VT) {  in getInvokeSig()
115 case wasm::ValType::I32: in getInvokeSig()
117 case wasm::ValType::I64: in getInvokeSig()
119 case wasm::ValType::F32: in getInvokeSig()
121 case wasm::ValType::F64: in getInvokeSig()
123 case wasm::ValType::V128: in getInvokeSig()
125 case wasm::ValType::FUNCREF: in getInvokeSig()
127 case wasm::ValType::EXTERNREF: in getInvokeSig()
129 case wasm::ValType::EXNREF: in getInvokeSig()
138 static std::string getEmscriptenInvokeSymbolName(wasm::WasmSignature *Sig) { in getEmscriptenInvokeSymbolName()
157 const Function *F, bool EnableEmEH, wasm::WasmSignature *Sig, in getMCSymbolForFunction()
234 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_GLOBAL); in getOrCreateWasmSymbol()
235 WasmSym->setGlobalType(wasm::WasmGlobalType{ in getOrCreateWasmSymbol()
236 uint8_t(Subtarget.hasAddr64() ? wasm::WASM_TYPE_I64 in getOrCreateWasmSymbol()
237 : wasm::WASM_TYPE_I32), in getOrCreateWasmSymbol()
243 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_DATA); in getOrCreateWasmSymbol()
247 SmallVector<wasm::ValType, 4> Returns; in getOrCreateWasmSymbol()
248 SmallVector<wasm::ValType, 4> Params; in getOrCreateWasmSymbol()
250 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_TAG); in getOrCreateWasmSymbol()
265 wasm::ValType AddrType = in getOrCreateWasmSymbol()
266 Subtarget.hasAddr64() ? wasm::ValType::I64 : wasm::ValType::I32; in getOrCreateWasmSymbol()
269 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in getOrCreateWasmSymbol()
281 std::optional<wasm::WasmSymbolType> WasmTy = Sym->getType(); in emitSymbolType()
286 case wasm::WASM_SYMBOL_TYPE_GLOBAL: in emitSymbolType()
289 case wasm::WASM_SYMBOL_TYPE_TAG: in emitSymbolType()
292 case wasm::WASM_SYMBOL_TYPE_TABLE: in emitSymbolType()
357 Sym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in emitDecls()
520 if (Entry.Prefix != wasm::WASM_FEATURE_PREFIX_USED && in EmitTargetFeatures()
521 Entry.Prefix != wasm::WASM_FEATURE_PREFIX_REQUIRED && in EmitTargetFeatures()
522 Entry.Prefix != wasm::WASM_FEATURE_PREFIX_DISALLOWED) in EmitTargetFeatures()
540 EmittedFeatures.push_back({wasm::WASM_FEATURE_PREFIX_USED, "memory64"}); in EmitTargetFeatures()
623 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in emitFunctionBodyStart()
635 SmallVector<wasm::ValType, 16> Locals; in emitFunctionBodyStart()