Home
last modified time | relevance | path

Searched refs:Sym (Results 1 – 25 of 968) sorted by relevance

12345678910>>...39

/external/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/
DWebAssemblyTargetStreamer.cpp63 void WebAssemblyTargetAsmStreamer::emitFunctionType(const MCSymbolWasm *Sym) { in emitFunctionType() argument
64 assert(Sym->isFunction()); in emitFunctionType()
65 OS << "\t.functype\t" << Sym->getName() << " "; in emitFunctionType()
66 OS << WebAssembly::signatureToString(Sym->getSignature()); in emitFunctionType()
70 void WebAssemblyTargetAsmStreamer::emitGlobalType(const MCSymbolWasm *Sym) { in emitGlobalType() argument
71 assert(Sym->isGlobal()); in emitGlobalType()
72 OS << "\t.globaltype\t" << Sym->getName() << ", " in emitGlobalType()
74 static_cast<wasm::ValType>(Sym->getGlobalType().Type)); in emitGlobalType()
75 if (!Sym->getGlobalType().Mutable) in emitGlobalType()
80 void WebAssemblyTargetAsmStreamer::emitTableType(const MCSymbolWasm *Sym) { in emitTableType() argument
[all …]
DWebAssemblyTargetStreamer.h37 virtual void emitFunctionType(const MCSymbolWasm *Sym) = 0;
41 virtual void emitGlobalType(const MCSymbolWasm *Sym) = 0;
43 virtual void emitTableType(const MCSymbolWasm *Sym) = 0;
45 virtual void emitEventType(const MCSymbolWasm *Sym) = 0;
47 virtual void emitImportModule(const MCSymbolWasm *Sym,
50 virtual void emitImportName(const MCSymbolWasm *Sym,
53 virtual void emitExportName(const MCSymbolWasm *Sym,
69 void emitFunctionType(const MCSymbolWasm *Sym) override;
71 void emitGlobalType(const MCSymbolWasm *Sym) override;
72 void emitTableType(const MCSymbolWasm *Sym) override;
[all …]
/external/llvm-project/clang-tools-extra/clangd/unittests/
DTestIndex.cpp17 Symbol Sym; in symbol() local
18 Sym.ID = SymbolID(QName.str()); in symbol()
21 Sym.Name = QName; in symbol()
22 Sym.Scope = ""; in symbol()
24 Sym.Name = QName.substr(Pos + 2); in symbol()
25 Sym.Scope = QName.substr(0, Pos + 2); in symbol()
27 return Sym; in symbol()
41 Symbol Sym; in sym() local
45 Sym.Name = QName; in sym()
46 Sym.Scope = ""; in sym()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/JITLink/
DJITLink.cpp101 raw_ostream &operator<<(raw_ostream &OS, const Symbol &Sym) { in operator <<() argument
103 if (Sym.getName().empty()) in operator <<()
106 OS << Sym.getName(); in operator <<()
108 switch (Sym.getLinkage()) { in operator <<()
116 switch (Sym.getScope()) { in operator <<()
127 OS << (Sym.isLive() ? '+' : '-') in operator <<()
128 << ", size = " << formatv("{0:x8}", Sym.getSize()) in operator <<()
129 << ", addr = " << formatv("{0:x16}", Sym.getAddress()) << " (" in operator <<()
130 << formatv("{0:x16}", Sym.getAddressable().getAddress()) << " + " in operator <<()
131 << formatv("{0:x8}", Sym.getOffset()); in operator <<()
[all …]
DJITLinkGeneric.cpp263 for (auto *Sym : G->external_symbols()) { in getExternalSymbolNames() local
264 assert(Sym->getAddress() == 0 && in getExternalSymbolNames()
266 assert(Sym->getName() != StringRef() && Sym->getName() != "" && in getExternalSymbolNames()
269 Sym->getLinkage() == Linkage::Weak in getExternalSymbolNames()
272 UnresolvedExternals[Sym->getName()] = LookupFlags; in getExternalSymbolNames()
278 for (auto *Sym : G->external_symbols()) { in applyLookupResult() local
279 assert(Sym->getOffset() == 0 && in applyLookupResult()
281 assert(Sym->getAddress() == 0 && "Symbol already resolved"); in applyLookupResult()
282 assert(!Sym->isDefined() && "Symbol being resolved is already defined"); in applyLookupResult()
283 auto ResultI = Result.find(Sym->getName()); in applyLookupResult()
[all …]
/external/llvm-project/llvm/lib/ExecutionEngine/JITLink/
DJITLink.cpp103 raw_ostream &operator<<(raw_ostream &OS, const Symbol &Sym) { in operator <<() argument
105 if (Sym.getName().empty()) in operator <<()
108 OS << Sym.getName(); in operator <<()
110 switch (Sym.getLinkage()) { in operator <<()
118 switch (Sym.getScope()) { in operator <<()
129 OS << (Sym.isLive() ? '+' : '-') in operator <<()
130 << ", size = " << formatv("{0:x}", Sym.getSize()) in operator <<()
131 << ", addr = " << formatv("{0:x16}", Sym.getAddress()) << " (" in operator <<()
132 << formatv("{0:x16}", Sym.getAddressable().getAddress()) << " + " in operator <<()
133 << formatv("{0:x}", Sym.getOffset()); in operator <<()
[all …]
DJITLinkGeneric.cpp306 for (auto *Sym : G->external_symbols()) { in getExternalSymbolNames() local
307 assert(Sym->getAddress() == 0 && in getExternalSymbolNames()
309 assert(Sym->getName() != StringRef() && Sym->getName() != "" && in getExternalSymbolNames()
312 Sym->getLinkage() == Linkage::Weak in getExternalSymbolNames()
315 UnresolvedExternals[Sym->getName()] = LookupFlags; in getExternalSymbolNames()
321 for (auto *Sym : G->external_symbols()) { in applyLookupResult() local
322 assert(Sym->getOffset() == 0 && in applyLookupResult()
324 assert(Sym->getAddress() == 0 && "Symbol already resolved"); in applyLookupResult()
325 assert(!Sym->isDefined() && "Symbol being resolved is already defined"); in applyLookupResult()
326 auto ResultI = Result.find(Sym->getName()); in applyLookupResult()
[all …]
/external/llvm-project/llvm/tools/llvm-jitlink/
Dllvm-jitlink-elf.cpp108 for (auto *Sym : Sec.symbols()) { in registerELFGraphInfo() local
109 if (Sym->getAddress() < FirstSym->getAddress()) in registerELFGraphInfo()
110 FirstSym = Sym; in registerELFGraphInfo()
111 if (Sym->getAddress() > LastSym->getAddress()) in registerELFGraphInfo()
112 LastSym = Sym; in registerELFGraphInfo()
115 if (Sym->isSymbolZeroFill()) in registerELFGraphInfo()
119 if (auto TS = getELFGOTTarget(G, Sym->getBlock())) in registerELFGraphInfo()
120 FileInfo.GOTEntryInfos[TS->getName()] = {Sym->getSymbolContent(), in registerELFGraphInfo()
121 Sym->getAddress()}; in registerELFGraphInfo()
126 if (Sym->isSymbolZeroFill()) in registerELFGraphInfo()
[all …]
Dllvm-jitlink-macho.cpp110 for (auto *Sym : Sec.symbols()) { in registerMachOGraphInfo() local
111 if (Sym->getAddress() < FirstSym->getAddress()) in registerMachOGraphInfo()
112 FirstSym = Sym; in registerMachOGraphInfo()
113 if (Sym->getAddress() > LastSym->getAddress()) in registerMachOGraphInfo()
114 LastSym = Sym; in registerMachOGraphInfo()
116 if (Sym->isSymbolZeroFill()) in registerMachOGraphInfo()
120 if (auto TS = getMachOGOTTarget(G, Sym->getBlock())) in registerMachOGraphInfo()
121 FileInfo.GOTEntryInfos[TS->getName()] = {Sym->getSymbolContent(), in registerMachOGraphInfo()
122 Sym->getAddress()}; in registerMachOGraphInfo()
127 if (Sym->isSymbolZeroFill()) in registerMachOGraphInfo()
[all …]
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DRangedConstraintManager.cpp24 SymbolRef Sym, in assumeSym() argument
27 if (isa<SymbolData>(Sym)) { in assumeSym()
28 return assumeSymUnsupported(State, Sym, Assumption); in assumeSym()
31 } else if (const SymIntExpr *SIE = dyn_cast<SymIntExpr>(Sym)) { in assumeSym()
42 } else if (const SymSymExpr *SSE = dyn_cast<SymSymExpr>(Sym)) { in assumeSym()
90 return assumeSymUnsupported(State, Sym, Assumption); in assumeSym()
94 ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From, in assumeSymInclusiveRange() argument
98 APSIntType WraparoundType = BVF.getAPSIntType(Sym->getType()); in assumeSymInclusiveRange()
101 SymbolRef AdjustedSym = Sym; in assumeSymInclusiveRange()
123 SymbolRef Sym, bool Assumption) { in assumeSymUnsupported() argument
[all …]
DRangeConstraintManager.cpp436 SymbolRef Sym);
467 getDisequalClasses(ProgramStateRef State, SymbolRef Sym);
505 /* implicit */ EquivalenceClass(SymbolRef Sym) in EquivalenceClass() argument
506 : ID(reinterpret_cast<uintptr_t>(Sym)) {} in EquivalenceClass()
542 SymbolRef Sym) { in getConstraint() argument
543 return getConstraint(State, EquivalenceClass::find(State, Sym)); in getConstraint()
568 static Optional<EqualityInfo> extract(SymbolRef Sym, const llvm::APSInt &Int, in extract()
574 return extract(Sym); in extract()
577 static Optional<EqualityInfo> extract(SymbolRef Sym) { in extract()
578 return EqualityExtractor().Visit(Sym); in extract()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/MCTargetDesc/
DWebAssemblyTargetStreamer.cpp63 void WebAssemblyTargetAsmStreamer::emitFunctionType(const MCSymbolWasm *Sym) { in emitFunctionType() argument
64 assert(Sym->isFunction()); in emitFunctionType()
65 OS << "\t.functype\t" << Sym->getName() << " "; in emitFunctionType()
66 OS << WebAssembly::signatureToString(Sym->getSignature()); in emitFunctionType()
70 void WebAssemblyTargetAsmStreamer::emitGlobalType(const MCSymbolWasm *Sym) { in emitGlobalType() argument
71 assert(Sym->isGlobal()); in emitGlobalType()
72 OS << "\t.globaltype\t" << Sym->getName() << ", " in emitGlobalType()
74 static_cast<wasm::ValType>(Sym->getGlobalType().Type)) in emitGlobalType()
78 void WebAssemblyTargetAsmStreamer::emitEventType(const MCSymbolWasm *Sym) { in emitEventType() argument
79 assert(Sym->isEvent()); in emitEventType()
[all …]
DWebAssemblyTargetStreamer.h38 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,
52 virtual void emitExportName(const MCSymbolWasm *Sym,
68 void emitFunctionType(const MCSymbolWasm *Sym) override;
70 void emitGlobalType(const MCSymbolWasm *Sym) override;
71 void emitEventType(const MCSymbolWasm *Sym) override;
72 void emitImportModule(const MCSymbolWasm *Sym, StringRef ImportModule) override;
[all …]
/external/llvm-project/clang-tools-extra/clangd/unittests/remote/
DMarshallingTests.cpp47 clangd::Symbol Sym; in createSymbol() local
48 Sym.ID = llvm::cantFail(SymbolID::fromStr("057557CEBF6E6B2D")); in createSymbol()
56 Sym.SymInfo = Info; in createSymbol()
58 Sym.Name = Strings.save("Foo"); in createSymbol()
59 Sym.Scope = Strings.save("llvm::foo::bar::"); in createSymbol()
67 Sym.Definition = Location; in createSymbol()
74 Sym.CanonicalDeclaration = Location; in createSymbol()
76 Sym.References = 9000; in createSymbol()
77 Sym.Origin = clangd::SymbolOrigin::Static; in createSymbol()
78 Sym.Signature = Strings.save("(int X, char Y, Type T)"); in createSymbol()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachineModuleInfoImpls.h43 StubValueTy &getGVStubEntry(MCSymbol *Sym) { in getGVStubEntry() argument
44 assert(Sym && "Key cannot be null"); in getGVStubEntry()
45 return GVStubs[Sym]; in getGVStubEntry()
48 StubValueTy &getThreadLocalGVStubEntry(MCSymbol *Sym) { in getThreadLocalGVStubEntry() argument
49 assert(Sym && "Key cannot be null"); in getThreadLocalGVStubEntry()
50 return ThreadLocalGVStubs[Sym]; in getThreadLocalGVStubEntry()
72 StubValueTy &getGVStubEntry(MCSymbol *Sym) { in getGVStubEntry() argument
73 assert(Sym && "Key cannot be null"); in getGVStubEntry()
74 return GVStubs[Sym]; in getGVStubEntry()
94 StubValueTy &getGVStubEntry(MCSymbol *Sym) { in getGVStubEntry() argument
[all …]
/external/llvm-project/llvm/include/llvm/CodeGen/
DMachineModuleInfoImpls.h43 StubValueTy &getGVStubEntry(MCSymbol *Sym) { in getGVStubEntry() argument
44 assert(Sym && "Key cannot be null"); in getGVStubEntry()
45 return GVStubs[Sym]; in getGVStubEntry()
48 StubValueTy &getThreadLocalGVStubEntry(MCSymbol *Sym) { in getThreadLocalGVStubEntry() argument
49 assert(Sym && "Key cannot be null"); in getThreadLocalGVStubEntry()
50 return ThreadLocalGVStubs[Sym]; in getThreadLocalGVStubEntry()
72 StubValueTy &getGVStubEntry(MCSymbol *Sym) { in getGVStubEntry() argument
73 assert(Sym && "Key cannot be null"); in getGVStubEntry()
74 return GVStubs[Sym]; in getGVStubEntry()
94 StubValueTy &getGVStubEntry(MCSymbol *Sym) { in getGVStubEntry() argument
[all …]
/external/llvm-project/llvm/tools/llvm-objcopy/COFF/
DReader.cpp95 Symbol &Sym = Symbols.back(); in readSymbols() local
98 copySymbol(Sym.Sym, in readSymbols()
101 copySymbol(Sym.Sym, in readSymbols()
106 Sym.Name = *NameOrErr; in readSymbols()
118 Sym.AuxFile = StringRef(reinterpret_cast<const char *>(AuxData.data()), in readSymbols()
123 Sym.AuxData.push_back(AuxData.slice(I * SymSize, sizeof(AuxSymbol))); in readSymbols()
128 Sym.TargetSectionId = SymRef.getSectionNumber(); in readSymbols()
131 Sym.TargetSectionId = Sections[SymRef.getSectionNumber() - 1].UniqueId; in readSymbols()
144 Sym.AssociativeComdatTargetSectionId = Sections[Index - 1].UniqueId; in readSymbols()
149 Sym.WeakTargetSymbolId = WE->TagIndex; in readSymbols()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/
DObjectLinkingLayer.cpp101 for (auto *Sym : G.defined_symbols()) in notifyResolved() local
102 if (Sym->hasName() && Sym->getScope() != Scope::Local) { in notifyResolved()
103 auto InternedName = ES.intern(Sym->getName()); in notifyResolved()
106 if (Sym->isCallable()) in notifyResolved()
108 if (Sym->getScope() == Scope::Default) in notifyResolved()
112 JITEvaluatedSymbol(Sym->getAddress(), Flags); in notifyResolved()
120 for (auto *Sym : G.absolute_symbols()) in notifyResolved() local
121 if (Sym->hasName()) { in notifyResolved()
122 auto InternedName = ES.intern(Sym->getName()); in notifyResolved()
125 if (Sym->isCallable()) in notifyResolved()
[all …]
/external/llvm-project/llvm/lib/DebugInfo/CodeView/
DSymbolRecordHelpers.cpp23 uint32_t llvm::codeview::getScopeEndOffset(const CVSymbol &Sym) { in getScopeEndOffset() argument
24 assert(symbolOpensScope(Sym.kind())); in getScopeEndOffset()
25 switch (Sym.kind()) { in getScopeEndOffset()
32 ProcSym Proc = createRecord<ProcSym>(Sym); in getScopeEndOffset()
36 BlockSym Block = createRecord<BlockSym>(Sym); in getScopeEndOffset()
40 Thunk32Sym Thunk = createRecord<Thunk32Sym>(Sym); in getScopeEndOffset()
44 InlineSiteSym Site = createRecord<InlineSiteSym>(Sym); in getScopeEndOffset()
54 llvm::codeview::getScopeParentOffset(const llvm::codeview::CVSymbol &Sym) { in getScopeParentOffset() argument
55 assert(symbolOpensScope(Sym.kind())); in getScopeParentOffset()
56 switch (Sym.kind()) { in getScopeParentOffset()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/
DSymbolRecordHelpers.cpp23 uint32_t llvm::codeview::getScopeEndOffset(const CVSymbol &Sym) { in getScopeEndOffset() argument
24 assert(symbolOpensScope(Sym.kind())); in getScopeEndOffset()
25 switch (Sym.kind()) { in getScopeEndOffset()
32 ProcSym Proc = createRecord<ProcSym>(Sym); in getScopeEndOffset()
36 BlockSym Block = createRecord<BlockSym>(Sym); in getScopeEndOffset()
40 Thunk32Sym Thunk = createRecord<Thunk32Sym>(Sym); in getScopeEndOffset()
44 InlineSiteSym Site = createRecord<InlineSiteSym>(Sym); in getScopeEndOffset()
54 llvm::codeview::getScopeParentOffset(const llvm::codeview::CVSymbol &Sym) { in getScopeParentOffset() argument
55 assert(symbolOpensScope(Sym.kind())); in getScopeParentOffset()
56 switch (Sym.kind()) { in getScopeParentOffset()
[all …]
/external/llvm/tools/obj2yaml/
Dcoff2yaml.cpp123 object::symbol_iterator Sym = Reloc.getSymbol(); in dumpSections() local
124 Expected<StringRef> SymbolNameOrErr = Sym->getName(); in dumpSections()
143 dumpFunctionDefinition(COFFYAML::Symbol *Sym, in dumpFunctionDefinition() argument
151 Sym->FunctionDefinition = YAMLFD; in dumpFunctionDefinition()
155 dumpbfAndEfLineInfo(COFFYAML::Symbol *Sym, in dumpbfAndEfLineInfo() argument
161 Sym->bfAndefSymbol = YAMLAAS; in dumpbfAndEfLineInfo()
164 static void dumpWeakExternal(COFFYAML::Symbol *Sym, in dumpWeakExternal() argument
170 Sym->WeakExternal = YAMLWE; in dumpWeakExternal()
174 dumpSectionDefinition(COFFYAML::Symbol *Sym, in dumpSectionDefinition() argument
186 Sym->SectionDefinition = YAMLASD; in dumpSectionDefinition()
[all …]
/external/llvm-project/llvm/lib/ExecutionEngine/Orc/
DObjectLinkingLayer.cpp109 for (auto *Sym : G.defined_symbols()) in notifyResolved() local
110 if (Sym->hasName() && Sym->getScope() != Scope::Local) { in notifyResolved()
111 auto InternedName = ES.intern(Sym->getName()); in notifyResolved()
114 if (Sym->isCallable()) in notifyResolved()
116 if (Sym->getScope() == Scope::Default) in notifyResolved()
120 JITEvaluatedSymbol(Sym->getAddress(), Flags); in notifyResolved()
128 for (auto *Sym : G.absolute_symbols()) in notifyResolved() local
129 if (Sym->hasName()) { in notifyResolved()
130 auto InternedName = ES.intern(Sym->getName()); in notifyResolved()
133 if (Sym->isCallable()) in notifyResolved()
[all …]
/external/llvm-project/llvm/lib/DebugInfo/PDB/Native/
DNativePublicSymbol.cpp20 const codeview::PublicSym32 &Sym) in NativePublicSymbol() argument
21 : NativeRawSymbol(Session, PDB_SymType::PublicSymbol, Id), Sym(Sym) {} in NativePublicSymbol()
34 uint32_t NativePublicSymbol::getAddressOffset() const { return Sym.Offset; } in getAddressOffset()
36 uint32_t NativePublicSymbol::getAddressSection() const { return Sym.Segment; } in getAddressSection()
39 return std::string(Sym.Name); in getName()
43 return Session.getRVAFromSectOffset(Sym.Segment, Sym.Offset); in getRelativeVirtualAddress()
47 return Session.getVAFromSectOffset(Sym.Segment, Sym.Offset); in getVirtualAddress()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DTaint.cpp50 SymbolRef Sym = V.getAsSymbol(); in addTaint() local
51 if (Sym) in addTaint()
52 return addTaint(State, Sym, Kind); in addTaint()
67 if (SymbolRef Sym = binding->getAsSymbol()) in addTaint() local
68 return addPartialTaint(State, Sym, LCV->getRegion(), Kind); in addTaint()
83 ProgramStateRef taint::addTaint(ProgramStateRef State, SymbolRef Sym, in addTaint() argument
87 while (const SymbolCast *SC = dyn_cast<SymbolCast>(Sym)) in addTaint()
88 Sym = SC->getOperand(); in addTaint()
90 ProgramStateRef NewState = State->set<TaintMap>(Sym, Kind); in addTaint()
96 SymbolRef Sym = V.getAsSymbol(); in removeTaint() local
[all …]
/external/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
DJITLink.h322 auto *Sym = reinterpret_cast<Symbol *>(SymStorage); in constructCommon() local
323 new (Sym) Symbol(Base, 0, Name, Size, Linkage::Weak, S, IsLive, false); in constructCommon()
324 return *Sym; in constructCommon()
334 auto *Sym = reinterpret_cast<Symbol *>(SymStorage); in constructExternal() local
335 new (Sym) Symbol(Base, 0, Name, Size, L, Scope::Default, false, false); in constructExternal()
336 return *Sym; in constructExternal()
345 auto *Sym = reinterpret_cast<Symbol *>(SymStorage); in constructAbsolute() local
346 new (Sym) Symbol(Base, 0, Name, Size, L, S, IsLive, false); in constructAbsolute()
347 return *Sym; in constructAbsolute()
357 auto *Sym = reinterpret_cast<Symbol *>(SymStorage); in constructAnonDef() local
[all …]

12345678910>>...39