reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/MC/MCContext.h
   58   class MCSymbolWasm;
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyTargetStreamer.h
   25 class MCSymbolWasm;

References

include/llvm/MC/MCContext.h
  506                                   const MCSymbolWasm *Group, unsigned UniqueID,
include/llvm/MC/MCSectionWasm.h
   34   const MCSymbolWasm *Group;
   49   MCSectionWasm(StringRef Section, SectionKind K, const MCSymbolWasm *group,
   60   const MCSymbolWasm *getGroup() const { return Group; }
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
   77     return isa_impl<To, From>::doit(Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  168   using ret_type = const To &; // Normal case, return Ty&
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  258   return cast_convert_val<X, Y,
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
include/llvm/Support/PointerLikeTypeTraits.h
   56   static inline void *getAsVoidPointer(T *P) { return P; }
   57   static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
   59   enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
   91   typedef PointerLikeTypeTraits<T *> NonConst;
   93   static inline const void *getAsVoidPointer(const T *P) {
   96   static inline const T *getFromVoidPointer(const void *P) {
lib/MC/MCContext.cpp
  169       return new (Name, *this) MCSymbolWasm(Name, IsTemporary);
  498   MCSymbolWasm *GroupSym = nullptr;
  500     GroupSym = cast<MCSymbolWasm>(getOrCreateSymbol(Group));
  508                                          const MCSymbolWasm *GroupSym,
  524   cast<MCSymbolWasm>(Begin)->setType(wasm::WASM_SYMBOL_TYPE_SECTION);
lib/MC/MCParser/WasmAsmParser.cpp
  182     auto WasmSym = cast<MCSymbolWasm>(
lib/MC/MCWasmStreamer.cpp
   83   auto *Symbol = cast<MCSymbolWasm>(S);
   83   auto *Symbol = cast<MCSymbolWasm>(S);
  143   cast<MCSymbolWasm>(Symbol)->setSize(Value);
lib/MC/WasmObjectWriter.cpp
  119   const MCSymbolWasm *Sym;
  139   const MCSymbolWasm *Symbol;        // The symbol to relocate with.
  144   WasmRelocationEntry(uint64_t Offset, const MCSymbolWasm *Symbol,
  228   DenseMap<const MCSymbolWasm *, uint32_t> TypeIndices;
  231   DenseMap<const MCSymbolWasm *, uint32_t> TableIndices;
  234   DenseMap<const MCSymbolWasm *, uint32_t> WasmIndices;
  235   DenseMap<const MCSymbolWasm *, uint32_t> GOTIndices;
  237   DenseMap<const MCSymbolWasm *, wasm::WasmDataReference> DataLocations;
  341   uint32_t getFunctionType(const MCSymbolWasm &Symbol);
  342   uint32_t getEventType(const MCSymbolWasm &Symbol);
  343   void registerFunctionType(const MCSymbolWasm &Symbol);
  344   void registerEventType(const MCSymbolWasm &Symbol);
  414     const auto &WS = static_cast<const MCSymbolWasm &>(S);
  447     const auto &SymB = cast<MCSymbolWasm>(RefB->getSymbol());
  447     const auto &SymB = cast<MCSymbolWasm>(RefB->getSymbol());
  457   const auto *SymA = cast<MCSymbolWasm>(&RefA->getSymbol());
  457   const auto *SymA = cast<MCSymbolWasm>(&RefA->getSymbol());
  492     SymA = cast<MCSymbolWasm>(SectionSymbol);
  522 static const MCSymbolWasm *resolveSymbol(const MCSymbolWasm &Symbol) {
  522 static const MCSymbolWasm *resolveSymbol(const MCSymbolWasm &Symbol) {
  523   const MCSymbolWasm* Ret = &Symbol;
  527     Ret = cast<MCSymbolWasm>(&Inner->getSymbol());
  548     const MCSymbolWasm *Sym = resolveSymbol(*RelEntry.Symbol);
  572     const MCSymbolWasm *Sym = resolveSymbol(*RelEntry.Symbol);
 1033 uint32_t WasmObjectWriter::getFunctionType(const MCSymbolWasm &Symbol) {
 1039 uint32_t WasmObjectWriter::getEventType(const MCSymbolWasm &Symbol) {
 1045 void WasmObjectWriter::registerFunctionType(const MCSymbolWasm &Symbol) {
 1049   const MCSymbolWasm *ResolvedSym = resolveSymbol(Symbol);
 1065 void WasmObjectWriter::registerEventType(const MCSymbolWasm &Symbol) {
 1086 static bool isInSymtab(const MCSymbolWasm &Sym) {
 1145     const auto &WS = static_cast<const MCSymbolWasm &>(S);
 1200     const auto &WS = static_cast<const MCSymbolWasm &>(S);
 1246       if (const MCSymbolWasm *C = Section.getGroup()) {
 1262         WasmIndices[cast<MCSymbolWasm>(Begin)] = CustomSections.size();
 1290     const auto &WS = static_cast<const MCSymbolWasm &>(S);
 1323         if (const MCSymbolWasm *C = Section.getGroup()) {
 1409     const auto &WS = static_cast<const MCSymbolWasm &>(S);
 1410     const MCSymbolWasm *ResolvedSym = resolveSymbol(WS);
 1433     const auto &WS = static_cast<const MCSymbolWasm &>(S);
 1482       const MCSymbolWasm &WS = *resolveSymbol(*Rel.Symbol);
 1556       const auto &TargetSym = cast<const MCSymbolWasm>(SymRef->getSymbol());
 1556       const auto &TargetSym = cast<const MCSymbolWasm>(SymRef->getSymbol());
lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
  516       auto *WasmSym = cast<MCSymbolWasm>(Sym);
  516       auto *WasmSym = cast<MCSymbolWasm>(Sym);
  677       auto WasmSym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(SymName));
  695       auto WasmSym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(SymName));
  719       auto WasmSym = cast<MCSymbolWasm>(Ctx.getOrCreateSymbol(SymName));
lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp
  234         auto *WasmSym = cast<MCSymbolWasm>(Sym);
  234         auto *WasmSym = cast<MCSymbolWasm>(Sym);
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.cpp
  282     auto *Sym = cast<MCSymbolWasm>(&Expr->getSymbol());
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyTargetStreamer.cpp
   63 void WebAssemblyTargetAsmStreamer::emitFunctionType(const MCSymbolWasm *Sym) {
   70 void WebAssemblyTargetAsmStreamer::emitGlobalType(const MCSymbolWasm *Sym) {
   78 void WebAssemblyTargetAsmStreamer::emitEventType(const MCSymbolWasm *Sym) {
   85 void WebAssemblyTargetAsmStreamer::emitImportModule(const MCSymbolWasm *Sym,
   91 void WebAssemblyTargetAsmStreamer::emitImportName(const MCSymbolWasm *Sym,
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyTargetStreamer.h
   38   virtual void emitFunctionType(const MCSymbolWasm *Sym) = 0;
   42   virtual void emitGlobalType(const MCSymbolWasm *Sym) = 0;
   44   virtual void emitEventType(const MCSymbolWasm *Sym) = 0;
   46   virtual void emitImportModule(const MCSymbolWasm *Sym,
   49   virtual void emitImportName(const MCSymbolWasm *Sym,
   65   void emitFunctionType(const MCSymbolWasm *Sym) override;
   67   void emitGlobalType(const MCSymbolWasm *Sym) override;
   68   void emitEventType(const MCSymbolWasm *Sym) override;
   69   void emitImportModule(const MCSymbolWasm *Sym, StringRef ImportModule) override;
   70   void emitImportName(const MCSymbolWasm *Sym, StringRef ImportName) override;
   80   void emitFunctionType(const MCSymbolWasm *Sym) override {}
   82   void emitGlobalType(const MCSymbolWasm *Sym) override {}
   83   void emitEventType(const MCSymbolWasm *Sym) override {}
   84   void emitImportModule(const MCSymbolWasm *Sym,
   86   void emitImportName(const MCSymbolWasm *Sym,
   98   void emitFunctionType(const MCSymbolWasm *) override {}
  100   void emitGlobalType(const MCSymbolWasm *) override {}
  101   void emitEventType(const MCSymbolWasm *) override {}
  102   void emitImportModule(const MCSymbolWasm *, StringRef) override {}
  103   void emitImportName(const MCSymbolWasm *, StringRef) override {}
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyWasmObjectWriter.cpp
   69   auto& SymA = cast<MCSymbolWasm>(RefA->getSymbol());
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
   91     auto Sym = cast<MCSymbolWasm>(It.getValue());
  104       auto *Sym = cast<MCSymbolWasm>(getSymbol(&F));
  104       auto *Sym = cast<MCSymbolWasm>(getSymbol(&F));
  285   auto *WasmSym = cast<MCSymbolWasm>(CurrentFnSym);
  285   auto *WasmSym = cast<MCSymbolWasm>(CurrentFnSym);
lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
   50   auto *WasmSym = cast<MCSymbolWasm>(Printer.getSymbol(Global));
   50   auto *WasmSym = cast<MCSymbolWasm>(Printer.getSymbol(Global));
   73   auto *WasmSym = cast<MCSymbolWasm>(Printer.GetExternalSymbolSymbol(Name));
   73   auto *WasmSym = cast<MCSymbolWasm>(Printer.GetExternalSymbolSymbol(Name));
  149     const auto *WasmSym = cast<MCSymbolWasm>(Sym);
  149     const auto *WasmSym = cast<MCSymbolWasm>(Sym);
  172   auto *WasmSym = cast<MCSymbolWasm>(Sym);
  172   auto *WasmSym = cast<MCSymbolWasm>(Sym);