Home
last modified time | relevance | path

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

12345678

/external/llvm/include/llvm/CodeGen/
DMachineModuleInfoImpls.h45 StubValueTy &getFnStubEntry(MCSymbol *Sym) { in getFnStubEntry() argument
46 assert(Sym && "Key cannot be null"); in getFnStubEntry()
47 return FnStubs[Sym]; in getFnStubEntry()
50 StubValueTy &getGVStubEntry(MCSymbol *Sym) { in getGVStubEntry() argument
51 assert(Sym && "Key cannot be null"); in getGVStubEntry()
52 return GVStubs[Sym]; in getGVStubEntry()
55 StubValueTy &getHiddenGVStubEntry(MCSymbol *Sym) { in getHiddenGVStubEntry() argument
56 assert(Sym && "Key cannot be null"); in getHiddenGVStubEntry()
57 return HiddenGVStubs[Sym]; in getHiddenGVStubEntry()
83 StubValueTy &getGVStubEntry(MCSymbol *Sym) { in getGVStubEntry() argument
[all …]
/external/llvm/tools/obj2yaml/
Dcoff2yaml.cpp122 object::symbol_iterator Sym = Reloc.getSymbol(); in dumpSections() local
123 Sym->getName(Rel.SymbolName); in dumpSections()
134 dumpFunctionDefinition(COFFYAML::Symbol *Sym, in dumpFunctionDefinition() argument
142 Sym->FunctionDefinition = YAMLFD; in dumpFunctionDefinition()
146 dumpbfAndEfLineInfo(COFFYAML::Symbol *Sym, in dumpbfAndEfLineInfo() argument
152 Sym->bfAndefSymbol = YAMLAAS; in dumpbfAndEfLineInfo()
155 static void dumpWeakExternal(COFFYAML::Symbol *Sym, in dumpWeakExternal() argument
161 Sym->WeakExternal = YAMLWE; in dumpWeakExternal()
165 dumpSectionDefinition(COFFYAML::Symbol *Sym, in dumpSectionDefinition() argument
177 Sym->SectionDefinition = YAMLASD; in dumpSectionDefinition()
[all …]
/external/llvm/tools/dsymutil/
DDebugMap.cpp42 for (const auto &Sym : make_range(Symbols.begin(), Symbols.end())) in print() local
43 Entries.push_back(std::make_pair(Sym.getKey(), Sym.getValue())); in print()
47 for (const auto &Sym : Entries) { in print() local
49 Sym.second.ObjectAddress, Sym.second.BinaryAddress, in print()
50 Sym.second.Size, Sym.first.data()); in print()
66 StringMap<SymbolMapping>::const_iterator Sym = Symbols.find(SymbolName); in lookupSymbol() local
67 if (Sym == Symbols.end()) in lookupSymbol()
69 return &*Sym; in lookupSymbol()
DMachODebugMapParser.cpp199 for (auto Sym : CurrentObjectHolder.Get().symbols()) { in loadCurrentObjectFileSymbols() local
202 if (Sym.getAddress(Addr) || Addr == UnknownAddressOrSize || in loadCurrentObjectFileSymbols()
203 Sym.getName(Name)) in loadCurrentObjectFileSymbols()
213 auto Sym = MainBinarySymbolAddresses.find(Name); in getMainBinarySymbolAddress() local
214 if (Sym == MainBinarySymbolAddresses.end()) in getMainBinarySymbolAddress()
216 return Sym->second; in getMainBinarySymbolAddress()
224 for (const auto &Sym : MainBinary.symbols()) { in loadMainBinarySymbols() local
227 if (Sym.getType(Type) || (Type & SymbolRef::ST_Debug) || in loadMainBinarySymbols()
236 if (Sym.getAddress(Addr) || Addr == UnknownAddressOrSize || in loadMainBinarySymbols()
237 !(Sym.getFlags() & SymbolRef::SF_Global) || Sym.getSection(Section) || in loadMainBinarySymbols()
[all …]
/external/llvm/lib/Target/X86/MCTargetDesc/
DX86ELFRelocationInfo.cpp37 MCSymbol *Sym = Ctx.GetOrCreateSymbol(SymName); in createExprForRelocation() local
39 if (!Sym->isVariable()) in createExprForRelocation()
40 Sym->setVariableValue(MCConstantExpr::Create(SymAddr, Ctx)); in createExprForRelocation()
79 Expr = MCSymbolRefExpr::Create(Sym, Ctx); in createExprForRelocation()
88 Expr = MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_GOT, Ctx); in createExprForRelocation()
93 Expr = MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_PLT, Ctx); in createExprForRelocation()
98 Expr = MCSymbolRefExpr::Create(Sym, Ctx); in createExprForRelocation()
104 Expr = MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_GOTPCREL, Ctx); in createExprForRelocation()
108 Expr = MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_GOTOFF, Ctx); in createExprForRelocation()
119 Expr = MCSymbolRefExpr::Create(Sym, Ctx); in createExprForRelocation()
DX86MachORelocationInfo.cpp39 MCSymbol *Sym = Ctx.GetOrCreateSymbol(SymName); in createExprForRelocation() local
41 if (!Sym->isVariable()) in createExprForRelocation()
42 Sym->setVariableValue(MCConstantExpr::Create(SymAddr, Ctx)); in createExprForRelocation()
47 Expr = MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_TLVP, Ctx); in createExprForRelocation()
50 Expr = MCBinaryExpr::CreateAdd(MCSymbolRefExpr::Create(Sym, Ctx), in createExprForRelocation()
55 Expr = MCBinaryExpr::CreateAdd(MCSymbolRefExpr::Create(Sym, Ctx), in createExprForRelocation()
60 Expr = MCBinaryExpr::CreateAdd(MCSymbolRefExpr::Create(Sym, Ctx), in createExprForRelocation()
65 Expr = MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_GOTPCREL, Ctx); in createExprForRelocation()
68 Expr = MCSymbolRefExpr::Create(Sym, isPCRel ? in createExprForRelocation()
87 const MCExpr *LHS = MCSymbolRefExpr::Create(Sym, Ctx); in createExprForRelocation()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DSimpleConstraintManager.cpp99 SymbolRef Sym, bool Assumption) { in assumeAuxForSymbol() argument
101 QualType T = Sym->getType(); in assumeAuxForSymbol()
109 return assumeSymNE(State, Sym, zero, zero); in assumeAuxForSymbol()
111 return assumeSymEQ(State, Sym, zero, zero); in assumeAuxForSymbol()
193 static void computeAdjustment(SymbolRef &Sym, llvm::APSInt &Adjustment) { in computeAdjustment() argument
195 if (const SymIntExpr *SE = dyn_cast<SymIntExpr>(Sym)) { in computeAdjustment()
198 Sym = SE->getLHS(); in computeAdjustment()
228 SymbolRef Sym = LHS; in assumeSymRel() local
230 computeAdjustment(Sym, Adjustment); in assumeSymRel()
246 return assumeSymEQ(state, Sym, ConvertedInt, Adjustment); in assumeSymRel()
[all …]
DConstraintManager.cpp22 SymbolRef Sym) { in getLocFromSymbol() argument
24 .getSymbolicRegion(Sym); in getLocFromSymbol()
29 SymbolRef Sym) { in checkNull() argument
30 QualType Ty = Sym->getType(); in checkNull()
31 DefinedSVal V = Loc::isLocType(Ty) ? getLocFromSymbol(State, Sym) in checkNull()
32 : nonloc::SymbolVal(Sym); in checkNull()
DRangeConstraintManager.cpp317 ConditionTruthVal checkNull(ProgramStateRef State, SymbolRef Sym) override;
343 SymbolRef Sym) { in checkNull() argument
344 const RangeSet *Ranges = State->get<ConstraintRange>(Sym); in checkNull()
355 APSIntType IntType = BV.getAPSIntType(Sym->getType()); in checkNull()
419 RangeConstraintManager::assumeSymNE(ProgramStateRef St, SymbolRef Sym, in assumeSymNE() argument
434 RangeSet New = GetRange(St, Sym).Intersect(getBasicVals(), F, Upper, Lower); in assumeSymNE()
435 return New.isEmpty() ? nullptr : St->set<ConstraintRange>(Sym, New); in assumeSymNE()
439 RangeConstraintManager::assumeSymEQ(ProgramStateRef St, SymbolRef Sym, in assumeSymEQ() argument
449 RangeSet New = GetRange(St, Sym).Intersect(getBasicVals(), F, AdjInt, AdjInt); in assumeSymEQ()
450 return New.isEmpty() ? nullptr : St->set<ConstraintRange>(Sym, New); in assumeSymEQ()
[all …]
DProgramState.cpp357 SymbolRef Sym = V.getAsSymbol(/* IncludeBaseRegion */ true); in isNull() local
358 if (!Sym) in isNull()
361 return getStateManager().ConstraintMgr->isNull(this, Sym); in isNull()
570 if (SymbolRef Sym = val.getAsSymbol()) in scan() local
571 return scan(Sym); in scan()
573 if (const SymExpr *Sym = val.getAsSymbolicExpression()) in scan() local
574 return scan(Sym); in scan()
657 SymbolRef Sym = getSVal(S, LCtx).getAsSymbol(); in addTaint() local
658 if (Sym) in addTaint()
659 return addTaint(Sym, Kind); in addTaint()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DMallocChecker.cpp321 bool isReleased(SymbolRef Sym, CheckerContext &C) const;
323 bool checkUseAfterFree(SymbolRef Sym, CheckerContext &C, const Stmt *S) const;
325 void checkUseZeroAllocated(SymbolRef Sym, CheckerContext &C,
328 bool checkDoubleDelete(SymbolRef Sym, CheckerContext &C) const;
360 Optional<CheckKind> getCheckIfTracked(CheckerContext &C, SymbolRef Sym,
371 SymbolRef Sym, bool OwnershipTransferred) const;
376 SymbolRef Sym) const;
378 SymbolRef Sym, SymbolRef PrevSym) const;
380 void ReportDoubleDelete(CheckerContext &C, SymbolRef Sym) const;
383 SymbolRef Sym) const;
[all …]
DRetainCountChecker.cpp364 SymbolRef Sym) { in REGISTER_MAP_WITH_PROGRAMSTATE()
365 return State->get<RefBindings>(Sym); in REGISTER_MAP_WITH_PROGRAMSTATE()
369 SymbolRef Sym, RefVal Val) { in setRefBinding() argument
370 return State->set<RefBindings>(Sym, Val); in setRefBinding()
373 static ProgramStateRef removeRefBinding(ProgramStateRef State, SymbolRef Sym) { in removeRefBinding() argument
374 return State->remove<RefBindings>(Sym); in removeRefBinding()
1484 if (SymbolRef Sym = ReceiverV.getAsLocSymbol()) in getInstanceMethodSummary() local
1485 if (const RefVal *T = getRefBinding(State, Sym)) in getInstanceMethodSummary()
1726 SymbolRef Sym; member in __anonbe000e510611::CFRefReportVisitor
1732 : Sym(sym), SummaryLog(log), GCEnabled(gcEnabled) {} in CFRefReportVisitor()
[all …]
DSimpleStreamChecker.cpp172 static bool isLeaked(SymbolRef Sym, const StreamState &SS, in isLeaked() argument
178 ConditionTruthVal OpenFailed = CMgr.isNull(State, Sym); in isLeaked()
191 SymbolRef Sym = I->first; in checkDeadSymbols() local
192 bool IsSymDead = SymReaper.isDead(Sym); in checkDeadSymbols()
195 if (isLeaked(Sym, I->second, IsSymDead, State)) in checkDeadSymbols()
196 LeakedStreams.push_back(Sym); in checkDeadSymbols()
200 State = State->remove<StreamMap>(Sym); in checkDeadSymbols()
267 SymbolRef Sym = *I; in checkPointerEscape() local
271 State = State->remove<StreamMap>(Sym); in checkPointerEscape()
/external/llvm/tools/yaml2obj/
Dyaml2elf.cpp260 Elf_Sym Sym; in initSymtabSectionHeader() local
261 zero(Sym); in initSymtabSectionHeader()
262 Syms.push_back(Sym); in initSymtabSectionHeader()
266 for (const auto &Sym : Doc.Symbols.Local) in initSymtabSectionHeader() local
267 DotStrtab.add(Sym.Name); in initSymtabSectionHeader()
268 for (const auto &Sym : Doc.Symbols.Global) in initSymtabSectionHeader() local
269 DotStrtab.add(Sym.Name); in initSymtabSectionHeader()
270 for (const auto &Sym : Doc.Symbols.Weak) in initSymtabSectionHeader() local
271 DotStrtab.add(Sym.Name); in initSymtabSectionHeader()
299 for (const auto &Sym : Symbols) { in addSymbols() local
[all …]
/external/llvm/lib/Target/Sparc/MCTargetDesc/
DSparcMCAsmInfo.cpp49 SparcELFMCAsmInfo::getExprForPersonalitySymbol(const MCSymbol *Sym, in getExprForPersonalitySymbol() argument
55 MCSymbolRefExpr::Create(Sym, Ctx), Ctx); in getExprForPersonalitySymbol()
58 return MCAsmInfo::getExprForPersonalitySymbol(Sym, Encoding, Streamer); in getExprForPersonalitySymbol()
62 SparcELFMCAsmInfo::getExprForFDESymbol(const MCSymbol *Sym, in getExprForFDESymbol() argument
68 MCSymbolRefExpr::Create(Sym, Ctx), Ctx); in getExprForFDESymbol()
70 return MCAsmInfo::getExprForFDESymbol(Sym, Encoding, Streamer); in getExprForFDESymbol()
/external/llvm/lib/MC/
DMCContext.cpp107 MCSymbol *&Sym = Symbols[NameRef]; in GetOrCreateSymbol() local
108 if (!Sym) in GetOrCreateSymbol()
109 Sym = CreateSymbol(NameRef, false); in GetOrCreateSymbol()
111 return Sym; in GetOrCreateSymbol()
115 MCSymbol *&Sym = SectionSymbols[&Section]; in getOrCreateSectionSymbol() local
116 if (Sym) in getOrCreateSectionSymbol()
117 return Sym; in getOrCreateSectionSymbol()
123 Sym = OldSym; in getOrCreateSectionSymbol()
128 Sym = new (*this) MCSymbol(NameIter->getKey(), /*isTemporary*/ false); in getOrCreateSectionSymbol()
131 OldSym = Sym; in getOrCreateSectionSymbol()
[all …]
DMCAsmInfo.cpp119 MCAsmInfo::getExprForPersonalitySymbol(const MCSymbol *Sym, in getExprForPersonalitySymbol() argument
122 return getExprForFDESymbol(Sym, Encoding, Streamer); in getExprForPersonalitySymbol()
126 MCAsmInfo::getExprForFDESymbol(const MCSymbol *Sym, in getExprForFDESymbol() argument
130 return MCSymbolRefExpr::Create(Sym, Streamer.getContext()); in getExprForFDESymbol()
133 const MCExpr *Res = MCSymbolRefExpr::Create(Sym, Context); in getExprForFDESymbol()
DMCStreamer.cpp113 void MCStreamer::EmitSymbolValue(const MCSymbol *Sym, unsigned Size, in EmitSymbolValue() argument
119 EmitValueImpl(MCSymbolRefExpr::Create(Sym, getContext()), Size); in EmitSymbolValue()
121 EmitCOFFSecRel32(Sym); in EmitSymbolValue()
309 void MCStreamer::EmitCFIPersonality(const MCSymbol *Sym, in EmitCFIPersonality() argument
313 CurFrame->Personality = Sym; in EmitCFIPersonality()
317 void MCStreamer::EmitCFILsda(const MCSymbol *Sym, unsigned Encoding) { in EmitCFILsda() argument
320 CurFrame->Lsda = Sym; in EmitCFILsda()
442 void MCStreamer::EmitWinEHHandler(const MCSymbol *Sym, bool Unwind, in EmitWinEHHandler() argument
447 CurrentWinFrameInfo->ExceptionHandler = Sym; in EmitWinEHHandler()
594 void MCStreamer::visitUsedSymbol(const MCSymbol &Sym) { in visitUsedSymbol() argument
[all …]
/external/llvm/tools/llvm-objdump/
DCOFFDump.cpp161 resolveSectionAndAddress(const COFFObjectFile *Obj, const SymbolRef &Sym, in resolveSectionAndAddress() argument
164 if (std::error_code EC = Sym.getAddress(ResolvedAddr)) in resolveSectionAndAddress()
167 if (std::error_code EC = Sym.getSection(iter)) in resolveSectionAndAddress()
176 uint64_t Offset, SymbolRef &Sym) { in resolveSymbol() argument
184 Sym = *I->getSymbol(); in resolveSymbol()
199 SymbolRef Sym; in getSectionContents() local
200 if (std::error_code EC = resolveSymbol(Rels, Offset, Sym)) in getSectionContents()
203 if (std::error_code EC = resolveSectionAndAddress(Obj, Sym, Section, Addr)) in getSectionContents()
215 SymbolRef Sym; in resolveSymbolName() local
216 if (std::error_code EC = resolveSymbol(Rels, Offset, Sym)) in resolveSymbolName()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCMCInstLower.cpp69 MCSymbol *Sym = Ctx.GetOrCreateSymbol(Name); in GetSymbolFromOperand() local
76 getMachOMMI(AP).getFnStubEntry(Sym); in GetSymbolFromOperand()
78 return Sym; in GetSymbolFromOperand()
90 return Sym; in GetSymbolFromOperand()
100 MachO.getHiddenGVStubEntry(Sym) : MachO.getGVStubEntry(Sym); in GetSymbolFromOperand()
108 return Sym; in GetSymbolFromOperand()
111 return Sym; in GetSymbolFromOperand()
/external/llvm/lib/LTO/
DLTOModule.cpp355 void LTOModule::addDefinedDataSymbol(const object::BasicSymbolRef &Sym) { in addDefinedDataSymbol() argument
359 Sym.printName(OS); in addDefinedDataSymbol()
362 const GlobalValue *V = IRFile->getSymbolGV(Sym.getRawDataRefImpl()); in addDefinedDataSymbol()
416 void LTOModule::addDefinedFunctionSymbol(const object::BasicSymbolRef &Sym) { in addDefinedFunctionSymbol() argument
420 Sym.printName(OS); in addDefinedFunctionSymbol()
424 cast<Function>(IRFile->getSymbolGV(Sym.getRawDataRefImpl())); in addDefinedFunctionSymbol()
549 void LTOModule::addPotentialUndefinedSymbol(const object::BasicSymbolRef &Sym, in addPotentialUndefinedSymbol() argument
554 Sym.printName(OS); in addPotentialUndefinedSymbol()
567 const GlobalValue *decl = IRFile->getSymbolGV(Sym.getRawDataRefImpl()); in addPotentialUndefinedSymbol()
581 for (auto &Sym : IRFile->symbols()) { in parseSymbols() local
[all …]
/external/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMCExpr.cpp112 const MCSymbolRefExpr *Sym = Value.getSymA(); in EvaluateAsRelocatableImpl() local
113 MCSymbolRefExpr::VariantKind Modifier = Sym->getKind(); in EvaluateAsRelocatableImpl()
141 Sym = MCSymbolRefExpr::Create(&Sym->getSymbol(), Modifier, Context); in EvaluateAsRelocatableImpl()
142 Res = MCValue::get(Sym, Value.getSymB(), Value.getConstant()); in EvaluateAsRelocatableImpl()
/external/llvm/lib/Target/R600/
DAMDGPUMCInstLower.cpp72 MCSymbol *Sym = Ctx.GetOrCreateSymbol(StringRef(GV->getName())); in lower() local
73 MCOp = MCOperand::CreateExpr(MCSymbolRefExpr::Create(Sym, Ctx)); in lower()
78 MCSymbol *Sym = Ctx.GetOrCreateSymbol(StringRef(END_OF_TEXT_LABEL_NAME)); in lower() local
79 const MCSymbolRefExpr *Expr = MCSymbolRefExpr::Create(Sym, Ctx); in lower()
84 MCSymbol *Sym = Ctx.GetOrCreateSymbol(StringRef(MO.getSymbolName())); in lower() local
85 const MCSymbolRefExpr *Expr = MCSymbolRefExpr::Create(Sym, Ctx); in lower()
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldCOFF.cpp63 uint64_t RuntimeDyldCOFF::getSymbolOffset(const SymbolRef &Sym) { in getSymbolOffset() argument
65 if (Sym.getAddress(Address)) in getSymbolOffset()
71 const ObjectFile *Obj = Sym.getObject(); in getSymbolOffset()
73 if (Sym.getSection(SecI)) in getSymbolOffset()
/external/llvm/lib/ExecutionEngine/Orc/
DOrcMCJITReplacement.h241 if (auto Sym = LazyEmitLayer.findSymbol(Name, false)) in findMangledSymbol() local
242 return RuntimeDyld::SymbolInfo(Sym.getAddress(), Sym.getFlags()); in findMangledSymbol()
243 if (auto Sym = ClientResolver->findSymbol(Name)) in findMangledSymbol() local
244 return RuntimeDyld::SymbolInfo(Sym.getAddress(), Sym.getFlags()); in findMangledSymbol()
245 if (auto Sym = scanArchives(Name)) in findMangledSymbol() local
246 return RuntimeDyld::SymbolInfo(Sym.getAddress(), Sym.getFlags()); in findMangledSymbol()
268 if (auto Sym = ObjectLayer.findSymbol(Name, true)) in scanArchives() local
269 return Sym; in scanArchives()

12345678