/freebsd/contrib/ofed/libibverbs/ |
H A D | opcode.h | 120 IBV_OPCODE(RD, SEND_FIRST), 121 IBV_OPCODE(RD, SEND_MIDDLE), 122 IBV_OPCODE(RD, SEND_LAST), 123 IBV_OPCODE(RD, SEND_LAST_WITH_IMMEDIATE), 124 IBV_OPCODE(RD, SEND_ONLY), 125 IBV_OPCODE(RD, SEND_ONLY_WITH_IMMEDIATE), 126 IBV_OPCODE(RD, RDMA_WRITE_FIRST), 127 IBV_OPCODE(RD, RDMA_WRITE_MIDDLE), 128 IBV_OPCODE(RD, RDMA_WRITE_LAST), 129 IBV_OPCODE(RD, RDMA_WRITE_LAST_WITH_IMMEDIATE), [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | PaddingChecker.cpp | 53 bool VisitRecordDecl(const RecordDecl *RD) { in checkASTDecl() 54 Checker->visitRecord(RD); in checkASTDecl() 72 void visitRecord(const RecordDecl *RD, uint64_t PadMultiplier = 1) const { in visitRecord() argument 73 if (shouldSkipDecl(RD)) in visitRecord() 78 if (!(RD = RD->getDefinition())) in visitRecord() 85 if (auto *CXXRD = dyn_cast<CXXRecordDecl>(RD)) in visitRecord() 90 auto &ASTContext = RD->getASTContext(); in visitRecord() 91 const ASTRecordLayout &RL = ASTContext.getASTRecordLayout(RD); in visitRecord() 94 CharUnits BaselinePad = calculateBaselinePad(RD, ASTContext, RL); in visitRecord() 101 calculateOptimalPad(RD, ASTContext, RL); in visitRecord() [all …]
|
H A D | MoveChecker.cpp | 147 ObjectKind classifyObject(const MemRegion *MR, const CXXRecordDecl *RD) const; 152 const CXXRecordDecl *RD, MisuseKind MK) const; 154 bool belongsTo(const CXXRecordDecl *RD, const llvm::StringSet<> &Set) const; 159 const CXXRecordDecl *RD, MisuseKind MK) in MovedBugVisitor() argument 160 : Chk(Chk), Region(R), RD(RD), MK(MK), Found(false) {} in MovedBugVisitor() 181 const CXXRecordDecl *RD; member in __anona0b2285a0211::MoveChecker::MovedBugVisitor 211 const CXXRecordDecl *RD, MisuseKind MK, 217 ExplodedNode *tryToReportBug(const MemRegion *Region, const CXXRecordDecl *RD, 301 ObjectKind OK = Chk.classifyObject(Region, RD); in VisitNode() 306 Chk.explainObject(OS, Region, RD, MK); in VisitNode() [all …]
|
H A D | LLVMConventionsChecker.cpp | 65 static bool IsClangType(const RecordDecl *RD) { in IsClangType() argument 66 return RD->getName() == "Type" && InNamespace(RD, "clang"); in IsClangType() 69 static bool IsClangDecl(const RecordDecl *RD) { in IsClangDecl() argument 70 return RD->getName() == "Decl" && InNamespace(RD, "clang"); in IsClangDecl() 73 static bool IsClangStmt(const RecordDecl *RD) { in IsClangStmt() argument 74 return RD->getName() == "Stmt" && InNamespace(RD, "clang"); in IsClangStmt() 77 static bool IsClangAttr(const RecordDecl *RD) { in IsClangAttr() argument 78 return RD->getName() == "Attr" && InNamespace(RD, "clang"); in IsClangAttr() 250 const RecordDecl *RD = RT->getDecl()->getDefinition(); in Visit() local 251 for (auto *I : RD->fields()) in Visit()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | RecordLayoutBuilder.cpp | 86 bool getExternalNVBaseOffset(const CXXRecordDecl *RD, CharUnits &BaseOffset) { in getExternalNVBaseOffset() 87 auto Known = BaseOffsets.find(RD); in getExternalNVBaseOffset() 94 bool getExternalVBaseOffset(const CXXRecordDecl *RD, CharUnits &BaseOffset) { in getExternalVBaseOffset() 95 auto Known = VirtualBaseOffsets.find(RD); in getExternalVBaseOffset() 125 void AddSubobjectAtOffset(const CXXRecordDecl *RD, CharUnits Offset); 130 void UpdateEmptyFieldSubobjects(const CXXRecordDecl *RD, 152 bool CanPlaceSubobjectAtOffset(const CXXRecordDecl *RD, 158 bool CanPlaceFieldSubobjectAtOffset(const CXXRecordDecl *RD, 232 EmptySubobjectMap::CanPlaceSubobjectAtOffset(const CXXRecordDecl *RD, in CanPlaceSubobjectAtOffset() argument 235 if (!RD->isEmpty()) in CanPlaceSubobjectAtOffset() [all …]
|
H A D | VTTBuilder.cpp | 60 const CXXRecordDecl *RD = Base.getBase(); in LayoutSecondaryVTTs() local 62 for (const auto &I : RD->bases()) { in LayoutSecondaryVTTs() 70 const ASTRecordLayout &Layout = Ctx.getASTRecordLayout(RD); in LayoutSecondaryVTTs() 85 const CXXRecordDecl *RD = Base.getBase(); in LayoutSecondaryVirtualPointers() local 89 if (!RD->getNumVBases() && !BaseIsMorallyVirtual) in LayoutSecondaryVirtualPointers() 92 for (const auto &I : RD->bases()) { in LayoutSecondaryVirtualPointers() 117 const ASTRecordLayout &Layout = Ctx.getASTRecordLayout(RD); in LayoutSecondaryVirtualPointers() 154 void VTTBuilder::LayoutVirtualVTTs(const CXXRecordDecl *RD, in LayoutVirtualVTTs() argument 156 for (const auto &I : RD->bases()) { in LayoutVirtualVTTs() 180 const CXXRecordDecl *RD = Base.getBase(); in LayoutVTT() local [all …]
|
H A D | VTableBuilder.cpp | 330 const CXXRecordDecl *RD = Base.getBase(); in ComputeBaseOffsets() local 334 SubobjectNumber = ++SubobjectCounts[RD]; in ComputeBaseOffsets() 337 assert(!SubobjectOffsets.count(std::make_pair(RD, SubobjectNumber)) in ComputeBaseOffsets() 339 assert(!SubobjectLayoutClassOffsets.count(std::make_pair(RD, SubobjectNumber)) in ComputeBaseOffsets() 342 SubobjectOffsets[std::make_pair(RD, SubobjectNumber)] = Base.getBaseOffset(); in ComputeBaseOffsets() 343 SubobjectLayoutClassOffsets[std::make_pair(RD, SubobjectNumber)] = in ComputeBaseOffsets() 347 for (const auto &B : RD->bases()) { in ComputeBaseOffsets() 364 const ASTRecordLayout &Layout = Context.getASTRecordLayout(RD); in ComputeBaseOffsets() 380 const CXXRecordDecl *RD = Base.getBase(); in dump() local 381 const ASTRecordLayout &Layout = Context.getASTRecordLayout(RD); in dump() [all …]
|
H A D | ComparisonCategories.cpp | 107 if (const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(Lookup.front())) in lookupCXXRecordDecl() local 108 return RD; in lookupCXXRecordDecl() 119 if (const CXXRecordDecl *RD = lookupCXXRecordDecl(Ctx, NS, Kind)) in lookupInfo() local 120 return &Data.try_emplace((char)Kind, Ctx, RD, Kind).first->second; in lookupInfo() 129 const auto *RD = Ty->getAsCXXRecordDecl(); in lookupInfoForType() local 130 if (!RD) in lookupInfoForType() 134 const auto *CanonRD = RD->getCanonicalDecl(); in lookupInfoForType() 141 if (!RD->getEnclosingNamespaceContext()->isStdNamespace()) in lookupInfoForType() 153 if (getCategoryString(Kind) == RD->getName()) in lookupInfoForType() 154 return &Data.try_emplace((char)Kind, Ctx, RD, Kind).first->second; in lookupInfoForType()
|
H A D | Availability.cpp | 27 for (const auto *RD : Decl->redecls()) { in createFromDecl() local 28 for (const auto *A : RD->specific_attrs<AvailabilityAttr>()) { in createFromDecl() 37 if (const auto *A = RD->getAttr<UnavailableAttr>()) in createFromDecl() 41 if (const auto *A = RD->getAttr<DeprecatedAttr>()) in createFromDecl()
|
/freebsd/sys/ofed/include/rdma/ |
H A D | ib_pack.h | 154 IB_OPCODE(RD, SEND_FIRST), 155 IB_OPCODE(RD, SEND_MIDDLE), 156 IB_OPCODE(RD, SEND_LAST), 157 IB_OPCODE(RD, SEND_LAST_WITH_IMMEDIATE), 158 IB_OPCODE(RD, SEND_ONLY), 159 IB_OPCODE(RD, SEND_ONLY_WITH_IMMEDIATE), 160 IB_OPCODE(RD, RDMA_WRITE_FIRST), 161 IB_OPCODE(RD, RDMA_WRITE_MIDDLE), 162 IB_OPCODE(RD, RDMA_WRITE_LAST), 163 IB_OPCODE(RD, RDMA_WRITE_LAST_WITH_IMMEDIATE), [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
H A D | RefCntblBaseVirtualDtorChecker.cpp | 94 } else if (auto *RD = dyn_cast<RecordType>(PointeeType)) { in VisitCXXDeleteExpr() local 95 if (RD->getDecl() == ClassDecl) in VisitCXXDeleteExpr() 100 if (auto *RD = dyn_cast<RecordType>(Type)) { in VisitCXXDeleteExpr() local 101 if (RD->getDecl() == ClassDecl) in VisitCXXDeleteExpr() 153 bool VisitCXXRecordDecl(const CXXRecordDecl *RD) { in checkASTDecl() 154 if (!RD->hasDefinition()) in checkASTDecl() 157 Decls.insert(RD); in checkASTDecl() 159 for (auto &Base : RD->bases()) { in checkASTDecl() 162 (AccSpec == AS_none && RD->isClass())) in checkASTDecl() 181 bool IsCRTP = TemplT->getAsCXXRecordDecl() == RD; in checkASTDecl() [all …]
|
H A D | NoUncountedMembersChecker.cpp | 58 bool VisitRecordDecl(const RecordDecl *RD) { in checkASTDecl() 59 Checker->visitRecordDecl(RD); in checkASTDecl() 68 void visitRecordDecl(const RecordDecl *RD) const { in visitRecordDecl() 69 if (shouldSkipDecl(RD)) in visitRecordDecl() 72 for (auto *Member : RD->fields()) { in visitRecordDecl() 82 reportBug(Member, MemberType, MemberCXXRD, RD); in visitRecordDecl() 88 bool shouldSkipDecl(const RecordDecl *RD) const { in shouldSkipDecl() 89 if (!RD->isThisDeclarationADefinition()) in shouldSkipDecl() 92 if (RD->isImplicit()) in shouldSkipDecl() 95 if (RD->isLambda()) in shouldSkipDecl() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGVTT.cpp | 43 const CXXRecordDecl *RD) { in EmitVTTDefinition() argument 44 VTTBuilder Builder(CGM.getContext(), RD, /*GenerateDefinition=*/true); in EmitVTTDefinition() 53 VTables.push_back(GetAddrOfVTTVTable(*this, CGM, RD, *i, Linkage, in EmitVTTDefinition() 63 if (VTTVT.getBase() == RD) { in EmitVTTDefinition() 66 getItaniumVTableContext().getVTableLayout(RD).getAddressPoint( in EmitVTTDefinition() 114 CGM.setGVProperties(VTT, RD); in EmitVTTDefinition() 117 llvm::GlobalVariable *CodeGenVTables::GetAddrOfVTT(const CXXRecordDecl *RD) { in GetAddrOfVTT() argument 118 assert(RD->getNumVBases() && "Only classes with virtual bases need a VTT"); in GetAddrOfVTT() 123 .mangleCXXVTT(RD, Out); in GetAddrOfVTT() 127 (void) CGM.getCXXABI().getAddrOfVTable(RD, CharUnits()); in GetAddrOfVTT() [all …]
|
H A D | MicrosoftCXXABI.cpp | 62 RecordArgABI getRecordArgABI(const CXXRecordDecl *RD) const override; 99 std::vector<CharUnits> getVBPtrOffsets(const CXXRecordDecl *RD) override { in getVBPtrOffsets() argument 102 const ASTRecordLayout &Layout = Context.getASTRecordLayout(RD); in getVBPtrOffsets() 104 const VBTableGlobals &VBGlobals = enumerateVBTables(RD); in getVBPtrOffsets() 130 llvm::GlobalVariable *getMSCompleteObjectLocator(const CXXRecordDecl *RD, 177 bool canSpeculativelyEmitVTable(const CXXRecordDecl *RD) const override { in canSpeculativelyEmitVTable() 188 const CXXRecordDecl *RD) override; 194 const CXXRecordDecl *RD) override; 307 void emitVTableTypeMetadata(const VPtrInfo &Info, const CXXRecordDecl *RD, 311 const CXXRecordDecl *RD) override; [all …]
|
H A D | CGVTables.cpp | 920 const CXXRecordDecl *RD, const BaseSubobject &Base, bool BaseIsVirtual, in GenerateConstructionVTable() argument 928 Base.getBase(), Base.getBaseOffset(), BaseIsVirtual, RD)); in GenerateConstructionVTable() 937 .mangleCXXCtorVTable(RD, Base.getBaseOffset().getQuantity(), in GenerateConstructionVTable() 981 CGM.setGVProperties(VTable, RD); in GenerateConstructionVTable() 983 CGM.EmitVTableTypeMetadata(RD, VTable, *VTLayout.get()); in GenerateConstructionVTable() 1069 const CXXRecordDecl *RD) { in shouldEmitAvailableExternallyVTable() argument 1071 CGM.getCXXABI().canSpeculativelyEmitVTable(RD); in shouldEmitAvailableExternallyVTable() 1078 CodeGenModule::getVTableLinkage(const CXXRecordDecl *RD) { in getVTableLinkage() argument 1079 if (!RD->isExternallyVisible()) in getVTableLinkage() 1084 RD->isInNamedModule(); in getVTableLinkage() [all …]
|
H A D | CodeGenTypes.cpp | 51 void CodeGenTypes::addRecordTypeName(const RecordDecl *RD, in addRecordTypeName() argument 56 OS << RD->getKindName() << '.'; in addRecordTypeName() 61 PrintingPolicy Policy = RD->getASTContext().getPrintingPolicy(); in addRecordTypeName() 66 if (RD->getIdentifier()) { in addRecordTypeName() 69 if (RD->getDeclContext()) in addRecordTypeName() 70 RD->printQualifiedName(OS, Policy); in addRecordTypeName() 72 RD->printName(OS, Policy); in addRecordTypeName() 73 } else if (const TypedefNameDecl *TDD = RD->getTypedefNameForAnonDecl()) { in addRecordTypeName() 244 const RecordDecl *RD = cast<RecordDecl>(TD); in UpdateCompletedType() local 245 if (RD->isDependentType()) return; in UpdateCompletedType() [all …]
|
H A D | CGVTables.h | 105 uint64_t getSubVTTIndex(const CXXRecordDecl *RD, BaseSubobject Base); 109 uint64_t getSecondaryVirtualPointerIndex(const CXXRecordDecl *RD, 115 GenerateConstructionVTable(const CXXRecordDecl *RD, const BaseSubobject &Base, 122 llvm::GlobalVariable *GetAddrOfVTT(const CXXRecordDecl *RD); 127 const CXXRecordDecl *RD); 136 void GenerateClassData(const CXXRecordDecl *RD); 138 bool isVTableExternal(const CXXRecordDecl *RD);
|
H A D | ABIInfoImpl.cpp | 115 const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(RT->getDecl()); in getRecordArgABI() local 116 if (!RD) { in getRecordArgABI() 121 return CXXABI.getRecordArgABI(RD); in getRecordArgABI() 297 const RecordDecl *RD = RT->getDecl(); in isEmptyRecord() local 298 if (RD->hasFlexibleArrayMember()) in isEmptyRecord() 302 if (const CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(RD)) in isEmptyRecord() 307 for (const auto *I : RD->fields()) in isEmptyRecord() 329 const RecordDecl *RD = RT->getDecl(); in isEmptyRecordForLayout() local 332 if (const CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(RD)) { in isEmptyRecordForLayout() 341 for (const auto *I : RD->fields()) in isEmptyRecordForLayout() [all …]
|
H A D | CodeGenTBAA.cpp | 104 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in isValidBaseType() local 106 if (!RD) in isValidBaseType() 108 if (RD->hasFlexibleArrayMember()) in isValidBaseType() 112 if (RD->isStruct() || RD->isClass()) in isValidBaseType() 346 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in CollectFields() local 347 if (RD->hasFlexibleArrayMember()) in CollectFields() 351 if (const CXXRecordDecl *Decl = dyn_cast<CXXRecordDecl>(RD)) in CollectFields() 355 const ASTRecordLayout &Layout = Context.getASTRecordLayout(RD); in CollectFields() 356 const CGRecordLayout &CGRL = CGTypes.getCGRecordLayout(RD); in CollectFields() 359 for (RecordDecl::field_iterator i = RD->field_begin(), e = RD->field_end(); in CollectFields() [all …]
|
H A D | ItaniumCXXABI.cpp | 73 RecordArgABI getRecordArgABI(const CXXRecordDecl *RD) const override { in getRecordArgABI() 75 if (!RD->canPassInRegisters()) in getRecordArgABI() 174 void EmitFundamentalRTTIDescriptors(const CXXRecordDecl *RD); 196 const CXXRecordDecl *RD = RecordTy->getAsCXXRecordDecl(); in hasUniqueVTablePointer() local 211 if (!llvm::GlobalValue::isWeakForLinker(CGM.getVTableLinkage(RD))) in hasUniqueVTablePointer() 219 if (CGM.GetLLVMVisibility(RD->getVisibility()) != in hasUniqueVTablePointer() 290 const CXXRecordDecl *RD) override; 311 llvm::GlobalVariable *getAddrOfVTable(const CXXRecordDecl *RD, 323 void emitVirtualInheritanceTables(const CXXRecordDecl *RD) override; 325 bool canSpeculativelyEmitVTable(const CXXRecordDecl *RD) const override; [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | VTableBuilder.h | 67 static VTableComponent MakeRTTI(const CXXRecordDecl *RD) { in MakeRTTI() argument 68 return VTableComponent(CK_RTTI, reinterpret_cast<uintptr_t>(RD)); in MakeRTTI() 337 virtual void computeVTableRelatedInformation(const CXXRecordDecl *RD) = 0; 395 void computeVTableRelatedInformation(const CXXRecordDecl *RD) override; 411 const VTableLayout &getVTableLayout(const CXXRecordDecl *RD) { in getVTableLayout() argument 412 computeVTableRelatedInformation(RD); in getVTableLayout() 413 assert(VTableLayouts.count(RD) && "No layout for this record decl!"); in getVTableLayout() 415 return *VTableLayouts[RD]; in getVTableLayout() 433 CharUnits getVirtualBaseOffsetOffset(const CXXRecordDecl *RD, 478 VPtrInfo(const CXXRecordDecl *RD) in VPtrInfo() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaBoundsSafety.cpp | 28 const auto *RD = FD->getParent(); in GetEnclosingNamedOrTopAnonRecord() local 33 while (RD && (RD->isAnonymousStructOrUnion() || in GetEnclosingNamedOrTopAnonRecord() 34 (!RD->isCompleteDefinition() && RD->getName().empty()))) { in GetEnclosingNamedOrTopAnonRecord() 35 const auto *Parent = dyn_cast<RecordDecl>(RD->getParent()); in GetEnclosingNamedOrTopAnonRecord() 38 RD = Parent; in GetEnclosingNamedOrTopAnonRecord() 40 return RD; in GetEnclosingNamedOrTopAnonRecord() 176 auto *RD = GetEnclosingNamedOrTopAnonRecord(FD); in CheckCountedByAttrOnField() local 179 if (RD != CountRD) { in CheckCountedByAttrOnField()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
H A D | VEAsmPrinter.cpp | 85 static void emitSIC(MCStreamer &OutStreamer, MCOperand &RD, in emitSIC() argument 89 SICInst.addOperand(RD); in emitSIC() 105 static void emitLEAzzi(MCStreamer &OutStreamer, MCOperand &Imm, MCOperand &RD, in emitLEAzzi() argument 109 LEAInst.addOperand(RD); in emitLEAzzi() 117 static void emitLEASLzzi(MCStreamer &OutStreamer, MCOperand &Imm, MCOperand &RD, in emitLEASLzzi() argument 121 LEASLInst.addOperand(RD); in emitLEASLzzi() 130 MCOperand &RD, const MCSubtargetInfo &STI) { in emitLEAzii() argument 133 LEAInst.addOperand(RD); in emitLEAzii() 142 MCOperand &RS2, MCOperand &Imm, MCOperand &RD, in emitLEASLrri() argument 146 LEASLInst.addOperand(RD); in emitLEASLrri() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/ |
H A D | SparcAsmPrinter.cpp | 115 static void EmitRDPC(MCStreamer &OutStreamer, MCOperand &RD, in EmitRDPC() argument 119 RDPCInst.addOperand(RD); in EmitRDPC() 125 MCOperand &Imm, MCOperand &RD, in EmitSETHI() argument 130 SETHIInst.addOperand(RD); in EmitSETHI() 136 MCOperand &RS1, MCOperand &Src2, MCOperand &RD, in EmitBinary() argument 141 Inst.addOperand(RD); in EmitBinary() 148 MCOperand &RS1, MCOperand &Imm, MCOperand &RD, in EmitOR() argument 150 EmitBinary(OutStreamer, SP::ORri, RS1, Imm, RD, STI); in EmitOR() 154 MCOperand &RS1, MCOperand &RS2, MCOperand &RD, in EmitADD() argument 156 EmitBinary(OutStreamer, SP::ADDrr, RS1, RS2, RD, STI); in EmitADD() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonBitSimplify.cpp | 256 static bool isTransparentCopy(const BitTracker::RegisterRef &RD, 956 bool HexagonBitSimplify::isTransparentCopy(const BitTracker::RegisterRef &RD, in isTransparentCopy() argument 958 if (!RD.Reg.isVirtual() || !RS.Reg.isVirtual()) in isTransparentCopy() 961 auto *DRC = getFinalVRegClass(RD, MRI); in isTransparentCopy() 1095 bool usedBitsEqual(BitTracker::RegisterRef RD, BitTracker::RegisterRef RS); 1306 bool RedundantInstrElimination::usedBitsEqual(BitTracker::RegisterRef RD, in usedBitsEqual() argument 1308 const BitTracker::RegisterCell &DC = BT.lookup(RD.Reg); in usedBitsEqual() 1312 if (!HBS::getSubregMask(RD, DB, DW, MRI)) in usedBitsEqual() 1321 if (!computeUsedBits(RD.Reg, Used)) in usedBitsEqual() 1347 BitTracker::RegisterRef RD = MI->getOperand(0); in processBlock() local [all …]
|