Home
last modified time | relevance | path

Searched refs:SymbolRef (Results 1 – 25 of 100) sorted by relevance

1234

/external/llvm/include/llvm/Object/
DObjectFile.h33 class SymbolRef; variable
70 friend class SymbolRef; variable
98 bool containsSymbol(SymbolRef S) const;
113 class SymbolRef : public BasicSymbolRef {
117 SymbolRef() : BasicSymbolRef() {} in SymbolRef() function
128 SymbolRef(DataRefImpl SymbolP, const ObjectFile *Owner);
129 SymbolRef(const BasicSymbolRef &B) : BasicSymbolRef(B) { in SymbolRef() function
145 SymbolRef::Type getType() const;
156 symbol_iterator(SymbolRef Sym) : basic_symbol_iterator(Sym) {} in symbol_iterator()
158 : basic_symbol_iterator(SymbolRef(B->getRawDataRefImpl(), in symbol_iterator()
[all …]
DELFObjectFile.h102 class ELFSymbolRef : public SymbolRef {
104 ELFSymbolRef(const SymbolRef &B) : SymbolRef(B) { in ELFSymbolRef()
105 assert(isa<ELFObjectFileBase>(SymbolRef::getObject())); in ELFSymbolRef()
128 : symbol_iterator(SymbolRef(B->getRawDataRefImpl(), in elf_symbol_iterator()
208 SymbolRef::Type getSymbolType(DataRefImpl Symb) const override;
448 SymbolRef::Type ELFObjectFile<ELFT>::getSymbolType(DataRefImpl Symb) const { in getSymbolType()
453 return SymbolRef::ST_Unknown; in getSymbolType()
455 return SymbolRef::ST_Debug; in getSymbolType()
457 return SymbolRef::ST_File; in getSymbolType()
459 return SymbolRef::ST_Function; in getSymbolType()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DSimpleConstraintManager.h53 SymbolRef Sym,
67 virtual ProgramStateRef assumeSymNE(ProgramStateRef state, SymbolRef sym,
71 virtual ProgramStateRef assumeSymEQ(ProgramStateRef state, SymbolRef sym,
75 virtual ProgramStateRef assumeSymLT(ProgramStateRef state, SymbolRef sym,
79 virtual ProgramStateRef assumeSymGT(ProgramStateRef state, SymbolRef sym,
83 virtual ProgramStateRef assumeSymLE(ProgramStateRef state, SymbolRef sym,
87 virtual ProgramStateRef assumeSymGE(ProgramStateRef state, SymbolRef sym,
93 ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From,
97 ProgramStateRef state, SymbolRef Sym, const llvm::APSInt &From,
113 SymbolRef Sym,
DRangeConstraintManager.cpp290 CLANG_ENTO_PROGRAMSTATE_MAP(SymbolRef,
295 RangeSet GetRange(ProgramStateRef state, SymbolRef sym);
300 ProgramStateRef assumeSymNE(ProgramStateRef state, SymbolRef sym,
304 ProgramStateRef assumeSymEQ(ProgramStateRef state, SymbolRef sym,
308 ProgramStateRef assumeSymLT(ProgramStateRef state, SymbolRef sym,
312 ProgramStateRef assumeSymGT(ProgramStateRef state, SymbolRef sym,
316 ProgramStateRef assumeSymGE(ProgramStateRef state, SymbolRef sym,
320 ProgramStateRef assumeSymLE(ProgramStateRef state, SymbolRef sym,
325 ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From,
329 ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From,
[all …]
DSimpleConstraintManager.cpp99 SymbolRef Sym, bool Assumption) { in assumeAuxForSymbol()
122 SymbolRef sym = Cond.getAsSymExpr(); in assumeAux()
132 SymbolRef sym = SV.getSymbol(); in assumeAux()
166 SymbolRef Subtraction = SymMgr.getSymSymExpr(SSE->getRHS(), BO_Sub, in assumeAux()
203 SymbolRef Sym = Value.getAsSymExpr(); in assumeWithinInclusiveRange()
215 if (SymbolRef Sym = Value.getAsSymbol()) in assumeWithinInclusiveRange()
229 static void computeAdjustment(SymbolRef &Sym, llvm::APSInt &Adjustment) { in computeAdjustment()
264 SymbolRef Sym = LHS; in assumeSymRel()
303 SymbolRef Sym, in assumeSymWithinInclusiveRange()
312 SymbolRef AdjustedSym = Sym; in assumeSymWithinInclusiveRange()
DSymbolManager.cpp109 SymbolRef SymExpr::symbol_iterator::operator*() { in operator *()
186 SymbolManager::getDerivedSymbol(SymbolRef parentSymbol, in getDerivedSymbol()
347 void SymbolManager::addSymbolDependency(const SymbolRef Primary, in addSymbolDependency()
348 const SymbolRef Dependent) { in addSymbolDependency()
361 const SymbolRef Primary) { in getDependentSymbols()
368 void SymbolReaper::markDependentsLive(SymbolRef sym) { in markDependentsLive()
386 void SymbolReaper::markLive(SymbolRef sym) { in markLive()
408 void SymbolReaper::markInUse(SymbolRef sym) { in markInUse()
413 bool SymbolReaper::maybeDead(SymbolRef sym) { in maybeDead()
452 bool SymbolReaper::isLive(SymbolRef sym) { in isLive()
DSVals.cpp34 SymbolRef sym = SV->getSymbol(); in hasConjuredSymbol()
42 SymbolRef sym = SR->getSymbol(); in hasConjuredSymbol()
69 SymbolRef SVal::getAsLocSymbol(bool IncludeBaseRegions) const { in getAsLocSymbol()
85 SymbolRef SVal::getLocSymbolInBase() const { in getLocSymbolInBase()
111 SymbolRef SVal::getAsSymbol(bool IncludeBaseRegion) const { in getAsSymbol()
DConstraintManager.cpp22 SymbolRef Sym) { in getLocFromSymbol()
29 SymbolRef Sym) { in checkNull()
/external/clang/lib/StaticAnalyzer/Checkers/
DSimpleStreamChecker.cpp28 typedef SmallVector<SymbolRef, 2> SymbolVector;
62 void reportDoubleClose(SymbolRef FileDescSym,
66 void reportLeaks(ArrayRef<SymbolRef> LeakedStreams, CheckerContext &C,
92 REGISTER_MAP_WITH_PROGRAMSTATE(StreamMap, SymbolRef, StreamState)
101 bool VisitSymbol(SymbolRef sym) override { in VisitSymbol()
131 SymbolRef FileDesc = Call.getReturnValue().getAsSymbol(); in checkPostCall()
155 SymbolRef FileDesc = Call.getArgSVal(0).getAsSymbol(); in checkPreCall()
172 static bool isLeaked(SymbolRef Sym, const StreamState &SS, in isLeaked()
191 SymbolRef Sym = I->first; in checkDeadSymbols()
209 void SimpleStreamChecker::reportDoubleClose(SymbolRef FileDescSym, in reportDoubleClose()
[all …]
DMacOSKeychainAPIChecker.cpp40 SymbolRef Region;
42 AllocationState(const Expr *E, unsigned int Idx, SymbolRef R) : in AllocationState()
62 typedef std::pair<SymbolRef, const AllocationState*> AllocationPair;
103 const ExplodedNode *getAllocationNode(const ExplodedNode *N, SymbolRef Sym,
110 bool definitelyReturnedError(SymbolRef RetSym,
116 bool definitelyDidnotReturnError(SymbolRef RetSym, in definitelyDidnotReturnError()
135 SymbolRef Sym;
138 SecKeychainBugVisitor(SymbolRef S) : Sym(S) {} in SecKeychainBugVisitor()
158 SymbolRef, in REGISTER_MAP_WITH_PROGRAMSTATE() argument
214 static SymbolRef getAsPointeeSymbol(const Expr *Expr, in getAsPointeeSymbol()
[all …]
DMallocChecker.cpp140 SymbolRef ReallocatedSym;
143 ReallocPair(SymbolRef S, ReallocPairKind K) : in ReallocPair()
321 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;
342 SymbolRef &EscapingSymbol) const;
360 Optional<CheckKind> getCheckIfTracked(CheckerContext &C, SymbolRef Sym,
371 SymbolRef Sym, bool OwnershipTransferred) const;
376 SymbolRef Sym) const;
[all …]
DObjCContainersChecker.cpp41 inline SymbolRef getArraySym(const Expr *E, CheckerContext &C) const { in getArraySym()
43 SymbolRef ArraySym = ArrayRef.getAsSymbol(); in getArraySym()
64 REGISTER_MAP_WITH_PROGRAMSTATE(ArraySizeMap, SymbolRef, DefinedSVal) in REGISTER_MAP_WITH_PROGRAMSTATE() argument
76 SymbolRef ArraySym = ArrayRef.getAsSymbol(); in REGISTER_MAP_WITH_PROGRAMSTATE()
121 SymbolRef ArraySym = getArraySym(ArrayExpr, C); in checkPreStmt()
162 SymbolRef Sym = *I; in checkPointerEscape()
DRetainCountChecker.cpp362 REGISTER_MAP_WITH_PROGRAMSTATE(RefBindings, SymbolRef, RefVal) in REGISTER_MAP_WITH_PROGRAMSTATE() argument
365 SymbolRef Sym) { in REGISTER_MAP_WITH_PROGRAMSTATE()
370 SymbolRef Sym, RefVal Val) { in setRefBinding()
374 static ProgramStateRef removeRefBinding(ProgramStateRef State, SymbolRef Sym) { in removeRefBinding()
1507 if (SymbolRef Sym = ReceiverV.getAsLocSymbol()) in getInstanceMethodSummary()
1749 SymbolRef Sym;
1754 CFRefReportVisitor(SymbolRef sym, bool gcEnabled, const SummaryLogTy &log) in CFRefReportVisitor()
1775 CFRefLeakReportVisitor(SymbolRef sym, bool GCEnabled, in CFRefLeakReportVisitor()
1798 const SummaryLogTy &Log, ExplodedNode *n, SymbolRef sym, in CFRefReport()
1807 const SummaryLogTy &Log, ExplodedNode *n, SymbolRef sym, in CFRefReport()
[all …]
DTestAfterDivZeroChecker.cpp29 SymbolRef ZeroSymbol;
34 ZeroState(SymbolRef S, unsigned B, const StackFrameContext *SFC) in ZeroState()
60 SymbolRef ZeroSymbol;
65 DivisionBRVisitor(SymbolRef ZeroSymbol, const StackFrameContext *SFC) in DivisionBRVisitor()
149 SymbolRef SR = Var.getAsSymbol(); in setDivZeroMap()
161 SymbolRef SR = Var.getAsSymbol(); in hasDivZeroMap()
DDynamicTypePropagation.cpp46 REGISTER_MAP_WITH_PROGRAMSTATE(MostSpecializedTypeArgsMap, SymbolRef,
78 GenericsBugVisitor(SymbolRef S) : Sym(S) {} in GenericsBugVisitor()
93 SymbolRef Sym;
98 SymbolRef Sym, CheckerContext &C,
442 storeWhenMoreInformative(ProgramStateRef &State, SymbolRef Sym, in storeWhenMoreInformative()
530 SymbolRef Sym = State->getSVal(CE, C.getLocationContext()).getAsSymbol(); in checkPostStmt()
684 SymbolRef Sym = M.getReceiverSVal().getAsSymbol(); in checkPreObjCMessage()
732 SymbolRef ArgSym = ArgSVal.getAsSymbol(); in checkPreObjCMessage()
764 SymbolRef RetSym = M.getReturnValue().getAsSymbol(); in checkPostObjCMessage()
794 SymbolRef RecSym = M.getReceiverSVal().getAsSymbol(); in checkPostObjCMessage()
[all …]
/external/llvm/lib/DebugInfo/Symbolize/
DSymbolizableObjectFile.cpp55 std::vector<std::pair<SymbolRef, uint64_t>> Symbols = in create()
118 std::error_code SymbolizableObjectFile::addSymbol(const SymbolRef &Symbol, in addSymbol()
122 SymbolRef::Type SymbolType = Symbol.getType(); in addSymbol()
123 if (SymbolType != SymbolRef::ST_Function && SymbolType != SymbolRef::ST_Data) in addSymbol()
150 auto &M = SymbolType == SymbolRef::ST_Function ? Functions : Objects; in addSymbol()
168 bool SymbolizableObjectFile::getNameFromSymbolTable(SymbolRef::Type Type, in getNameFromSymbolTable()
173 const auto &SymbolMap = Type == SymbolRef::ST_Function ? Functions : Objects; in getNameFromSymbolTable()
212 if (getNameFromSymbolTable(SymbolRef::ST_Function, ModuleOffset, in symbolizeCode()
235 if (getNameFromSymbolTable(SymbolRef::ST_Function, ModuleOffset, in symbolizeInlinedCode()
247 getNameFromSymbolTable(SymbolRef::ST_Data, ModuleOffset, Res.Name, Res.Start, in symbolizeData()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSymbolManager.h98 typedef const SymExpr* SymbolRef; typedef
99 typedef SmallVector<SymbolRef, 2> SymbolRefSmallVectorTy;
201 SymbolRef parentSymbol;
205 SymbolDerived(SymbolID sym, SymbolRef parent, const TypedValueRegion *r) in SymbolDerived()
208 SymbolRef getParentSymbol() const { return parentSymbol; } in getParentSymbol()
215 static void Profile(llvm::FoldingSetNodeID& profile, SymbolRef parent, in Profile()
473 typedef llvm::DenseMap<SymbolRef, SymbolRefSmallVectorTy*> SymbolDependTy;
510 const SymbolDerived *getDerivedSymbol(SymbolRef parentSymbol,
548 void addSymbolDependency(const SymbolRef Primary, const SymbolRef Dependent);
550 const SymbolRefSmallVectorTy *getDependentSymbols(const SymbolRef Primary);
[all …]
DConstraintManager.h137 SymbolRef sym) const { in getSymVal()
153 ConditionTruthVal isNull(ProgramStateRef State, SymbolRef Sym) { in isNull()
177 virtual ConditionTruthVal checkNull(ProgramStateRef State, SymbolRef Sym);
/external/llvm/lib/Object/
DSymbolSize.cpp40 static unsigned getSymbolSectionID(const ObjectFile &O, SymbolRef Sym) { in getSymbolSectionID()
46 std::vector<std::pair<SymbolRef, uint64_t>>
48 std::vector<std::pair<SymbolRef, uint64_t>> Ret; in computeSymbolSizes()
64 SymbolRef Sym = *I; in computeSymbolSizes()
DCOFFObjectFile.cpp182 SymbolRef::Type COFFObjectFile::getSymbolType(DataRefImpl Ref) const { in getSymbolType()
187 return SymbolRef::ST_Function; in getSymbolType()
189 return SymbolRef::ST_Unknown; in getSymbolType()
191 return SymbolRef::ST_Data; in getSymbolType()
193 return SymbolRef::ST_File; in getSymbolType()
197 return SymbolRef::ST_Debug; in getSymbolType()
200 return SymbolRef::ST_Data; in getSymbolType()
202 return SymbolRef::ST_Other; in getSymbolType()
207 uint32_t Result = SymbolRef::SF_None; in getSymbolFlags()
210 Result |= SymbolRef::SF_Global; in getSymbolFlags()
[all …]
/external/llvm/lib/ExecutionEngine/OProfileJIT/
DOProfileJITEventListener.cpp89 for (const std::pair<SymbolRef, uint64_t> &P : computeSymbolSizes(DebugObj)) { in NotifyObjectEmitted()
90 SymbolRef Sym = P.first; in NotifyObjectEmitted()
91 if (Sym.getType() != SymbolRef::ST_Function) in NotifyObjectEmitted()
131 if (I->getType() == SymbolRef::ST_Function) { in NotifyFreeingObject()
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyld.cpp128 static std::error_code getOffset(const SymbolRef &Sym, SectionRef Sec, in getOffset()
166 if (Flags & SymbolRef::SF_Common) in loadObjectImpl()
169 object::SymbolRef::Type SymType = I->getType(); in loadObjectImpl()
178 if (Flags & SymbolRef::SF_Weak) in loadObjectImpl()
180 if (Flags & SymbolRef::SF_Exported) in loadObjectImpl()
183 if (Flags & SymbolRef::SF_Absolute && in loadObjectImpl()
184 SymType != object::SymbolRef::ST_File) { in loadObjectImpl()
196 } else if (SymType == object::SymbolRef::ST_Function || in loadObjectImpl()
197 SymType == object::SymbolRef::ST_Data || in loadObjectImpl()
198 SymType == object::SymbolRef::ST_Unknown || in loadObjectImpl()
[all …]
/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMMCExpr.cpp32 if (Expr->getKind() != MCExpr::SymbolRef) in printImpl()
35 if (Expr->getKind() != MCExpr::SymbolRef) in printImpl()
/external/llvm/tools/llvm-nm/
Dllvm-nm.cpp194 bool ADefined = !(A.Sym.getFlags() & SymbolRef::SF_Undefined); in compareSymbolAddress()
195 bool BDefined = !(B.Sym.getFlags() & SymbolRef::SF_Undefined); in compareSymbolAddress()
252 if (SymFlags & SymbolRef::SF_Global) in darwinPrintSymbol()
254 if (SymFlags & SymbolRef::SF_Hidden) in darwinPrintSymbol()
256 if (SymFlags & SymbolRef::SF_Undefined) in darwinPrintSymbol()
263 if(SymFlags & SymbolRef::SF_Const) in darwinPrintSymbol()
274 if (SymFlags & SymbolRef::SF_Weak) in darwinPrintSymbol()
583 bool Undefined = SymFlags & SymbolRef::SF_Undefined; in sortAndPrintSymbolList()
588 bool Global = SymFlags & SymbolRef::SF_Global; in sortAndPrintSymbolList()
819 if ((Symflags & object::SymbolRef::SF_Weak) && !isa<MachOObjectFile>(Obj)) { in getNMTypeChar()
[all …]
/external/llvm/tools/dsymutil/
DMachODebugMapParser.cpp152 for (const SymbolRef &Symbol : MainBinary.symbols()) { in parseOneBinary()
276 for (const SymbolRef &Symbol : MainBinary.symbols()) { in dumpOneBinaryStab()
415 if (Sym.getFlags() & SymbolRef::SF_Absolute) in loadCurrentObjectFileSymbols()
439 SymbolRef::Type Type = Sym.getType(); in loadMainBinarySymbols()
441 if ((Type & SymbolRef::ST_Debug) || (Type & SymbolRef::ST_Unknown)) in loadMainBinarySymbols()
447 if (!(Sym.getFlags() & SymbolRef::SF_Global)) in loadMainBinarySymbols()

1234