Lines Matching defs:import
86 // For imports we need to notify the dynamic linker when an import is weak
129 writeStr(sub.os, module, "import module");
130 writeStr(sub.os, name, "import name");
233 writeUleb128(os, getNumImports(), "import count");
238 WasmImport import;
239 import.Module = ctx.arg.memoryImport->first;
240 import.Field = ctx.arg.memoryImport->second;
241 import.Kind = WASM_EXTERNAL_MEMORY;
242 import.Memory.Flags = 0;
243 import.Memory.Minimum = out.memorySec->numMemoryPages;
245 import.Memory.Flags |= WASM_LIMITS_FLAG_HAS_MAX;
246 import.Memory.Maximum = out.memorySec->maxMemoryPages;
249 import.Memory.Flags |= WASM_LIMITS_FLAG_IS_SHARED;
251 import.Memory.Flags |= WASM_LIMITS_FLAG_IS_64;
252 writeImport(os, import);
256 WasmImport import;
257 import.Field = sym->importName.value_or(sym->getName());
258 import.Module = sym->importModule.value_or(defaultModule);
261 import.Kind = WASM_EXTERNAL_FUNCTION;
262 import.SigIndex = out.typeSec->lookupType(*functionSym->signature);
264 import.Kind = WASM_EXTERNAL_GLOBAL;
265 import.Global = *globalSym->getGlobalType();
267 import.Kind = WASM_EXTERNAL_TAG;
268 import.SigIndex = out.typeSec->lookupType(*tagSym->signature);
271 import.Kind = WASM_EXTERNAL_TABLE;
272 import.Table = *tableSym->getTableType();
274 writeImport(os, import);
278 WasmImport import;
279 import.Kind = WASM_EXTERNAL_GLOBAL;
281 import.Global = {static_cast<uint8_t>(ptrType), true};
283 import.Module = "GOT.mem";
285 import.Module = "GOT.func";
286 import.Field = sym->getName();
287 writeImport(os, import);
330 "'call-indirect-overlong' feature conflicts with import of "
337 llvm_unreachable("failed to find conflicting table import");