Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyMCInstLower.cpp54 !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 DWebAssemblyAsmPrinter.cpp155 MCSymbolWasm *WasmSym = nullptr; in getMCSymbolForFunction() local
166 WasmSym = cast<MCSymbolWasm>( in getMCSymbolForFunction()
171 return WasmSym; in getMCSymbolForFunction()
216 if (WasmSym->getType()) in getOrCreateWasmSymbol()
217 return WasmSym; in getOrCreateWasmSymbol()
235 return WasmSym; in getOrCreateWasmSymbol()
240 return WasmSym; in getOrCreateWasmSymbol()
253 WasmSym->setWeak(true); in getOrCreateWasmSymbol()
254 WasmSym->setExternal(true); in getOrCreateWasmSymbol()
273 return WasmSym; in getOrCreateWasmSymbol()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmTypeCheck.cpp197 auto WasmSym = cast<MCSymbolWasm>(&SymRef->getSymbol()); in getGlobal() local
198 switch (WasmSym->getType().value_or(wasm::WASM_SYMBOL_TYPE_DATA)) { in getGlobal()
200 Type = static_cast<wasm::ValType>(WasmSym->getGlobalType().Type); in getGlobal()
225 auto WasmSym = cast<MCSymbolWasm>(&SymRef->getSymbol()); in getTable() local
226 if (WasmSym->getType().value_or(wasm::WASM_SYMBOL_TYPE_DATA) != in getTable()
230 Type = static_cast<wasm::ValType>(WasmSym->getTableType().ElemType); in getTable()
346 const auto *WasmSym = cast<MCSymbolWasm>(&SymRef->getSymbol()); in typeCheck() local
347 const auto *Sig = WasmSym->getSignature(); in typeCheck()
348 if (!Sig || WasmSym->getType() != wasm::WASM_SYMBOL_TYPE_TAG) in typeCheck()
377 auto WasmSym = cast<MCSymbolWasm>(&SymRef->getSymbol()); in typeCheck() local
[all …]
H A DWebAssemblyAsmParser.cpp656 WasmSym->setSignature(Signature.get()); in ParseInstruction()
825 TOut.emitGlobalType(WasmSym); in parseDirective()
855 WasmSym->setTableType(Type); in parseDirective()
856 TOut.emitTableType(WasmSym); in parseDirective()
870 if (WasmSym->isDefined()) { in parseDirective()
888 LastFunctionLabel = WasmSym; in parseDirective()
894 WasmSym->setSignature(Signature.get()); in parseDirective()
897 TOut.emitFunctionType(WasmSym); in parseDirective()
958 TOut.emitTagType(WasmSym); in parseDirective()
1121 WasmSym->setComdat(true); in doBeforeLabelEmit()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DWasmAsmParser.cpp224 auto WasmSym = cast<MCSymbolWasm>(Sym); in parseDirectiveSize() local
225 if (WasmSym->isFunction()) { in parseDirectiveSize()
241 auto WasmSym = cast<MCSymbolWasm>( in parseDirectiveType() local
250 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in parseDirectiveType()
254 WasmSym->setComdat(true); in parseDirectiveType()
256 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_GLOBAL); in parseDirectiveType()
258 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_DATA); in parseDirectiveType()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/Disassembler/
H A DWebAssemblyDisassembler.cpp238 auto *WasmSym = cast<MCSymbolWasm>(Sym); in getInstruction() local
239 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in getInstruction()
241 WasmSym, MCSymbolRefExpr::VK_WASM_TYPEINDEX, getContext()); in getInstruction()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp1858 const WasmSymbol &WasmSym = WasmObj->getWasmSymbol(Sym); in getSymbolNamesFromObject() local
1859 if (WasmSym.isTypeData() && !WasmSym.isUndefined()) in getSymbolNamesFromObject()
1860 S.Size = WasmSym.Info.DataRef.Size; in getSymbolNamesFromObject()
/freebsd-14.2/contrib/llvm-project/llvm/lib/MC/
H A DWasmObjectWriter.cpp464 const auto *WasmSym = static_cast<const MCSymbolWasm *>(Sym); in executePostLayoutBinding() local
465 if (WasmSym->isNoStrip()) in executePostLayoutBinding()