Home
last modified time | relevance | path

Searched refs:WasmSym (Results 1 – 18 of 18) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyMCInstLower.cpp50 auto *WasmSym = cast<MCSymbolWasm>(Printer.getSymbol(Global)); in GetGlobalAddressSymbol() local
62 WasmSym->setSignature(Signature.get()); in GetGlobalAddressSymbol()
64 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in GetGlobalAddressSymbol()
67 return WasmSym; in GetGlobalAddressSymbol()
73 auto *WasmSym = cast<MCSymbolWasm>(Printer.GetExternalSymbolSymbol(Name)); in GetExternalSymbolSymbol() local
85 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_GLOBAL); in GetExternalSymbolSymbol()
86 WasmSym->setGlobalType(wasm::WasmGlobalType{ in GetExternalSymbolSymbol()
90 return WasmSym; in GetExternalSymbolSymbol()
96 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_EVENT); in GetExternalSymbolSymbol()
99 WasmSym->setEventType( in GetExternalSymbolSymbol()
[all …]
DWebAssemblyAsmPrinter.cpp295 auto *WasmSym = cast<MCSymbolWasm>(CurrentFnSym); in EmitFunctionBodyStart() local
296 WasmSym->setSignature(Signature.get()); in EmitFunctionBodyStart()
298 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in EmitFunctionBodyStart()
301 getTargetStreamer()->emitFunctionType(WasmSym); in EmitFunctionBodyStart()
/external/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyMCInstLower.cpp64 auto *WasmSym = Printer.getMCSymbolForFunction( in GetGlobalAddressSymbol() local
66 WasmSym->setSignature(Signature.get()); in GetGlobalAddressSymbol()
68 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in GetGlobalAddressSymbol()
69 return WasmSym; in GetGlobalAddressSymbol()
75 auto *WasmSym = cast<MCSymbolWasm>(Printer.GetExternalSymbolSymbol(Name)); in GetExternalSymbolSymbol() local
87 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_GLOBAL); in GetExternalSymbolSymbol()
88 WasmSym->setGlobalType(wasm::WasmGlobalType{ in GetExternalSymbolSymbol()
93 return WasmSym; in GetExternalSymbolSymbol()
99 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_EVENT); in GetExternalSymbolSymbol()
102 WasmSym->setEventType( in GetExternalSymbolSymbol()
[all …]
DWebAssemblyAsmPrinter.cpp155 MCSymbolWasm *WasmSym = nullptr; in getMCSymbolForFunction() local
166 WasmSym = cast<MCSymbolWasm>( in getMCSymbolForFunction()
169 WasmSym = cast<MCSymbolWasm>(getSymbol(F)); in getMCSymbolForFunction()
171 return WasmSym; in getMCSymbolForFunction()
404 auto *WasmSym = cast<MCSymbolWasm>(CurrentFnSym); in emitFunctionBodyStart() local
405 WasmSym->setSignature(Signature.get()); in emitFunctionBodyStart()
407 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in emitFunctionBodyStart()
409 getTargetStreamer()->emitFunctionType(WasmSym); in emitFunctionBodyStart()
/external/llvm-project/lld/wasm/
DSymbols.cpp68 DefinedFunction *WasmSym::callCtors;
69 DefinedFunction *WasmSym::callDtors;
70 DefinedFunction *WasmSym::initMemory;
71 DefinedFunction *WasmSym::applyRelocs;
72 DefinedFunction *WasmSym::initTLS;
73 DefinedData *WasmSym::dsoHandle;
74 DefinedData *WasmSym::dataEnd;
75 DefinedData *WasmSym::globalBase;
76 DefinedData *WasmSym::heapBase;
77 DefinedData *WasmSym::initMemoryFlag;
[all …]
DWriter.cpp242 auto *sp = cast<DefinedGlobal>(WasmSym::stackPointer); in layoutMemory()
263 if (WasmSym::globalBase) in layoutMemory()
264 WasmSym::globalBase->setVirtualAddress(memoryPtr); in layoutMemory()
270 if (WasmSym::dsoHandle) in layoutMemory()
271 WasmSym::dsoHandle->setVirtualAddress(dataStart); in layoutMemory()
283 auto *tlsSize = cast<DefinedGlobal>(WasmSym::tlsSize); in layoutMemory()
286 auto *tlsAlign = cast<DefinedGlobal>(WasmSym::tlsAlign); in layoutMemory()
289 auto *tlsBase = cast<DefinedGlobal>(WasmSym::tlsBase); in layoutMemory()
298 if (WasmSym::initMemoryFlag) { in layoutMemory()
300 WasmSym::initMemoryFlag->setVirtualAddress(memoryPtr); in layoutMemory()
[all …]
DMarkLive.cpp98 if (WasmSym::callDtors) in run()
99 enqueue(WasmSym::callDtors); in run()
101 if (WasmSym::applyRelocs) in run()
102 enqueue(WasmSym::applyRelocs); in run()
104 if (WasmSym::initMemory) in run()
105 enqueue(WasmSym::initMemory); in run()
117 WasmSym::callCtors->markLive(); in run()
DDriver.cpp614 WasmSym::callCtors = symtab->addSyntheticFunction( in createSyntheticSymbols()
621 WasmSym::applyRelocs = symtab->addSyntheticFunction( in createSyntheticSymbols()
627 WasmSym::stackPointer = in createSyntheticSymbols()
636 WasmSym::memoryBase = createUndefinedGlobal( in createSyntheticSymbols()
639 WasmSym::tableBase = createUndefinedGlobal("__table_base", &globalTypeI32); in createSyntheticSymbols()
640 WasmSym::memoryBase->markLive(); in createSyntheticSymbols()
641 WasmSym::tableBase->markLive(); in createSyntheticSymbols()
644 WasmSym::stackPointer = createGlobalVariable("__stack_pointer", true); in createSyntheticSymbols()
645 WasmSym::stackPointer->markLive(); in createSyntheticSymbols()
652 WasmSym::initMemory = symtab->addSyntheticFunction( in createSyntheticSymbols()
[all …]
DInputChunks.cpp380 writeUleb128(os, WasmSym::memoryBase->getGlobalIndex(), "memory_base"); in generateRelocationCode()
406 const GlobalSymbol* baseSymbol = WasmSym::memoryBase; in generateRelocationCode()
409 baseSymbol = WasmSym::tableBase; in generateRelocationCode()
DSyntheticSections.cpp300 writeUleb128(os, WasmSym::memoryBase->getGlobalIndex(), "__memory_base"); in generateRelocationCode()
310 writeUleb128(os, WasmSym::tableBase->getGlobalIndex(), "__table_base"); in generateRelocationCode()
375 return WasmSym::initMemory != nullptr; in isNeeded()
380 writeUleb128(os, WasmSym::initMemory->getFunctionIndex(), "function index"); in writeBody()
401 initExpr.Value.Global = WasmSym::tableBase->getGlobalIndex(); in writeBody()
DOutputSections.cpp163 initExpr.Value.Global = WasmSym::memoryBase->getGlobalIndex(); in finalizeContents()
DSymbols.h438 struct WasmSym { struct
/external/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
DWebAssemblyAsmParser.cpp552 auto *WasmSym = cast<MCSymbolWasm>(Sym); in ParseInstruction() local
553 WasmSym->setSignature(Signature.get()); in ParseInstruction()
555 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in ParseInstruction()
557 WasmSym, MCSymbolRefExpr::VK_WASM_TYPEINDEX, Ctx); in ParseInstruction()
735 auto WasmSym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(SymName)); in ParseDirective() local
736 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_GLOBAL); in ParseDirective()
737 WasmSym->setGlobalType( in ParseDirective()
740 TOut.emitGlobalType(WasmSym); in ParseDirective()
760 auto WasmSym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(SymName)); in ParseDirective() local
761 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_TABLE); in ParseDirective()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/AsmParser/
DWebAssemblyAsmParser.cpp516 auto *WasmSym = cast<MCSymbolWasm>(Sym); in ParseInstruction() local
517 WasmSym->setSignature(Signature.get()); in ParseInstruction()
519 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in ParseInstruction()
521 WasmSym, MCSymbolRefExpr::VK_WASM_TYPEINDEX, Ctx); in ParseInstruction()
677 auto WasmSym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(SymName)); in ParseDirective() local
678 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_GLOBAL); in ParseDirective()
679 WasmSym->setGlobalType( in ParseDirective()
682 TOut.emitGlobalType(WasmSym); in ParseDirective()
695 auto WasmSym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(SymName)); in ParseDirective() local
696 if (CurrentState == Label && WasmSym == LastLabel) { in ParseDirective()
[all …]
/external/llvm-project/llvm/lib/MC/MCParser/
DWasmAsmParser.cpp184 auto WasmSym = cast<MCSymbolWasm>( in parseDirectiveType() local
193 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in parseDirectiveType()
195 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_GLOBAL); in parseDirectiveType()
197 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_DATA); in parseDirectiveType()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/
DWasmAsmParser.cpp182 auto WasmSym = cast<MCSymbolWasm>( in parseDirectiveType() local
191 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in parseDirectiveType()
193 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_GLOBAL); in parseDirectiveType()
195 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_DATA); in parseDirectiveType()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/Disassembler/
DWebAssemblyDisassembler.cpp233 auto *WasmSym = cast<MCSymbolWasm>(Sym); in getInstruction() local
234 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in getInstruction()
236 WasmSym, MCSymbolRefExpr::VK_WASM_TYPEINDEX, getContext()); in getInstruction()
/external/llvm-project/llvm/lib/Target/WebAssembly/Disassembler/
DWebAssemblyDisassembler.cpp236 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()