/external/llvm/include/llvm/CodeGen/ |
D | MachineModuleInfoImpls.h | 45 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() 77 StubValueTy &getGVStubEntry(MCSymbol *Sym) { in getGVStubEntry() argument [all …]
|
/external/llvm/tools/obj2yaml/ |
D | coff2yaml.cpp | 122 object::symbol_iterator Sym = Reloc.getSymbol(); in dumpSections() local 123 ErrorOr<StringRef> SymbolNameOrErr = Sym->getName(); in dumpSections() 137 dumpFunctionDefinition(COFFYAML::Symbol *Sym, in dumpFunctionDefinition() argument 145 Sym->FunctionDefinition = YAMLFD; in dumpFunctionDefinition() 149 dumpbfAndEfLineInfo(COFFYAML::Symbol *Sym, in dumpbfAndEfLineInfo() argument 155 Sym->bfAndefSymbol = YAMLAAS; in dumpbfAndEfLineInfo() 158 static void dumpWeakExternal(COFFYAML::Symbol *Sym, in dumpWeakExternal() argument 164 Sym->WeakExternal = YAMLWE; in dumpWeakExternal() 168 dumpSectionDefinition(COFFYAML::Symbol *Sym, in dumpSectionDefinition() argument 180 Sym->SectionDefinition = YAMLASD; in dumpSectionDefinition() [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | RangeConstraintManager.cpp | 325 ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From, 329 ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From, 334 ConditionTruthVal checkNull(ProgramStateRef State, SymbolRef Sym) override; 344 RangeSet getSymLTRange(ProgramStateRef St, SymbolRef Sym, 347 RangeSet getSymGTRange(ProgramStateRef St, SymbolRef Sym, 350 RangeSet getSymLERange(ProgramStateRef St, SymbolRef Sym, 355 RangeSet getSymGERange(ProgramStateRef St, SymbolRef Sym, 374 SymbolRef Sym) { in checkNull() argument 375 const RangeSet *Ranges = State->get<ConstraintRange>(Sym); in checkNull() 386 APSIntType IntType = BV.getAPSIntType(Sym->getType()); in checkNull() [all …]
|
D | SimpleConstraintManager.cpp | 99 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() 203 SymbolRef Sym = Value.getAsSymExpr(); in assumeWithinInclusiveRange() local 204 assert(Sym); in assumeWithinInclusiveRange() 205 return assumeSymWithinInclusiveRange(State, Sym, From, To, InRange); in assumeWithinInclusiveRange() 215 if (SymbolRef Sym = Value.getAsSymbol()) in assumeWithinInclusiveRange() local 216 return assumeSymWithinInclusiveRange(State, Sym, From, To, InRange); in assumeWithinInclusiveRange() 229 static void computeAdjustment(SymbolRef &Sym, llvm::APSInt &Adjustment) { in computeAdjustment() argument [all …]
|
D | ConstraintManager.cpp | 22 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()
|
D | ProgramState.cpp | 357 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/llvm/lib/Target/X86/MCTargetDesc/ |
D | X86ELFRelocationInfo.cpp | 43 MCSymbol *Sym = Ctx.getOrCreateSymbol(SymName); in createExprForRelocation() local 45 if (!Sym->isVariable()) in createExprForRelocation() 46 Sym->setVariableValue(MCConstantExpr::create(*SymAddr, Ctx)); in createExprForRelocation() 85 Expr = MCSymbolRefExpr::create(Sym, Ctx); in createExprForRelocation() 94 Expr = MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOT, Ctx); in createExprForRelocation() 99 Expr = MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_PLT, Ctx); in createExprForRelocation() 104 Expr = MCSymbolRefExpr::create(Sym, Ctx); in createExprForRelocation() 110 Expr = MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOTPCREL, Ctx); in createExprForRelocation() 114 Expr = MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOTOFF, Ctx); in createExprForRelocation() 125 Expr = MCSymbolRefExpr::create(Sym, Ctx); in createExprForRelocation()
|
D | X86MachORelocationInfo.cpp | 42 MCSymbol *Sym = Ctx.getOrCreateSymbol(SymName); in createExprForRelocation() local 44 if (!Sym->isVariable()) in createExprForRelocation() 45 Sym->setVariableValue(MCConstantExpr::create(SymAddr, Ctx)); in createExprForRelocation() 50 Expr = MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_TLVP, Ctx); in createExprForRelocation() 53 Expr = MCBinaryExpr::createAdd(MCSymbolRefExpr::create(Sym, Ctx), in createExprForRelocation() 58 Expr = MCBinaryExpr::createAdd(MCSymbolRefExpr::create(Sym, Ctx), in createExprForRelocation() 63 Expr = MCBinaryExpr::createAdd(MCSymbolRefExpr::create(Sym, Ctx), in createExprForRelocation() 68 Expr = MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOTPCREL, Ctx); in createExprForRelocation() 71 Expr = MCSymbolRefExpr::create(Sym, isPCRel ? in createExprForRelocation() 90 const MCExpr *LHS = MCSymbolRefExpr::create(Sym, Ctx); in createExprForRelocation() [all …]
|
/external/llvm/lib/Object/ |
D | SymbolSize.cpp | 40 static unsigned getSymbolSectionID(const ObjectFile &O, SymbolRef Sym) { in getSymbolSectionID() argument 42 return M->getSymbolSectionID(Sym); in getSymbolSectionID() 43 return cast<COFFObjectFile>(O).getSymbolSectionID(Sym); in getSymbolSectionID() 54 for (ELFSymbolRef Sym : Syms) in computeSymbolSizes() local 55 Ret.push_back({Sym, Sym.getSize()}); in computeSymbolSizes() 64 SymbolRef Sym = *I; in computeSymbolSizes() local 65 uint64_t Value = Sym.getValue(); in computeSymbolSizes() 66 Addresses.push_back({I, Value, SymNum, getSymbolSectionID(O, Sym)}); in computeSymbolSizes()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | MallocChecker.cpp | 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; 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 …]
|
D | DynamicTypePropagation.cpp | 78 GenericsBugVisitor(SymbolRef S) : Sym(S) {} in GenericsBugVisitor() 83 ID.AddPointer(Sym); in Profile() 93 SymbolRef Sym; member in __anonf793be470111::DynamicTypePropagation::GenericsBugVisitor 98 SymbolRef Sym, CheckerContext &C, 442 storeWhenMoreInformative(ProgramStateRef &State, SymbolRef Sym, in storeWhenMoreInformative() argument 455 State = State->set<MostSpecializedTypeArgsMap>(Sym, StaticLowerBound); in storeWhenMoreInformative() 461 State = State->set<MostSpecializedTypeArgsMap>(Sym, WithMostInfo); in storeWhenMoreInformative() 479 State = State->set<MostSpecializedTypeArgsMap>(Sym, WithMostInfo); in storeWhenMoreInformative() 487 State = State->set<MostSpecializedTypeArgsMap>(Sym, WithMostInfo); in storeWhenMoreInformative() 530 SymbolRef Sym = State->getSVal(CE, C.getLocationContext()).getAsSymbol(); in checkPostStmt() local [all …]
|
D | RetainCountChecker.cpp | 365 SymbolRef Sym) { in REGISTER_MAP_WITH_PROGRAMSTATE() 366 return State->get<RefBindings>(Sym); in REGISTER_MAP_WITH_PROGRAMSTATE() 370 SymbolRef Sym, RefVal Val) { in setRefBinding() argument 371 return State->set<RefBindings>(Sym, Val); in setRefBinding() 374 static ProgramStateRef removeRefBinding(ProgramStateRef State, SymbolRef Sym) { in removeRefBinding() argument 375 return State->remove<RefBindings>(Sym); in removeRefBinding() 1507 if (SymbolRef Sym = ReceiverV.getAsLocSymbol()) in getInstanceMethodSummary() local 1508 if (const RefVal *T = getRefBinding(State, Sym)) in getInstanceMethodSummary() 1749 SymbolRef Sym; member in __anon8eefc09d0611::CFRefReportVisitor 1755 : Sym(sym), SummaryLog(log), GCEnabled(gcEnabled) {} in CFRefReportVisitor() [all …]
|
D | SimpleStreamChecker.cpp | 172 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() 269 SymbolRef Sym = *I; in checkPointerEscape() local 273 State = State->remove<StreamMap>(Sym); in checkPointerEscape()
|
/external/llvm/lib/Target/Sparc/MCTargetDesc/ |
D | SparcMCAsmInfo.cpp | 48 SparcELFMCAsmInfo::getExprForPersonalitySymbol(const MCSymbol *Sym, in getExprForPersonalitySymbol() argument 54 MCSymbolRefExpr::create(Sym, Ctx), Ctx); in getExprForPersonalitySymbol() 57 return MCAsmInfo::getExprForPersonalitySymbol(Sym, Encoding, Streamer); in getExprForPersonalitySymbol() 61 SparcELFMCAsmInfo::getExprForFDESymbol(const MCSymbol *Sym, in getExprForFDESymbol() argument 67 MCSymbolRefExpr::create(Sym, Ctx), Ctx); in getExprForFDESymbol() 69 return MCAsmInfo::getExprForFDESymbol(Sym, Encoding, Streamer); in getExprForFDESymbol()
|
/external/llvm/tools/dsymutil/ |
D | DebugMap.cpp | 44 for (const auto &Sym : make_range(Symbols.begin(), Symbols.end())) in print() local 45 Entries.push_back(std::make_pair(Sym.getKey(), Sym.getValue())); in print() 49 for (const auto &Sym : Entries) { in print() local 51 uint64_t(Sym.second.ObjectAddress), in print() 52 uint64_t(Sym.second.BinaryAddress), uint32_t(Sym.second.Size), in print() 53 Sym.first.data()); in print() 70 StringMap<SymbolMapping>::const_iterator Sym = Symbols.find(SymbolName); in lookupSymbol() local 71 if (Sym == Symbols.end()) in lookupSymbol() 73 return &*Sym; in lookupSymbol() 226 for (const auto &Sym : ErrOrObjectFile->symbols()) { in denormalize() local [all …]
|
D | MachODebugMapParser.cpp | 405 for (auto Sym : Obj.symbols()) { in loadCurrentObjectFileSymbols() local 406 uint64_t Addr = Sym.getValue(); in loadCurrentObjectFileSymbols() 407 ErrorOr<StringRef> Name = Sym.getName(); in loadCurrentObjectFileSymbols() 415 if (Sym.getFlags() & SymbolRef::SF_Absolute) in loadCurrentObjectFileSymbols() 426 auto Sym = MainBinarySymbolAddresses.find(Name); in getMainBinarySymbolAddress() local 427 if (Sym == MainBinarySymbolAddresses.end()) in getMainBinarySymbolAddress() 429 return Sym->second; in getMainBinarySymbolAddress() 438 for (const auto &Sym : MainBinary.symbols()) { in loadMainBinarySymbols() local 439 SymbolRef::Type Type = Sym.getType(); in loadMainBinarySymbols() 447 if (!(Sym.getFlags() & SymbolRef::SF_Global)) in loadMainBinarySymbols() [all …]
|
/external/llvm/tools/yaml2obj/ |
D | yaml2elf.cpp | 277 Elf_Sym Sym; in initSymtabSectionHeader() local 278 zero(Sym); in initSymtabSectionHeader() 279 Syms.push_back(Sym); in initSymtabSectionHeader() 283 for (const auto &Sym : Doc.Symbols.Local) in initSymtabSectionHeader() local 284 DotStrtab.add(Sym.Name); in initSymtabSectionHeader() 285 for (const auto &Sym : Doc.Symbols.Global) in initSymtabSectionHeader() local 286 DotStrtab.add(Sym.Name); in initSymtabSectionHeader() 287 for (const auto &Sym : Doc.Symbols.Weak) in initSymtabSectionHeader() local 288 DotStrtab.add(Sym.Name); in initSymtabSectionHeader() 318 for (const auto &Sym : Symbols) { in addSymbols() local [all …]
|
/external/llvm/lib/MC/ |
D | MCContext.cpp | 116 MCSymbol *&Sym = Symbols[NameRef]; in getOrCreateSymbol() local 117 if (!Sym) in getOrCreateSymbol() 118 Sym = createSymbol(NameRef, false, false); in getOrCreateSymbol() 120 return Sym; in getOrCreateSymbol() 124 MCSymbolELF *&Sym = SectionSymbols[&Section]; in getOrCreateSectionSymbol() local 125 if (Sym) in getOrCreateSectionSymbol() 126 return Sym; in getOrCreateSectionSymbol() 132 Sym = cast<MCSymbolELF>(OldSym); in getOrCreateSectionSymbol() 133 return Sym; in getOrCreateSectionSymbol() 137 Sym = new (&*NameIter, *this) MCSymbolELF(&*NameIter, /*isTemporary*/ false); in getOrCreateSectionSymbol() [all …]
|
D | MCAsmInfo.cpp | 121 MCAsmInfo::getExprForPersonalitySymbol(const MCSymbol *Sym, in getExprForPersonalitySymbol() argument 124 return getExprForFDESymbol(Sym, Encoding, Streamer); in getExprForPersonalitySymbol() 128 MCAsmInfo::getExprForFDESymbol(const MCSymbol *Sym, in getExprForFDESymbol() argument 132 return MCSymbolRefExpr::create(Sym, Streamer.getContext()); in getExprForFDESymbol() 135 const MCExpr *Res = MCSymbolRefExpr::create(Sym, Context); in getExprForFDESymbol()
|
D | MCStreamer.cpp | 114 void MCStreamer::EmitSymbolValue(const MCSymbol *Sym, unsigned Size, in EmitSymbolValue() argument 120 EmitValueImpl(MCSymbolRefExpr::create(Sym, getContext()), Size); in EmitSymbolValue() 122 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() 456 void MCStreamer::EmitWinEHHandler(const MCSymbol *Sym, bool Unwind, in EmitWinEHHandler() argument 461 CurrentWinFrameInfo->ExceptionHandler = Sym; in EmitWinEHHandler() 618 void MCStreamer::visitUsedSymbol(const MCSymbol &Sym) { in visitUsedSymbol() argument [all …]
|
/external/llvm/lib/LTO/ |
D | LTOModule.cpp | 346 void LTOModule::addDefinedDataSymbol(const object::BasicSymbolRef &Sym) { in addDefinedDataSymbol() argument 350 Sym.printName(OS); in addDefinedDataSymbol() 353 const GlobalValue *V = IRFile->getSymbolGV(Sym.getRawDataRefImpl()); in addDefinedDataSymbol() 407 void LTOModule::addDefinedFunctionSymbol(const object::BasicSymbolRef &Sym) { in addDefinedFunctionSymbol() argument 411 Sym.printName(OS); in addDefinedFunctionSymbol() 415 cast<Function>(IRFile->getSymbolGV(Sym.getRawDataRefImpl())); in addDefinedFunctionSymbol() 546 void LTOModule::addPotentialUndefinedSymbol(const object::BasicSymbolRef &Sym, in addPotentialUndefinedSymbol() argument 551 Sym.printName(OS); in addPotentialUndefinedSymbol() 564 const GlobalValue *decl = IRFile->getSymbolGV(Sym.getRawDataRefImpl()); in addPotentialUndefinedSymbol() 576 for (auto &Sym : IRFile->symbols()) { in parseSymbols() local [all …]
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCMCInstLower.cpp | 69 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/examples/Kaleidoscope/include/ |
D | KaleidoscopeJIT.h | 49 if (auto Sym = findMangledSymbol(Name)) in addModule() 50 return RuntimeDyld::SymbolInfo(Sym.getAddress(), Sym.getFlags()); in addModule() 94 if (auto Sym = CompileLayer.findSymbolIn(H, Name, true)) in findMangledSymbol() local 95 return Sym; in findMangledSymbol()
|
/external/llvm/include/llvm/Object/ |
D | ELFObjectFile.h | 178 uint64_t getSymbolSize(DataRefImpl Sym) const override; 305 const Elf_Sym *getSymbol(DataRefImpl Sym) const { in getSymbol() argument 306 return EF.template getEntry<Elf_Sym>(Sym.d.a, Sym.d.b); in getSymbol() 352 void ELFObjectFile<ELFT>::moveSymbolNext(DataRefImpl &Sym) const { in moveSymbolNext() argument 353 ++Sym.d.b; in moveSymbolNext() 357 ErrorOr<StringRef> ELFObjectFile<ELFT>::getSymbolName(DataRefImpl Sym) const { in getSymbolName() argument 358 const Elf_Sym *ESym = getSymbol(Sym); in getSymbolName() 359 const Elf_Shdr *SymTableSec = *EF.getSection(Sym.d.a); in getSymbolName() 421 const Elf_Sym *Sym = getSymbol(Symb); in getSymbolAlignment() local 422 if (Sym->st_shndx == ELF::SHN_COMMON) in getSymbolAlignment() [all …]
|
/external/llvm/tools/llvm-objdump/ |
D | COFFDump.cpp | 161 resolveSectionAndAddress(const COFFObjectFile *Obj, const SymbolRef &Sym, in resolveSectionAndAddress() argument 164 ErrorOr<uint64_t> ResolvedAddrOrErr = Sym.getAddress(); in resolveSectionAndAddress() 168 ErrorOr<section_iterator> Iter = Sym.getSection(); in resolveSectionAndAddress() 178 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 …]
|