Home
last modified time | relevance | path

Searched refs:DR (Results 1 – 25 of 105) sorted by relevance

12345

/freebsd/contrib/llvm-project/clang/lib/InstallAPI/
H A DDylibVerifier.cpp178 const Record *DR) { in shouldIgnoreObsolete() argument
232 const ObjCInterfaceRecord *DR) { in compareObjCInterfaceSymbols() argument
239 const bool IsDylibVersionComplete = DR->isCompleteInterface(); in compareObjCInterfaceSymbols()
267 if (!DR->isExportedSymbol(ObjCIFSymbolKind::Class)) { in compareObjCInterfaceSymbols()
269 PrintDiagnostic(DR->getLinkageForSymbol(ObjCIFSymbolKind::Class), R, in compareObjCInterfaceSymbols()
273 if (!DR->isExportedSymbol(ObjCIFSymbolKind::MetaClass)) { in compareObjCInterfaceSymbols()
275 PrintDiagnostic(DR->getLinkageForSymbol(ObjCIFSymbolKind::MetaClass), R, in compareObjCInterfaceSymbols()
282 if (DR->isExportedSymbol(SymCtx.ObjCIFKind)) { in compareObjCInterfaceSymbols()
293 PrintDiagnostic(DR->getLinkageForSymbol(SymCtx.ObjCIFKind), R, in compareObjCInterfaceSymbols()
300 const Record *DR) { in compareVisibility() argument
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DODRDiagsEmitter.cpp627 DiffResult DR; in FindTypeDiffs() local
638 DR.FirstDecl = FirstIt == FirstHashes.end() ? nullptr : FirstIt->first; in FindTypeDiffs()
639 DR.SecondDecl = SecondIt == SecondHashes.end() ? nullptr : SecondIt->first; in FindTypeDiffs()
641 DR.FirstDiffType = in FindTypeDiffs()
642 DR.FirstDecl ? DifferenceSelector(DR.FirstDecl) : EndOfClass; in FindTypeDiffs()
643 DR.SecondDiffType = in FindTypeDiffs()
644 DR.SecondDecl ? DifferenceSelector(DR.SecondDecl) : EndOfClass; in FindTypeDiffs()
645 return DR; in FindTypeDiffs()
647 return DR; in FindTypeDiffs()
651 DiffResult &DR, const NamedDecl *FirstRecord, StringRef FirstModule, in diagnoseSubMismatchUnexpected() argument
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMallocOverflowSecurityChecker.cpp143 static const Decl *getDecl(const DeclRefExpr *DR) { return DR->getDecl(); } in getDecl() argument
149 void Erase(const T1 *DR, in Erase() argument
151 auto P = [DR, Pred](const MallocOverflowCheck &Check) { in Erase()
153 return getDecl(CheckDR) == getDecl(DR) && Pred(Check); in Erase()
165 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) in CheckExpr() local
166 Erase<DeclRefExpr>(DR, PrecedesMalloc); in CheckExpr()
222 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) in CheckAssignmentExpr() local
223 Erase<DeclRefExpr>(DR, pred); in CheckAssignmentExpr()
H A DDereferenceChecker.cpp74 const DeclRefExpr *DR = cast<DeclRefExpr>(Ex); in AddDerefSource() local
75 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in AddDerefSource()
78 Ranges.push_back(DR->getSourceRange()); in AddDerefSource()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DLiveVariables.cpp172 void VisitDeclRefExpr(DeclRefExpr *DR);
335 if (const auto *DR = dyn_cast<DeclRefExpr>(B->getLHS()->IgnoreParens())) { in VisitBinaryOperator() local
336 LV.inAssignment[DR] = 1; in VisitBinaryOperator()
346 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(LHS)) { in VisitBinaryOperator() local
347 const Decl* D = DR->getDecl(); in VisitBinaryOperator()
366 observer->observerKill(DR); in VisitBinaryOperator()
380 void TransferFunctions::VisitDeclRefExpr(DeclRefExpr *DR) { in VisitDeclRefExpr() argument
381 const Decl* D = DR->getDecl(); in VisitDeclRefExpr()
382 bool InAssignment = LV.inAssignment[DR]; in VisitDeclRefExpr()
418 DeclRefExpr *DR = nullptr; in VisitObjCForCollectionStmt() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp41 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S); in containsEnum() local
43 if (DR && isa<EnumConstantDecl>(DR->getDecl())) in containsEnum()
55 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S); in containsStaticLocal() local
57 if (DR) in containsStaticLocal()
58 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in containsStaticLocal()
H A DLoopUnrolling.cpp169 static bool isCapturedByReference(ExplodedNode *N, const DeclRefExpr *DR) { in isCapturedByReference() argument
172 assert(DR->refersToEnclosingVariableOrCapture()); in isCapturedByReference()
186 const VarDecl *VD = cast<VarDecl>(DR->getDecl()->getCanonicalDecl()); in isCapturedByReference()
209 static bool isPossiblyEscaped(ExplodedNode *N, const DeclRefExpr *DR) { in isPossiblyEscaped() argument
210 const VarDecl *VD = cast<VarDecl>(DR->getDecl()->getCanonicalDecl()); in isPossiblyEscaped()
217 isa<ParmVarDecl>(VD) || DR->refersToEnclosingVariableOrCapture(); in isPossiblyEscaped()
219 if ((DR->refersToEnclosingVariableOrCapture() && in isPossiblyEscaped()
220 isCapturedByReference(N, DR)) || in isPossiblyEscaped()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonGenMux.cpp112 MuxInfo(MachineBasicBlock::iterator It, unsigned DR, unsigned PR, in MuxInfo()
115 : At(It), DefR(DR), PredR(PR), SrcT(TOp), SrcF(FOp), Def1(&D1), in MuxInfo()
236 Register DR = MI.getOperand(0).getReg(); in genMuxInBlock() local
237 if (isRegPair(DR)) in genMuxInBlock()
245 CondsetMap::iterator F = CM.find(DR); in genMuxInBlock()
255 auto It = CM.insert(std::make_pair(DR, CondsetInfo())); in genMuxInBlock()
305 if (DU.Defs[PR] || DU.Defs[DR] || DU.Uses[DR]) { in genMuxInBlock()
322 ML.push_back(MuxInfo(At, DR, PR, SrcT, SrcF, Def1, Def2)); in genMuxInBlock()
H A DRDFCopy.cpp185 RegisterRef DR = DA.Addr->getRegRef(DFG); in run() local
186 auto FR = EM.find(DR); in run()
190 if (PRI.equal_to(DR, SR)) in run()
202 if (!PRI.equal_to(UA.Addr->getRegRef(DFG), DR)) in run()
214 dbgs() << "Can replace " << Print<RegisterRef>(DR, DFG) in run()
242 if (!PRI.equal_to(J.second, DR)) in run()
H A DHexagonGenPredicate.cpp472 RegisterSubReg DR = MI.getOperand(0); in eliminatePredCopies() local
474 if (!DR.R.isVirtual()) in eliminatePredCopies()
478 if (MRI->getRegClass(DR.R) != PredRC) in eliminatePredCopies()
482 assert(!DR.S && !SR.S && "Unexpected subregister"); in eliminatePredCopies()
483 MRI->replaceRegWith(DR.R, SR.R); in eliminatePredCopies()
H A DHexagonSplitDouble.cpp424 for (unsigned DR : Part) { in isProfitable() local
425 MachineInstr *DefI = MRI->getVRegDef(DR); in isProfitable()
431 if (isInduction(DR, IRM)) in isProfitable()
434 for (auto U = MRI->use_nodbg_begin(DR), W = MRI->use_nodbg_end(); in isProfitable()
1133 for (unsigned DR : Part) { in splitPartition() local
1134 MachineInstr *DefI = MRI->getVRegDef(DR); in splitPartition()
1139 for (auto U = MRI->use_nodbg_begin(DR), W = MRI->use_nodbg_end(); in splitPartition()
1145 LLVM_DEBUG(dbgs() << "Created mapping: " << printReg(DR, TRI) << " -> " in splitPartition()
1148 PairMap.insert(std::make_pair(DR, UUPair(LoR, HiR))); in splitPartition()
1163 for (unsigned DR : Part) { in splitPartition() local
[all …]
H A DHexagonExpandCondsets.cpp379 Register DR = Op.getReg(), DSR = Op.getSubReg(); in updateDeadsInRange() local
380 if (!DR.isVirtual() || DR != Reg) in updateDeadsInRange()
382 LaneBitmask SLM = getLaneMask(DR, DSR); in updateDeadsInRange()
696 Register DR = MD.getReg(), DSR = MD.getSubReg(); in split() local
731 genCondTfrFor(ST, At, DR, DSR, MP, true, ReadUndef, false); in split()
733 genCondTfrFor(SF, At, DR, DSR, MP, false, ReadUndef, true); in split()
/freebsd/contrib/llvm-project/clang/include/clang/InstallAPI/
H A DDylibVerifier.h127 const Record *DR);
145 const Record *DR);
150 const ObjCInterfaceRecord *DR);
154 const Record *DR);
158 const Record *DR);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.h75 uint64_t static toOpaqueValue(const LocalVarDef DR) { in toOpaqueValue()
77 std::memcpy(&Val, &DR, sizeof(Val)); in toOpaqueValue()
82 LocalVarDef DR; in createFromOpaqueValue() local
83 std::memcpy(&DR, &Val, sizeof(Val)); in createFromOpaqueValue()
84 return DR; in createFromOpaqueValue()
537 static unsigned getHashValue(const CodeViewDebug::LocalVarDef &DR) {
538 return CodeViewDebug::LocalVarDef::toOpaqueValue(DR) * 37ULL;
/freebsd/contrib/llvm-project/lldb/tools/lldb-instr/
H A DInstrument.cpp127 bool HandleTopLevelDecl(DeclGroupRef DR) override { in HandleTopLevelDecl() argument
128 for (DeclGroupRef::iterator b = DR.begin(), e = DR.end(); b != e; ++b) { in HandleTopLevelDecl()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDebugProgramInstruction.cpp573 DbgRecord *DR = &*It; in dropDbgRecords() local
575 DR->deleteRecord(); in dropDbgRecords()
579 void DbgMarker::dropOneDbgRecord(DbgRecord *DR) { in dropOneDbgRecord() argument
580 assert(DR->getMarker() == this); in dropOneDbgRecord()
581 StoredDbgRecords.erase(DR->getIterator()); in dropOneDbgRecord()
582 DR->deleteRecord(); in dropOneDbgRecord()
682 for (DbgRecord &DR : Range) in absorbDebugValues()
683 DR.setMarker(this); in absorbDebugValues()
707 for (DbgRecord &DR : Range) { in cloneDebugInfoFrom()
708 DbgRecord *New = DR.clone(); in cloneDebugInfoFrom()
H A DBasicBlock.cpp127 for (DbgRecord &DR : Marker.getDbgRecordRange()) in convertFromNewDbgValues()
129 DR.createDebugIntrinsic(getModule(), nullptr)); in convertFromNewDbgValues()
1059 void BasicBlock::insertDbgRecordAfter(DbgRecord *DR, Instruction *I) { in insertDbgRecordAfter() argument
1065 NextMarker->insertDbgRecord(DR, true); in insertDbgRecordAfter()
1068 void BasicBlock::insertDbgRecordBefore(DbgRecord *DR, in insertDbgRecordBefore() argument
1073 M->insertDbgRecord(DR, InsertAtHead); in insertDbgRecordBefore()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaBPF.cpp92 const auto *DR = dyn_cast<DeclRefExpr>(CE->getSubExpr()); in isValidPreserveEnumValueArg() local
93 if (!DR) in isValidPreserveEnumValueArg()
97 dyn_cast<EnumConstantDecl>(DR->getDecl()); in isValidPreserveEnumValueArg()
H A DSemaPPC.cpp34 const auto *DR = dyn_cast<DeclRefExpr>(ICE->getSubExpr()); in checkAIXMemberAlignment() local
35 if (!DR) in checkAIXMemberAlignment()
38 const auto *PD = dyn_cast<ParmVarDecl>(DR->getDecl()); in checkAIXMemberAlignment()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp55 DispRange DR; member
66 : Form(form), DR(dr), Disp(0), IncludesDynAlloc(false) {} in SystemZAddressingMode()
166 bool selectBDAddr(SystemZAddressingMode::DispRange DR, SDValue Addr,
172 bool selectMVIAddr(SystemZAddressingMode::DispRange DR, SDValue Addr,
179 SystemZAddressingMode::DispRange DR, SDValue Addr,
411 static bool selectDisp(SystemZAddressingMode::DispRange DR, int64_t Val) { in selectDisp() argument
412 switch (DR) { in selectDisp()
468 if (selectDisp(AM.DR, TestDisp)) { in expandDisp()
523 static bool isValidDisp(SystemZAddressingMode::DispRange DR, int64_t Val) { in isValidDisp() argument
524 assert(selectDisp(DR, Val) && "Invalid displacement"); in isValidDisp()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp540 void Mapper::remapDbgRecord(DbgRecord &DR) { in remapDbgRecord() argument
542 auto *MappedDILoc = mapMetadata(DR.getDebugLoc()); in remapDbgRecord()
543 DR.setDebugLoc(DebugLoc(cast<DILocation>(MappedDILoc))); in remapDbgRecord()
545 if (DbgLabelRecord *DLR = dyn_cast<DbgLabelRecord>(&DR)) { in remapDbgRecord()
551 DbgVariableRecord &V = cast<DbgVariableRecord>(DR); in remapDbgRecord()
1072 for (DbgRecord &DR : I.getDbgRecordRange()) in remapFunction()
1073 remapDbgRecord(DR); in remapFunction()
1239 void ValueMapper::remapDbgRecord(Module *M, DbgRecord &DR) { in remapDbgRecord() argument
1240 FlushingMapper(pImpl)->remapDbgRecord(DR); in remapDbgRecord()
1245 for (DbgRecord &DR : Range) { in remapDbgRecordRange()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DODRDiagsEmitter.h139 void diagnoseSubMismatchUnexpected(DiffResult &DR,
145 void diagnoseSubMismatchDifferentDeclKinds(DiffResult &DR,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DADCE.cpp551 for (DbgRecord &DR : make_early_inc_range(I.getDbgRecordRange())) { in removeDeadInstructions()
554 if (DbgVariableRecord *DVR = dyn_cast<DbgVariableRecord>(&DR); in removeDeadInstructions()
558 if (AliveScopes.count(DR.getDebugLoc()->getScope())) in removeDeadInstructions()
560 I.dropOneDbgRecord(&DR); in removeDeadInstructions()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DValueMapper.h272 inline void RemapDbgRecord(Module *M, DbgRecord *DR, ValueToValueMapTy &VM,
276 ValueMapper(VM, Flags, TypeMapper, Materializer).remapDbgRecord(M, *DR);
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DMachODumper.cpp477 DataRefImpl DR = Section.getRawDataRefImpl(); in printSectionHeaders() local
479 ArrayRef<char> RawName = Obj->getSectionRawName(DR); in printSectionHeaders()
480 StringRef SegmentName = Obj->getSectionFinalSegmentName(DR); in printSectionHeaders()
481 ArrayRef<char> RawSegmentName = Obj->getSectionRawFinalSegmentName(DR); in printSectionHeaders()
557 DataRefImpl DR = Reloc.getRawDataRefImpl(); in printRelocation() local
558 MachO::any_relocation_info RE = Obj->getRelocation(DR); in printRelocation()
569 section_iterator SecI = Obj->getRelocationSection(DR); in printRelocation()

12345