Home
last modified time | relevance | path

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

12345678

/NextBSD/contrib/llvm/include/llvm/CodeGen/
HDMachineModuleInfoImpls.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 …]
/NextBSD/contrib/llvm/lib/Target/X86/MCTargetDesc/
HDX86ELFRelocationInfo.cpp43 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()
HDX86MachORelocationInfo.cpp42 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 …]
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
HDSimpleConstraintManager.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 …]
HDConstraintManager.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()
HDRangeConstraintManager.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 …]
HDProgramState.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 …]
/NextBSD/contrib/llvm/lib/Object/
HDSymbolSize.cpp40 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()
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
HDMallocChecker.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 …]
HDRetainCountChecker.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()
1507 if (SymbolRef Sym = ReceiverV.getAsLocSymbol()) in getInstanceMethodSummary() local
1508 if (const RefVal *T = getRefBinding(State, Sym)) in getInstanceMethodSummary()
1749 SymbolRef Sym; member in __anon89a4c3480611::CFRefReportVisitor
1755 : Sym(sym), SummaryLog(log), GCEnabled(gcEnabled) {} in CFRefReportVisitor()
[all …]
HDSimpleStreamChecker.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()
/NextBSD/contrib/llvm/lib/Target/Sparc/MCTargetDesc/
HDSparcMCAsmInfo.cpp48 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()
/NextBSD/contrib/llvm/lib/MC/
HDMCContext.cpp118 MCSymbol *&Sym = Symbols[NameRef]; in getOrCreateSymbol() local
119 if (!Sym) in getOrCreateSymbol()
120 Sym = createSymbol(NameRef, false, false); in getOrCreateSymbol()
122 return Sym; in getOrCreateSymbol()
126 MCSymbolELF *&Sym = SectionSymbols[&Section]; in getOrCreateSectionSymbol() local
127 if (Sym) in getOrCreateSectionSymbol()
128 return Sym; in getOrCreateSectionSymbol()
134 Sym = cast<MCSymbolELF>(OldSym); in getOrCreateSectionSymbol()
135 return Sym; in getOrCreateSectionSymbol()
139 Sym = new (&*NameIter, *this) MCSymbolELF(&*NameIter, /*isTemporary*/ false); in getOrCreateSectionSymbol()
[all …]
HDMCStreamer.cpp115 void MCStreamer::EmitSymbolValue(const MCSymbol *Sym, unsigned Size, in EmitSymbolValue() argument
121 EmitValueImpl(MCSymbolRefExpr::create(Sym, getContext()), Size); in EmitSymbolValue()
123 EmitCOFFSecRel32(Sym); in EmitSymbolValue()
311 void MCStreamer::EmitCFIPersonality(const MCSymbol *Sym, in EmitCFIPersonality() argument
315 CurFrame->Personality = Sym; in EmitCFIPersonality()
319 void MCStreamer::EmitCFILsda(const MCSymbol *Sym, unsigned Encoding) { in EmitCFILsda() argument
322 CurFrame->Lsda = Sym; in EmitCFILsda()
450 void MCStreamer::EmitWinEHHandler(const MCSymbol *Sym, bool Unwind, in EmitWinEHHandler() argument
455 CurrentWinFrameInfo->ExceptionHandler = Sym; in EmitWinEHHandler()
610 void MCStreamer::visitUsedSymbol(const MCSymbol &Sym) { in visitUsedSymbol() argument
[all …]
HDMCAsmInfo.cpp121 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()
HDMCExpr.cpp43 const MCSymbol &Sym = SRE.getSymbol(); in print() local
46 bool UseParens = Sym.getName()[0] == '$'; in print()
49 Sym.print(OS, MAI); in print()
52 Sym.print(OS, MAI); in print()
165 const MCSymbolRefExpr *MCSymbolRefExpr::create(const MCSymbol *Sym, in create() argument
168 return new (Ctx) MCSymbolRefExpr(Sym, Kind, Ctx.getAsmInfo()); in create()
609 static bool canExpand(const MCSymbol &Sym, const MCAssembler *Asm, bool InSet) { in canExpand() argument
610 const MCExpr *Expr = Sym.getVariableValue(); in canExpand()
621 return !Asm->getWriter().isWeak(Sym); in canExpand()
642 const MCSymbol &Sym = SRE->getSymbol(); in evaluateAsRelocatableImpl() local
[all …]
/NextBSD/contrib/llvm/lib/LTO/
HDLTOModule.cpp357 void LTOModule::addDefinedDataSymbol(const object::BasicSymbolRef &Sym) { in addDefinedDataSymbol() argument
361 Sym.printName(OS); in addDefinedDataSymbol()
364 const GlobalValue *V = IRFile->getSymbolGV(Sym.getRawDataRefImpl()); in addDefinedDataSymbol()
418 void LTOModule::addDefinedFunctionSymbol(const object::BasicSymbolRef &Sym) { in addDefinedFunctionSymbol() argument
422 Sym.printName(OS); in addDefinedFunctionSymbol()
426 cast<Function>(IRFile->getSymbolGV(Sym.getRawDataRefImpl())); in addDefinedFunctionSymbol()
557 void LTOModule::addPotentialUndefinedSymbol(const object::BasicSymbolRef &Sym, in addPotentialUndefinedSymbol() argument
562 Sym.printName(OS); in addPotentialUndefinedSymbol()
575 const GlobalValue *decl = IRFile->getSymbolGV(Sym.getRawDataRefImpl()); in addPotentialUndefinedSymbol()
589 for (auto &Sym : IRFile->symbols()) { in parseSymbols() local
[all …]
/NextBSD/contrib/llvm/tools/llvm-objdump/
HDCOFFDump.cpp161 resolveSectionAndAddress(const COFFObjectFile *Obj, const SymbolRef &Sym, in resolveSectionAndAddress() argument
164 ErrorOr<uint64_t> ResolvedAddrOrErr = Sym.getAddress(); in resolveSectionAndAddress()
169 if (std::error_code EC = Sym.getSection(iter)) 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 …]
/NextBSD/contrib/llvm/lib/Target/PowerPC/
HDPPCMCInstLower.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()
/NextBSD/contrib/llvm/lib/ExecutionEngine/Orc/
HDOrcMCJITReplacement.h240 if (auto Sym = LazyEmitLayer.findSymbol(Name, false)) in findMangledSymbol() local
241 return RuntimeDyld::SymbolInfo(Sym.getAddress(), Sym.getFlags()); in findMangledSymbol()
242 if (auto Sym = ClientResolver->findSymbol(Name)) in findMangledSymbol() local
243 return RuntimeDyld::SymbolInfo(Sym.getAddress(), Sym.getFlags()); in findMangledSymbol()
244 if (auto Sym = scanArchives(Name)) in findMangledSymbol() local
245 return RuntimeDyld::SymbolInfo(Sym.getAddress(), Sym.getFlags()); in findMangledSymbol()
267 if (auto Sym = ObjectLayer.findSymbol(Name, true)) in scanArchives() local
268 return Sym; in scanArchives()
/NextBSD/contrib/llvm/lib/Target/AMDGPU/
HDAMDGPUMCInstLower.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()
/NextBSD/contrib/llvm/include/llvm/Object/
HDELFObjectFile.h178 uint64_t getSymbolSize(DataRefImpl Sym) const override;
243 const Elf_Sym *toELFSymIter(DataRefImpl Sym) const { in toELFSymIter() argument
244 return EF.template getEntry<Elf_Sym>(Sym.d.a, Sym.d.b); in toELFSymIter()
349 void ELFObjectFile<ELFT>::moveSymbolNext(DataRefImpl &Sym) const { in moveSymbolNext() argument
350 ++Sym.d.b; in moveSymbolNext()
354 ErrorOr<StringRef> ELFObjectFile<ELFT>::getSymbolName(DataRefImpl Sym) const { in getSymbolName() argument
355 const Elf_Sym *ESym = toELFSymIter(Sym); in getSymbolName()
356 const Elf_Shdr *SymTableSec = *EF.getSection(Sym.d.a); in getSymbolName()
416 const Elf_Sym *Sym = toELFSymIter(Symb); in getSymbolAlignment() local
417 if (Sym->st_shndx == ELF::SHN_COMMON) in getSymbolAlignment()
[all …]
/NextBSD/contrib/binutils/gprof/
HDmips.c37 static Sym indirect_child;
39 void mips_find_call (Sym *, bfd_vma, bfd_vma);
42 mips_find_call (Sym *parent, bfd_vma p_lowpc, bfd_vma p_highpc) in mips_find_call()
47 Sym *child; in mips_find_call()
/NextBSD/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/
HDPPCMCExpr.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()
/NextBSD/contrib/llvm/lib/Target/X86/
HDX86TargetObjectFile.cpp33 const MCSymbol *Sym = TM.getSymbol(GV, Mang); in getTTypeGlobalReference() local
35 MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOTPCREL, getContext()); in getTTypeGlobalReference()
51 const MCSymbol *Sym, const MCValue &MV, int64_t Offset, in getIndirectSymViaGOTPCRel() argument
58 MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOTPCREL, getContext()); in getIndirectSymViaGOTPCRel()
64 const MCSymbol *Sym) const { in getDebugThreadLocalSymbol()
65 return MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_DTPOFF, getContext()); in getDebugThreadLocalSymbol()

12345678