Home
last modified time | relevance | path

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

123456789

/external/swiftshader/third_party/LLVM/include/llvm/Object/
DObjectFile.h83 class SymbolRef {
89 SymbolRef() : OwningObject(NULL) { in SymbolRef() function
100 SymbolRef(DataRefImpl SymbolP, const ObjectFile *Owner);
102 bool operator==(const SymbolRef &Other) const;
104 error_code getNext(SymbolRef &Result) const;
110 error_code getSymbolType(SymbolRef::SymbolType &Result) const;
126 typedef content_iterator<SymbolRef> symbol_iterator;
146 error_code getSymbol(SymbolRef &Result) const;
166 friend class SymbolRef; variable
194 error_code containsSymbol(SymbolRef S, bool &Result) const;
[all …]
/external/llvm/include/llvm/Object/
DObjectFile.h33 class SymbolRef; variable
70 friend class SymbolRef; variable
100 bool containsSymbol(SymbolRef S) const;
115 class SymbolRef : public BasicSymbolRef {
119 SymbolRef() : BasicSymbolRef() {} in SymbolRef() function
130 SymbolRef(DataRefImpl SymbolP, const ObjectFile *Owner);
131 SymbolRef(const BasicSymbolRef &B) : BasicSymbolRef(B) { in SymbolRef() function
147 Expected<SymbolRef::Type> getType() const;
158 symbol_iterator(SymbolRef Sym) : basic_symbol_iterator(Sym) {} in symbol_iterator()
160 : basic_symbol_iterator(SymbolRef(B->getRawDataRefImpl(), in symbol_iterator()
[all …]
DELFObjectFile.h110 class ELFSymbolRef : public SymbolRef {
112 ELFSymbolRef(const SymbolRef &B) : SymbolRef(B) { in ELFSymbolRef()
113 assert(isa<ELFObjectFileBase>(SymbolRef::getObject())); in ELFSymbolRef()
136 : symbol_iterator(SymbolRef(B->getRawDataRefImpl(), in elf_symbol_iterator()
217 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override;
461 Expected<SymbolRef::Type>
467 return SymbolRef::ST_Unknown; in getSymbolType()
469 return SymbolRef::ST_Debug; in getSymbolType()
471 return SymbolRef::ST_File; in getSymbolType()
473 return SymbolRef::ST_Function; in getSymbolType()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Object/
DObjectFile.h44 class SymbolRef; variable
82 friend class SymbolRef; variable
114 bool containsSymbol(SymbolRef S) const;
129 class SymbolRef : public BasicSymbolRef {
142 SymbolRef() = default;
143 SymbolRef(DataRefImpl SymbolP, const ObjectFile *Owner);
144 SymbolRef(const BasicSymbolRef &B) : BasicSymbolRef(B) { in SymbolRef() function
160 Expected<SymbolRef::Type> getType() const;
171 symbol_iterator(SymbolRef Sym) : basic_symbol_iterator(Sym) {} in symbol_iterator()
173 : basic_symbol_iterator(SymbolRef(B->getRawDataRefImpl(), in symbol_iterator()
[all …]
DIRSymtab.h247 class SymbolRef;
257 using symbol_range = iterator_range<object::content_iterator<SymbolRef>>;
291 class Reader::SymbolRef : public Symbol {
316 SymbolRef(const storage::Symbol *SymI, const storage::Symbol *SymE, in SymbolRef() function
329 bool operator==(const SymbolRef &Other) const { return SymI == Other.SymI; }
333 return {SymbolRef(Symbols.begin(), Symbols.end(), Uncommons.begin(), this), in symbols()
334 SymbolRef(Symbols.end(), Symbols.end(), nullptr, this)}; in symbols()
341 return {SymbolRef(MBegin, MEnd, Uncommons.begin() + M.UncBegin, this), in module_symbols()
342 SymbolRef(MEnd, MEnd, nullptr, this)}; in module_symbols()
DELFObjectFile.h129 class ELFSymbolRef : public SymbolRef {
131 ELFSymbolRef(const SymbolRef &B) : SymbolRef(B) { in ELFSymbolRef()
132 assert(isa<ELFObjectFileBase>(SymbolRef::getObject())); in ELFSymbolRef()
155 : symbol_iterator(SymbolRef(B->getRawDataRefImpl(), in elf_symbol_iterator()
242 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override;
541 Expected<SymbolRef::Type>
547 return SymbolRef::ST_Unknown; in getSymbolType()
549 return SymbolRef::ST_Debug; in getSymbolType()
551 return SymbolRef::ST_File; in getSymbolType()
553 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()
/external/clang/lib/StaticAnalyzer/Checkers/
DSimpleStreamChecker.cpp29 typedef SmallVector<SymbolRef, 2> SymbolVector;
60 void reportDoubleClose(SymbolRef FileDescSym,
64 void reportLeaks(ArrayRef<SymbolRef> LeakedStreams, CheckerContext &C,
90 REGISTER_MAP_WITH_PROGRAMSTATE(StreamMap, SymbolRef, StreamState)
99 bool VisitSymbol(SymbolRef sym) override { in VisitSymbol()
127 SymbolRef FileDesc = Call.getReturnValue().getAsSymbol(); in checkPostCall()
146 SymbolRef FileDesc = Call.getArgSVal(0).getAsSymbol(); in checkPreCall()
163 static bool isLeaked(SymbolRef Sym, const StreamState &SS, in isLeaked()
182 SymbolRef Sym = I->first; in checkDeadSymbols()
200 void SimpleStreamChecker::reportDoubleClose(SymbolRef FileDescSym, in reportDoubleClose()
[all …]
DCheckObjCDealloc.cpp133 bool diagnoseExtraRelease(SymbolRef ReleasedValue, const ObjCMethodCall &M,
136 bool diagnoseMistakenDealloc(SymbolRef DeallocedValue,
140 SymbolRef getValueReleasedByNillingOut(const ObjCMethodCall &M,
143 const ObjCIvarRegion *getIvarRegionForIvarSymbol(SymbolRef IvarSym) const;
144 SymbolRef getInstanceSymbolFromIvarSymbol(SymbolRef IvarSym) const;
147 findPropertyOnDeallocatingInstance(SymbolRef IvarSym,
166 void transitionToReleaseValue(CheckerContext &C, SymbolRef Value) const;
168 SymbolRef InstanceSym,
169 SymbolRef ValueSym) const;
179 typedef llvm::ImmutableSet<SymbolRef> SymbolSet;
[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
210 static SymbolRef getAsPointeeSymbol(const Expr *Expr, in getAsPointeeSymbol()
[all …]
DObjCSuperDeallocChecker.cpp54 void reportUseAfterDealloc(SymbolRef Sym, StringRef Desc, const Stmt *S,
62 REGISTER_SET_WITH_PROGRAMSTATE(CalledSuperDealloc, SymbolRef)
68 SymbolRef ReceiverSymbol;
72 SuperDeallocBRVisitor(SymbolRef ReceiverSymbol) in SuperDeallocBRVisitor()
91 SymbolRef ReceiverSymbol = M.getReceiverSVal().getAsSymbol(); in checkPreObjCMessage()
126 SymbolRef ReceiverSymbol = M.getSelfSVal().getAsSymbol(); in checkPostObjCMessage()
138 SymbolRef BaseSym = L.getLocSymbolInBase(); in checkLocation()
181 void ObjCSuperDeallocChecker::reportUseAfterDealloc(SymbolRef Sym, in reportUseAfterDealloc()
211 SymbolRef Sym = CE.getArgSVal(I).getAsSymbol(); in diagnoseCallArguments()
DMallocChecker.cpp141 SymbolRef ReallocatedSym;
144 ReallocPair(SymbolRef S, ReallocPairKind K) : in ReallocPair()
324 bool isReleased(SymbolRef Sym, CheckerContext &C) const;
326 bool checkUseAfterFree(SymbolRef Sym, CheckerContext &C, const Stmt *S) const;
328 void checkUseZeroAllocated(SymbolRef Sym, CheckerContext &C,
331 bool checkDoubleDelete(SymbolRef Sym, CheckerContext &C) const;
345 SymbolRef &EscapingSymbol) const;
363 Optional<CheckKind> getCheckIfTracked(CheckerContext &C, SymbolRef Sym,
374 SymbolRef Sym, bool OwnershipTransferred) const;
379 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()
120 SymbolRef ArraySym = getArraySym(ArrayExpr, C); in checkPreStmt()
DRetainCountChecker.cpp363 REGISTER_MAP_WITH_PROGRAMSTATE(RefBindings, SymbolRef, RefVal) in REGISTER_MAP_WITH_PROGRAMSTATE() argument
366 SymbolRef Sym) { in REGISTER_MAP_WITH_PROGRAMSTATE()
371 SymbolRef Sym, RefVal Val) { in setRefBinding()
375 static ProgramStateRef removeRefBinding(ProgramStateRef State, SymbolRef Sym) { in removeRefBinding()
1508 if (SymbolRef Sym = ReceiverV.getAsLocSymbol()) in getInstanceMethodSummary()
1750 SymbolRef Sym;
1755 CFRefReportVisitor(SymbolRef sym, bool gcEnabled, const SummaryLogTy &log) in CFRefReportVisitor()
1776 CFRefLeakReportVisitor(SymbolRef sym, bool GCEnabled, in CFRefLeakReportVisitor()
1799 const SummaryLogTy &Log, ExplodedNode *n, SymbolRef sym, in CFRefReport()
1808 const SummaryLogTy &Log, ExplodedNode *n, SymbolRef sym, in CFRefReport()
[all …]
/external/llvm/lib/DebugInfo/Symbolize/
DSymbolizableObjectFile.cpp56 std::vector<std::pair<SymbolRef, uint64_t>> Symbols = in create()
119 std::error_code SymbolizableObjectFile::addSymbol(const SymbolRef &Symbol, in addSymbol()
123 Expected<SymbolRef::Type> SymbolTypeOrErr = Symbol.getType(); in addSymbol()
126 SymbolRef::Type SymbolType = *SymbolTypeOrErr; in addSymbol()
127 if (SymbolType != SymbolRef::ST_Function && SymbolType != SymbolRef::ST_Data) in addSymbol()
154 auto &M = SymbolType == SymbolRef::ST_Function ? Functions : Objects; in addSymbol()
172 bool SymbolizableObjectFile::getNameFromSymbolTable(SymbolRef::Type Type, in getNameFromSymbolTable()
177 const auto &SymbolMap = Type == SymbolRef::ST_Function ? Functions : Objects; in getNameFromSymbolTable()
216 if (getNameFromSymbolTable(SymbolRef::ST_Function, ModuleOffset, in symbolizeCode()
239 if (getNameFromSymbolTable(SymbolRef::ST_Function, ModuleOffset, in symbolizeInlinedCode()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/Symbolize/
DSymbolizableObjectFile.cpp70 std::vector<std::pair<SymbolRef, uint64_t>> Symbols = in create()
136 std::error_code SymbolizableObjectFile::addSymbol(const SymbolRef &Symbol, in addSymbol()
140 Expected<SymbolRef::Type> SymbolTypeOrErr = Symbol.getType(); in addSymbol()
143 SymbolRef::Type SymbolType = *SymbolTypeOrErr; in addSymbol()
144 if (SymbolType != SymbolRef::ST_Function && SymbolType != SymbolRef::ST_Data) in addSymbol()
171 auto &M = SymbolType == SymbolRef::ST_Function ? Functions : Objects; in addSymbol()
189 bool SymbolizableObjectFile::getNameFromSymbolTable(SymbolRef::Type Type, in getNameFromSymbolTable()
194 const auto &SymbolMap = Type == SymbolRef::ST_Function ? Functions : Objects; in getNameFromSymbolTable()
233 if (getNameFromSymbolTable(SymbolRef::ST_Function, ModuleOffset, in symbolizeCode()
256 if (getNameFromSymbolTable(SymbolRef::ST_Function, ModuleOffset, in symbolizeInlinedCode()
[all …]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSymbolManager.h118 SymbolRef parentSymbol;
122 SymbolDerived(SymbolID sym, SymbolRef parent, const TypedValueRegion *r) in SymbolDerived()
125 SymbolRef getParentSymbol() const { return parentSymbol; } in getParentSymbol()
133 static void Profile(llvm::FoldingSetNodeID& profile, SymbolRef parent, in Profile()
391 typedef llvm::DenseMap<SymbolRef, SymbolRefSmallVectorTy*> SymbolDependTy;
428 const SymbolDerived *getDerivedSymbol(SymbolRef parentSymbol,
466 void addSymbolDependency(const SymbolRef Primary, const SymbolRef Dependent);
468 const SymbolRefSmallVectorTy *getDependentSymbols(const SymbolRef Primary);
481 typedef llvm::DenseSet<SymbolRef> SymbolSetTy;
482 typedef llvm::DenseMap<SymbolRef, SymbolStatus> SymbolMapTy;
[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/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DSymbolSize.cpp34 static unsigned getSymbolSectionID(const ObjectFile &O, SymbolRef Sym) { in getSymbolSectionID()
40 std::vector<std::pair<SymbolRef, uint64_t>>
42 std::vector<std::pair<SymbolRef, uint64_t>> Ret; in computeSymbolSizes()
58 SymbolRef Sym = *I; in computeSymbolSizes()
/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()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/MCTargetDesc/
DARMMCExpr.cpp30 if (Expr->getKind() != MCExpr::SymbolRef) in PrintImpl()
33 if (Expr->getKind() != MCExpr::SymbolRef) in PrintImpl()
61 case MCExpr::SymbolRef: in AddValueSymbols_()
/external/llvm/tools/dsymutil/
DMachODebugMapParser.cpp150 for (const SymbolRef &Symbol : MainBinary.symbols()) { in parseOneBinary()
274 for (const SymbolRef &Symbol : MainBinary.symbols()) { in dumpOneBinaryStab()
419 if (Sym.getFlags() & (SymbolRef::SF_Absolute | SymbolRef::SF_Common)) in loadCurrentObjectFileSymbols()
443 Expected<SymbolRef::Type> TypeOrErr = Sym.getType(); in loadMainBinarySymbols()
449 SymbolRef::Type Type = *TypeOrErr; in loadMainBinarySymbols()
451 if ((Type & SymbolRef::ST_Debug) || (Type & SymbolRef::ST_Unknown)) in loadMainBinarySymbols()
457 if (!(Sym.getFlags() & SymbolRef::SF_Global)) in loadMainBinarySymbols()

123456789