| /llvm-project-15.0.7/lld/wasm/ |
| H A D | Writer.cpp | 261 if (WasmSym::globalBase) in layoutMemory() 268 if (WasmSym::dsoHandle) in layoutMemory() 280 if (WasmSym::tlsSize) { in layoutMemory() 309 if (WasmSym::dataEnd) in layoutMemory() 320 if (WasmSym::heapBase) { in layoutMemory() 349 if (WasmSym::heapEnd) { in layoutMemory() 1041 if (WasmSym::applyGlobalRelocs && WasmSym::initMemory) { in createSyntheticInitFunctions() 1276 if (WasmSym::initMemory && WasmSym::applyGlobalRelocs) { in createStartFunction() 1292 WasmSym::startFunction = WasmSym::initMemory; in createStartFunction() 1294 WasmSym::startFunction = WasmSym::applyGlobalRelocs; in createStartFunction() [all …]
|
| H A D | Symbols.cpp | 74 DefinedFunction *WasmSym::callCtors; 75 DefinedFunction *WasmSym::callDtors; 80 DefinedFunction *WasmSym::initTLS; 82 DefinedData *WasmSym::dsoHandle; 83 DefinedData *WasmSym::dataEnd; 84 DefinedData *WasmSym::globalBase; 85 DefinedData *WasmSym::heapBase; 86 DefinedData *WasmSym::heapEnd; 89 GlobalSymbol *WasmSym::tlsBase; 90 GlobalSymbol *WasmSym::tlsSize; [all …]
|
| H A D | Driver.cpp | 622 WasmSym::stackPointer = in createSyntheticSymbols() 634 WasmSym::memoryBase->markLive(); in createSyntheticSymbols() 635 WasmSym::tableBase->markLive(); in createSyntheticSymbols() 637 WasmSym::tableBase32 = in createSyntheticSymbols() 639 WasmSym::tableBase32->markLive(); in createSyntheticSymbols() 641 WasmSym::tableBase32 = nullptr; in createSyntheticSymbols() 646 WasmSym::stackPointer->markLive(); in createSyntheticSymbols() 688 WasmSym::definedTableBase32 = in createOptionalSymbols() 956 !WasmSym::callCtors->isUsedInRegularObj && in linkerMain() 966 WasmSym::callDtors = callDtorsFunc; in linkerMain() [all …]
|
| H A D | SyntheticSections.cpp | 322 isa<DefinedTable>(WasmSym::indirectFunctionTable) && in addTable() 323 cast<DefinedTable>(WasmSym::indirectFunctionTable)->table == table) { in addTable() 397 if (!WasmSym::indirectFunctionTable) in ensureIndirectFunctionTable() 398 WasmSym::indirectFunctionTable = in ensureIndirectFunctionTable() 434 writeUleb128(os, WasmSym::memoryBase->getGlobalIndex(), in generateRelocationCode() 492 writeUleb128(os, WasmSym::memoryBase->getGlobalIndex(), in writeBody() 535 return WasmSym::startFunction != nullptr; in isNeeded() 540 writeUleb128(os, WasmSym::startFunction->getFunctionIndex(), in writeBody() 557 assert(WasmSym::indirectFunctionTable); in writeBody() 572 (config->is64.value_or(false) ? WasmSym::tableBase32 in writeBody() [all …]
|
| H A D | MarkLive.cpp | 97 if (WasmSym::callDtors) in run() 98 enqueue(WasmSym::callDtors); in run() 110 WasmSym::callCtors->markLive(); in run()
|
| H A D | InputChunks.cpp | 394 writeUleb128(os, WasmSym::memoryBase->getGlobalIndex(), "memory_base"); in generateRelocationCode() 417 const GlobalSymbol* baseSymbol = WasmSym::memoryBase; in generateRelocationCode() 420 baseSymbol = WasmSym::tableBase; in generateRelocationCode()
|
| H A D | OutputSections.cpp | 130 writeUleb128(os, WasmSym::memoryBase->getGlobalIndex(), in finalizeContents() 143 initExpr.Inst.Value.Global = WasmSym::memoryBase->getGlobalIndex(); in finalizeContents()
|
| H A D | Symbols.h | 514 struct WasmSym { struct
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyMCInstLower.cpp | 54 !WasmSym->getType()) { in GetGlobalAddressSymbol() 64 return WasmSym; in GetGlobalAddressSymbol() 79 auto *WasmSym = Printer.getMCSymbolForFunction( in GetGlobalAddressSymbol() local 82 WasmSym->setSignature(Signature.get()); in GetGlobalAddressSymbol() 85 return WasmSym; in GetGlobalAddressSymbol() 126 if (WasmSym->isFunction()) in lowerSymbolOperand() 128 if (WasmSym->isGlobal()) in lowerSymbolOperand() 130 if (WasmSym->isTag()) in lowerSymbolOperand() 132 if (WasmSym->isTable()) in lowerSymbolOperand() 148 auto *WasmSym = cast<MCSymbolWasm>(Sym); in lowerTypeIndexOperand() local [all …]
|
| H A D | WebAssemblyAsmPrinter.cpp | 153 MCSymbolWasm *WasmSym = nullptr; in getMCSymbolForFunction() local 164 WasmSym = cast<MCSymbolWasm>( in getMCSymbolForFunction() 169 return WasmSym; in getMCSymbolForFunction() 214 if (WasmSym->getType()) in getOrCreateWasmSymbol() 215 return WasmSym; in getOrCreateWasmSymbol() 233 return WasmSym; in getOrCreateWasmSymbol() 238 return WasmSym; in getOrCreateWasmSymbol() 251 WasmSym->setWeak(true); in getOrCreateWasmSymbol() 252 WasmSym->setExternal(true); in getOrCreateWasmSymbol() 271 return WasmSym; in getOrCreateWasmSymbol() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/AsmParser/ |
| H A D | WebAssemblyAsmTypeCheck.cpp | 172 auto WasmSym = cast<MCSymbolWasm>(&SymRef->getSymbol()); in getGlobal() local 173 switch (WasmSym->getType().value_or(wasm::WASM_SYMBOL_TYPE_DATA)) { in getGlobal() 175 Type = static_cast<wasm::ValType>(WasmSym->getGlobalType().Type); in getGlobal() 200 auto WasmSym = cast<MCSymbolWasm>(&SymRef->getSymbol()); in getTable() local 201 if (WasmSym->getType().value_or(wasm::WASM_SYMBOL_TYPE_DATA) != in getTable() 205 Type = static_cast<wasm::ValType>(WasmSym->getTableType().ElemType); in getTable() 297 auto WasmSym = cast<MCSymbolWasm>(&SymRef->getSymbol()); in typeCheck() local 298 auto Sig = WasmSym->getSignature(); in typeCheck() 310 const auto *WasmSym = cast<MCSymbolWasm>(&SymRef->getSymbol()); in typeCheck() local 311 const auto *Sig = WasmSym->getSignature(); in typeCheck() [all …]
|
| H A D | WebAssemblyAsmParser.cpp | 647 WasmSym->setSignature(Signature.get()); in ParseInstruction() 822 TOut.emitGlobalType(WasmSym); in ParseDirective() 851 WasmSym->setTableType(Type); in ParseDirective() 852 TOut.emitTableType(WasmSym); in ParseDirective() 866 if (WasmSym->isDefined()) { in ParseDirective() 871 LastFunctionLabel = WasmSym; in ParseDirective() 878 WasmSym->setSignature(Signature.get()); in ParseDirective() 881 TOut.emitFunctionType(WasmSym); in ParseDirective() 930 WasmSym->setSignature(Signature.get()); in ParseDirective() 933 TOut.emitTagType(WasmSym); in ParseDirective() [all …]
|
| /llvm-project-15.0.7/llvm/lib/MC/MCParser/ |
| H A D | WasmAsmParser.cpp | 234 auto WasmSym = cast<MCSymbolWasm>( in parseDirectiveType() local 243 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in parseDirectiveType() 247 WasmSym->setComdat(true); in parseDirectiveType() 249 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_GLOBAL); in parseDirectiveType() 251 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_DATA); in parseDirectiveType()
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/Disassembler/ |
| H A D | WebAssemblyDisassembler.cpp | 236 auto *WasmSym = cast<MCSymbolWasm>(Sym); in getInstruction() local 237 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in getInstruction() 239 WasmSym, MCSymbolRefExpr::VK_WASM_TYPEINDEX, getContext()); in getInstruction()
|
| /llvm-project-15.0.7/llvm/lib/MC/ |
| H A D | WasmObjectWriter.cpp | 464 const auto *WasmSym = static_cast<const MCSymbolWasm *>(Sym); in executePostLayoutBinding() local 465 if (WasmSym->isNoStrip()) in executePostLayoutBinding()
|