Home
last modified time | relevance | path

Searched refs:CountFD (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaBoundsSafety.cpp182 FieldDecl *CountFD = dyn_cast<FieldDecl>(CountDecl); in CheckCountedByAttrOnField() local
184 CountFD = IFD->getAnonField(); in CheckCountedByAttrOnField()
186 if (!CountFD) { in CheckCountedByAttrOnField()
196 if (FD->getParent() != CountFD->getParent()) { in CheckCountedByAttrOnField()
197 if (CountFD->getParent()->isUnion()) { in CheckCountedByAttrOnField()
198 Diag(CountFD->getBeginLoc(), diag::err_count_attr_refer_to_union) in CheckCountedByAttrOnField()
199 << Kind << CountFD->getSourceRange(); in CheckCountedByAttrOnField()
206 auto *CountRD = GetEnclosingNamedOrTopAnonRecord(CountFD); in CheckCountedByAttrOnField()
210 << CountFD << Kind << FieldTy->isArrayType() << E->getSourceRange(); in CheckCountedByAttrOnField()
211 Diag(CountFD->getBeginLoc(), in CheckCountedByAttrOnField()
[all …]
H A DSemaChecking.cpp5991 if (const FieldDecl *CountFD = FAMDecl->findCountedByField()) { in BuiltinCountedByRef() local
5992 TheCall->setType(Context.getPointerType(CountFD->getType())); in BuiltinCountedByRef()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuiltin.cpp1125 const FieldDecl *ArrayFD, const FieldDecl *CountFD, in GetCountFieldAndIndex() argument
1129 Value *Count = CGF.EmitLoadOfCountedByField(ME, ArrayFD, CountFD); in GetCountFieldAndIndex()
1161 const FieldDecl *CountFD = ArrayBaseFD->findCountedByField(); in emitCountedByPointerSize() local
1162 if (!CountFD) in emitCountedByPointerSize()
1240 bool IsSigned = CountFD->getType()->isSignedIntegerType(); in emitCountedByPointerSize()
1246 *this, ME, ArrayBaseFD, CountFD, Idx, ResType, IsSigned); in emitCountedByPointerSize()
1304 const FieldDecl *CountFD = FlexibleArrayMemberFD->findCountedByField(); in emitCountedByMemberSize() local
1305 if (!CountFD) in emitCountedByMemberSize()
1392 bool IsSigned = CountFD->getType()->isSignedIntegerType(); in emitCountedByMemberSize()
1414 *this, ME, FlexibleArrayMemberFD, CountFD, Idx, ResType, IsSigned); in emitCountedByMemberSize()
[all …]
H A DCGExpr.cpp4427 const FieldDecl *CountFD = FD->findCountedByField(); in EmitCountedByBoundsChecking() local
4428 if (!CountFD) in EmitCountedByBoundsChecking()
4432 getOffsetDifferenceInBits(*this, CountFD, FD)) { in EmitCountedByBoundsChecking()
4448 llvm::Type *CountTy = ConvertType(CountFD->getType()); in EmitCountedByBoundsChecking()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp8201 enum { OffsetFD = 0, CountFD, StrideFD }; in emitNonContiguousDescriptor() enumerator
8226 Value *CountLVal = Builder.CreateStructGEP(DimTy, DimsLVal, CountFD); in emitNonContiguousDescriptor()