Home
last modified time | relevance | path

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

12345

/freebsd/contrib/llvm-project/clang/lib/InstallAPI/
H A DDylibVerifier.cpp197 const Record *DR) { in shouldIgnoreObsolete() argument
251 const ObjCInterfaceRecord *DR) { in compareObjCInterfaceSymbols() argument
258 const bool IsDylibVersionComplete = DR->isCompleteInterface(); in compareObjCInterfaceSymbols()
286 if (!DR->isExportedSymbol(ObjCIFSymbolKind::Class)) { in compareObjCInterfaceSymbols()
288 PrintDiagnostic(DR->getLinkageForSymbol(ObjCIFSymbolKind::Class), R, in compareObjCInterfaceSymbols()
292 if (!DR->isExportedSymbol(ObjCIFSymbolKind::MetaClass)) { in compareObjCInterfaceSymbols()
294 PrintDiagnostic(DR->getLinkageForSymbol(ObjCIFSymbolKind::MetaClass), R, in compareObjCInterfaceSymbols()
301 if (DR->isExportedSymbol(SymCtx.ObjCIFKind)) { in compareObjCInterfaceSymbols()
312 PrintDiagnostic(DR->getLinkageForSymbol(SymCtx.ObjCIFKind), R, in compareObjCInterfaceSymbols()
319 const Record *DR) { in compareVisibility() argument
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DDeadStoresChecker.cpp54 bool VisitDeclRefExpr(DeclRefExpr *DR) override { in VisitDeclRefExpr() argument
56 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr()
285 void CheckDeclRef(const DeclRefExpr *DR, const Expr *Val, DeadStoreKind dsk, in CheckDeclRef() argument
287 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef()
288 CheckVarDecl(VD, DR, Val, dsk, Live); in CheckDeclRef()
301 const DeclRefExpr *DR; in isIncrement() local
303 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts()))) in isIncrement()
304 if (DR->getDecl() == VD) in isIncrement()
307 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts()))) in isIncrement()
308 if (DR->getDecl() == VD) in isIncrement()
[all …]
H A DDereferenceChecker.cpp77 const DeclRefExpr *DR = cast<DeclRefExpr>(Ex); in AddDerefSource() local
78 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in AddDerefSource()
81 Ranges.push_back(DR->getSourceRange()); in AddDerefSource()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DODRDiagsEmitter.cpp625 DiffResult DR; in FindTypeDiffs() local
636 DR.FirstDecl = FirstIt == FirstHashes.end() ? nullptr : FirstIt->first; in FindTypeDiffs()
637 DR.SecondDecl = SecondIt == SecondHashes.end() ? nullptr : SecondIt->first; in FindTypeDiffs()
639 DR.FirstDiffType = in FindTypeDiffs()
640 DR.FirstDecl ? DifferenceSelector(DR.FirstDecl) : EndOfClass; in FindTypeDiffs()
641 DR.SecondDiffType = in FindTypeDiffs()
642 DR.SecondDecl ? DifferenceSelector(DR.SecondDecl) : EndOfClass; in FindTypeDiffs()
643 return DR; in FindTypeDiffs()
645 return DR; in FindTypeDiffs()
649 DiffResult &DR, const NamedDecl *FirstRecord, StringRef FirstModule, in diagnoseSubMismatchUnexpected() argument
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DLiveVariables.cpp173 void VisitDeclRefExpr(DeclRefExpr *DR);
372 if (const auto *DR = dyn_cast<DeclRefExpr>(B->getLHS()->IgnoreParens())) { in VisitBinaryOperator() local
373 LV.inAssignment[DR] = 1; in VisitBinaryOperator()
383 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(LHS)) { in VisitBinaryOperator() local
384 const Decl* D = DR->getDecl(); in VisitBinaryOperator()
403 observer->observerKill(DR); in VisitBinaryOperator()
417 void TransferFunctions::VisitDeclRefExpr(DeclRefExpr *DR) { in VisitDeclRefExpr() argument
418 const Decl* D = DR->getDecl(); in VisitDeclRefExpr()
419 bool InAssignment = LV.inAssignment[DR]; in VisitDeclRefExpr()
455 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.cpp104 MuxInfo(MachineBasicBlock::iterator It, unsigned DR, unsigned PR, in MuxInfo()
107 : At(It), DefR(DR), PredR(PR), SrcT(TOp), SrcF(FOp), Def1(&D1), in MuxInfo()
228 Register DR = MI.getOperand(0).getReg(); in genMuxInBlock() local
229 if (isRegPair(DR)) in genMuxInBlock()
237 CondsetMap::iterator F = CM.find(DR); in genMuxInBlock()
247 F = CM.try_emplace(DR).first; in genMuxInBlock()
296 if (DU.Defs[PR] || DU.Defs[DR] || DU.Uses[DR]) { in genMuxInBlock()
313 ML.push_back(MuxInfo(At, DR, PR, SrcT, SrcF, Def1, Def2)); in genMuxInBlock()
H A DRDFCopy.cpp184 RegisterRef DR = DA.Addr->getRegRef(DFG); in run() local
185 auto FR = EM.find(DR); in run()
189 if (PRI.equal_to(DR, SR)) in run()
201 if (!PRI.equal_to(UA.Addr->getRegRef(DFG), DR)) in run()
213 dbgs() << "Can replace " << Print<RegisterRef>(DR, DFG) in run()
241 if (!PRI.equal_to(J.second, DR)) in run()
H A DHexagonGenPredicate.cpp449 RegSubRegPair DR = getRegSubRegPair(MI.getOperand(0)); in eliminatePredCopies() local
451 if (!DR.Reg.isVirtual()) in eliminatePredCopies()
455 if (MRI->getRegClass(DR.Reg) != PredRC) in eliminatePredCopies()
459 assert(!DR.SubReg && !SR.SubReg && "Unexpected subregister"); in eliminatePredCopies()
460 MRI->replaceRegWith(DR.Reg, SR.Reg); in eliminatePredCopies()
H A DHexagonSplitDouble.cpp418 for (unsigned DR : Part) { in isProfitable() local
419 MachineInstr *DefI = MRI->getVRegDef(DR); in isProfitable()
425 if (isInduction(DR, IRM)) in isProfitable()
428 for (auto U = MRI->use_nodbg_begin(DR), W = MRI->use_nodbg_end(); in isProfitable()
1127 for (unsigned DR : Part) { in splitPartition() local
1128 MachineInstr *DefI = MRI->getVRegDef(DR); in splitPartition()
1133 for (auto U = MRI->use_nodbg_begin(DR), W = MRI->use_nodbg_end(); in splitPartition()
1139 LLVM_DEBUG(dbgs() << "Created mapping: " << printReg(DR, TRI) << " -> " in splitPartition()
1142 PairMap.insert(std::make_pair(DR, UUPair(LoR, HiR))); in splitPartition()
1157 for (unsigned DR : Part) { in splitPartition() local
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/InstallAPI/
H A DDylibVerifier.h149 const Record *DR);
167 const Record *DR);
172 const ObjCInterfaceRecord *DR);
176 const Record *DR);
180 const Record *DR);
/freebsd/contrib/llvm-project/lldb/source/Plugins/Protocol/MCP/
H A DResource.cpp22 llvm::json::Value toJSON(const DebuggerResource &DR) { in toJSON() argument
23 llvm::json::Object Result{{"debugger_id", DR.debugger_id}, in toJSON()
24 {"num_targets", DR.num_targets}}; in toJSON()
25 if (!DR.name.empty()) in toJSON()
26 Result.insert({"name", DR.name}); in toJSON()
/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()
544 static unsigned getHashValue(const CodeViewDebug::LocalVarDef &DR) {
545 return CodeViewDebug::LocalVarDef::toOpaqueValue(DR) * 37ULL;
/freebsd/contrib/llvm-project/lldb/tools/lldb-instr/
H A DInstrument.cpp128 bool HandleTopLevelDecl(DeclGroupRef DR) override { in HandleTopLevelDecl() argument
129 for (DeclGroupRef::iterator b = DR.begin(), e = DR.end(); b != e; ++b) { in HandleTopLevelDecl()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDebugProgramInstruction.cpp605 DbgRecord *DR = &*It; in dropDbgRecords() local
607 DR->deleteRecord(); in dropDbgRecords()
611 void DbgMarker::dropOneDbgRecord(DbgRecord *DR) { in dropOneDbgRecord() argument
612 assert(DR->getMarker() == this); in dropOneDbgRecord()
613 StoredDbgRecords.erase(DR->getIterator()); in dropOneDbgRecord()
614 DR->deleteRecord(); in dropOneDbgRecord()
714 for (DbgRecord &DR : Range) in absorbDebugValues()
715 DR.setMarker(this); in absorbDebugValues()
739 for (DbgRecord &DR : Range) { in cloneDebugInfoFrom()
740 DbgRecord *New = DR.clone(); in cloneDebugInfoFrom()
H A DDroppedVariableStatsIR.cpp123 for (DbgRecord &DR : I.getDbgRecordRange()) { in visitEveryDebugRecord()
124 if (auto *Dbg = dyn_cast<DbgVariableRecord>(&DR)) { in visitEveryDebugRecord()
126 auto DbgLoc = DR.getDebugLoc(); in visitEveryDebugRecord()
H A DBasicBlock.cpp100 for (DbgRecord &DR : Marker.getDbgRecordRange()) in convertFromNewDbgValues()
102 DR.createDebugIntrinsic(getModule(), nullptr)); in convertFromNewDbgValues()
1027 void BasicBlock::insertDbgRecordAfter(DbgRecord *DR, Instruction *I) { in insertDbgRecordAfter() argument
1032 NextMarker->insertDbgRecord(DR, true); in insertDbgRecordAfter()
1035 void BasicBlock::insertDbgRecordBefore(DbgRecord *DR, in insertDbgRecordBefore() argument
1040 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()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp544 void Mapper::remapDbgRecord(DbgRecord &DR) { in remapDbgRecord() argument
546 auto *MappedDILoc = mapMetadata(DR.getDebugLoc()); in remapDbgRecord()
547 DR.setDebugLoc(DebugLoc(cast<DILocation>(MappedDILoc))); in remapDbgRecord()
549 if (DbgLabelRecord *DLR = dyn_cast<DbgLabelRecord>(&DR)) { in remapDbgRecord()
555 DbgVariableRecord &V = cast<DbgVariableRecord>(DR); in remapDbgRecord()
1084 for (DbgRecord &DR : I.getDbgRecordRange()) in remapFunction()
1085 remapDbgRecord(DR); in remapFunction()
1252 void ValueMapper::remapDbgRecord(Module *M, DbgRecord &DR) { in remapDbgRecord() argument
1253 FlushingMapper(pImpl)->remapDbgRecord(DR); in remapDbgRecord()
1258 for (DbgRecord &DR : Range) { in remapDbgRecordRange()
[all …]
H A DCodeExtractor.cpp1273 auto UpdateOrInsertDebugRecord = [&](auto *DR, Value *OldLoc, Value *NewLoc, in fixupDebugInfoPostExtraction()
1275 if (DR->getParent()->getParent() == &NewFunc) { in fixupDebugInfoPostExtraction()
1276 DR->replaceVariableLocationOp(OldLoc, NewLoc); in fixupDebugInfoPostExtraction()
1280 DIB.insertDeclare(NewLoc, DR->getVariable(), Expr, DR->getDebugLoc(), in fixupDebugInfoPostExtraction()
1285 NewLoc, DR->getVariable(), Expr, DR->getDebugLoc(), in fixupDebugInfoPostExtraction()
1360 for (DbgRecord &DR : I.getDbgRecordRange()) { in fixupDebugInfoPostExtraction()
1361 if (DbgLabelRecord *DLR = dyn_cast<DbgLabelRecord>(&DR)) { in fixupDebugInfoPostExtraction()
1366 DbgVariableRecord &DVR = cast<DbgVariableRecord>(DR); in fixupDebugInfoPostExtraction()
1401 for (DbgRecord &DR : I.getDbgRecordRange()) in fixupDebugInfoPostExtraction()
1402 DR.setDebugLoc(DebugLoc::replaceInlinedAtSubprogram(DR.getDebugLoc(), in fixupDebugInfoPostExtraction()
/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/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/Scalar/
H A DADCE.cpp549 for (DbgRecord &DR : make_early_inc_range(I.getDbgRecordRange())) { in removeDeadInstructions()
552 if (DbgVariableRecord *DVR = dyn_cast<DbgVariableRecord>(&DR); in removeDeadInstructions()
556 if (AliveScopes.count(DR.getDebugLoc()->getScope())) in removeDeadInstructions()
558 I.dropOneDbgRecord(&DR); in removeDeadInstructions()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenCLRuntime.cpp118 if (auto DR = dyn_cast<DeclRefExpr>(E)) { in getBlockExpr() local
119 E = cast<VarDecl>(DR->getDecl())->getInit(); in getBlockExpr()

12345