Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyMCInstLower.cpp55 !WasmSym->getType()) { in GetGlobalAddressSymbol()
69 return WasmSym; in GetGlobalAddressSymbol()
84 auto *WasmSym = Printer.getMCSymbolForFunction( in GetGlobalAddressSymbol() local
86 WasmSym->setSignature(Signature.get()); in GetGlobalAddressSymbol()
89 return WasmSym; in GetGlobalAddressSymbol()
127 if (WasmSym->isFunction()) in lowerSymbolOperand()
129 if (WasmSym->isGlobal()) in lowerSymbolOperand()
131 if (WasmSym->isTag()) in lowerSymbolOperand()
133 if (WasmSym->isTable()) in lowerSymbolOperand()
149 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()
215 if (WasmSym->getType().hasValue()) in getOrCreateWasmSymbol()
216 return WasmSym; in getOrCreateWasmSymbol()
234 return WasmSym; in getOrCreateWasmSymbol()
243 WasmSym->setTagType( in getOrCreateWasmSymbol()
248 WasmSym->setWeak(true); in getOrCreateWasmSymbol()
249 WasmSym->setExternal(true); in getOrCreateWasmSymbol()
263 WasmSym->setSignature(Signature.get()); in getOrCreateWasmSymbol()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp649 WasmSym->setSignature(Signature.get()); in ParseInstruction()
830 WasmSym->setGlobalType( in ParseDirective()
833 TOut.emitGlobalType(WasmSym); in ParseDirective()
862 WasmSym->setTableType(Type); in ParseDirective()
863 TOut.emitTableType(WasmSym); in ParseDirective()
877 if (WasmSym->isDefined()) { in ParseDirective()
882 LastFunctionLabel = WasmSym; in ParseDirective()
889 WasmSym->setSignature(Signature.get()); in ParseDirective()
892 TOut.emitFunctionType(WasmSym); in ParseDirective()
944 TOut.emitTagType(WasmSym); in ParseDirective()
[all …]
H A DWebAssemblyAsmTypeCheck.cpp151 auto WasmSym = cast<MCSymbolWasm>(&SymRef->getSymbol()); in getGlobal() local
152 switch (WasmSym->getType().getValueOr(wasm::WASM_SYMBOL_TYPE_DATA)) { in getGlobal()
154 Type = static_cast<wasm::ValType>(WasmSym->getGlobalType().Type); in getGlobal()
164 return typeError(ErrorLoc, StringRef("symbol ") + WasmSym->getName() + in getGlobal()
227 auto WasmSym = cast<MCSymbolWasm>(&SymRef->getSymbol()); in typeCheck() local
228 auto Sig = WasmSym->getSignature(); in typeCheck()
229 if (!Sig || WasmSym->getType() != wasm::WASM_SYMBOL_TYPE_FUNCTION) in typeCheck()
230 return typeError(ErrorLoc, StringRef("symbol ") + WasmSym->getName() + in typeCheck()
/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DWasmAsmParser.cpp227 auto WasmSym = cast<MCSymbolWasm>( in parseDirectiveType() local
236 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in parseDirectiveType()
240 WasmSym->setComdat(true); in parseDirectiveType()
242 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_GLOBAL); in parseDirectiveType()
244 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_DATA); in parseDirectiveType()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/Disassembler/
H A 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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/
H A DWasmObjectWriter.cpp416 const auto *WasmSym = static_cast<const MCSymbolWasm *>(Sym); in executePostLayoutBinding() local
417 if (WasmSym->isNoStrip()) in executePostLayoutBinding()