Home
last modified time | relevance | path

Searched refs:FieldTy (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaBoundsSafety.cpp65 const auto FieldTy = FD->getType(); in CheckCountedByAttrOnField() local
66 if (FieldTy->isArrayType() && (CountInBytes || OrNull)) { in CheckCountedByAttrOnField()
72 if (!FieldTy->isArrayType() && !FieldTy->isPointerType()) { in CheckCountedByAttrOnField()
81 if (FieldTy->isArrayType() && in CheckCountedByAttrOnField()
82 !Decl::isFlexibleArrayMemberLike(getASTContext(), FD, FieldTy, in CheckCountedByAttrOnField()
94 if (FieldTy->isPointerType()) { in CheckCountedByAttrOnField()
95 PointeeTy = FieldTy->getPointeeType(); in CheckCountedByAttrOnField()
98 assert(FieldTy->isArrayType()); in CheckCountedByAttrOnField()
99 const ArrayType *AT = getASTContext().getAsArrayType(FieldTy); in CheckCountedByAttrOnField()
143 if (FieldTy->isArrayType() && !getLangOpts().BoundsSafety) { in CheckCountedByAttrOnField()
[all …]
H A DSemaDecl.cpp9760 QualType FieldTy = Field->getType(); in checkIsValidOpenCLKernelParameter() local
9763 assert((FieldTy->isArrayType() || FieldTy->isRecordType()) && in checkIsValidOpenCLKernelParameter()
9765 const Type *FieldRecTy = FieldTy->getPointeeOrArrayElementType(); in checkIsValidOpenCLKernelParameter()
18668 QualType FieldTy, bool IsMsStruct, in VerifyBitField() argument
18676 if (!FieldTy->isDependentType() && !FieldTy->isIntegralOrEnumerationType()) { in VerifyBitField()
18678 if (RequireCompleteSizedType(FieldLoc, FieldTy, in VerifyBitField()
18683 << FieldName << FieldTy << BitWidth->getSourceRange(); in VerifyBitField()
18685 << FieldTy << BitWidth->getSourceRange(); in VerifyBitField()
18721 if (!FieldTy->isDependentType()) { in VerifyBitField()
18722 uint64_t TypeStorageSize = Context.getTypeSize(FieldTy); in VerifyBitField()
[all …]
H A DSemaOpenMP.cpp5890 QualType FieldTy = FD->getType(); in processImplicitMapsWithDefaultMappers() local
5891 if (FieldTy.isNull() || in processImplicitMapsWithDefaultMappers()
5892 !(FieldTy->isStructureOrClassType() || FieldTy->isUnionType())) in processImplicitMapsWithDefaultMappers()
5900 Types.emplace_back(FieldTy, FD); in processImplicitMapsWithDefaultMappers()
21764 QualType FieldTy = FD->getType(); in isImplicitMapperNeeded() local
21765 if (FieldTy.isNull() || in isImplicitMapperNeeded()
21766 !(FieldTy->isStructureOrClassType() || FieldTy->isUnionType())) in isImplicitMapperNeeded()
21774 Types.emplace_back(FieldTy, FD); in isImplicitMapperNeeded()
H A DSemaExpr.cpp13697 QualType FieldTy = Field->getType(); in DiagnoseRecursiveConstFields() local
13698 if (FieldTy.isConstQualified()) { in DiagnoseRecursiveConstFields()
13707 << FieldTy << Field->getSourceRange(); in DiagnoseRecursiveConstFields()
13711 FieldTy = FieldTy.getCanonicalType(); in DiagnoseRecursiveConstFields()
13712 if (const auto *FieldRecTy = FieldTy->getAs<RecordType>()) { in DiagnoseRecursiveConstFields()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DHLSLBufferLayoutBuilder.cpp192 QualType FieldTy = FD->getType(); in layoutField() local
194 if (FieldTy->isConstantArrayType()) { in layoutField()
196 QualType Ty = FieldTy; in layoutField()
212 CGM, cast<ConstantArrayType>(FieldTy.getTypePtr()), NewTy); in layoutField()
217 ElemLayoutTy = CGM.getTypes().ConvertTypeForMem(FieldTy); in layoutField()
222 } else if (FieldTy->isStructureOrClassType()) { in layoutField()
225 createLayoutType(cast<RecordType>(FieldTy->getAs<RecordType>())); in layoutField()
235 ElemLayoutTy = CGM.getTypes().ConvertTypeForMem(FieldTy); in layoutField()
H A DCGDebugInfo.cpp3391 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in CreateTypeDefinition() local
3392 if (!FieldTy) in CreateTypeDefinition()
3466 FieldTy = DBuilder.createObjCIVar(FieldName, FieldDefUnit, FieldLine, in CreateTypeDefinition()
3468 FieldTy, PropertyNode); in CreateTypeDefinition()
3469 EltTys.push_back(FieldTy); in CreateTypeDefinition()
4227 llvm::DIType *FieldTy = CGDebugInfo::getOrCreateType(FType, Unit); in CreateMemberType() local
4232 *Offset, llvm::DINode::FlagZero, FieldTy); in CreateMemberType()
4995 llvm::DIType *FieldTy = DBuilder.createMemberType( in EmitTypeForVarWithBlocksAttr() local
4998 EltTys.push_back(FieldTy); in EmitTypeForVarWithBlocksAttr()
5098 llvm::DIType *FieldTy = getOrCreateType(Field->getType(), Unit); in EmitDeclare() local
[all …]
H A DCGObjCMac.cpp6857 llvm::Type *FieldTy = CGM.getTypes().ConvertTypeForMem(IVD->getType()); in EmitIvarList() local
6858 unsigned Size = CGM.getDataLayout().getTypeAllocSize(FieldTy); in EmitIvarList()
H A DCGOpenMPRuntime.cpp1022 QualType FieldTy) { in addFieldToRecordDecl() argument
1024 C, DC, SourceLocation(), SourceLocation(), /*Id=*/nullptr, FieldTy, in addFieldToRecordDecl()
1025 C.getTrivialTypeSourceInfo(FieldTy, SourceLocation()), in addFieldToRecordDecl()
/freebsd/contrib/llvm-project/llvm/include/llvm/Bitcode/
H A DBitcodeConvenience.h166 template <typename FieldTy> static void emitOps(llvm::BitCodeAbbrev &abbrev) { in emitOps()
167 FieldTy::emitOp(abbrev); in emitOps()
175 template <typename FieldTy, typename Next, typename... Rest>
177 static_assert(!FieldTy::IsCompound, in emitOps()
179 FieldTy::emitOp(abbrev); in emitOps()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DPointer.cpp674 QualType FieldTy = F.Decl->getType(); in toRValue() local
676 if (std::optional<PrimType> T = Ctx.classify(FieldTy)) { in toRValue()
679 Ok &= Composite(FieldTy, FP, Value); in toRValue()
695 QualType FieldTy = FD->Decl->getType(); in toRValue() local
699 if (std::optional<PrimType> T = Ctx.classify(FieldTy)) { in toRValue()
702 Ok &= Composite(FieldTy, FP, Value); in toRValue()
/freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLParser.h593 template <class FieldTy>
594 bool parseMDField(LocTy Loc, StringRef Name, FieldTy &Result);
595 template <class FieldTy> bool parseMDField(StringRef Name, FieldTy &Result);
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DAMDGPU.cpp103 QualType FieldTy = Field->getType(); in numRegsForType() local
104 NumRegs += numRegsForType(FieldTy); in numRegsForType()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DType.cpp4262 QualType FieldTy = FD->getType(); in hasConstFields() local
4263 if (FieldTy.isConstQualified()) in hasConstFields()
4265 FieldTy = FieldTy.getCanonicalType(); in hasConstFields()
4266 if (const auto *FieldRecTy = FieldTy->getAs<RecordType>()) { in hasConstFields()
H A DExprConstant.cpp7441 QualType FieldTy = FD->getType(); in visitRecord() local
7442 if (!visit(Val.getStructField(FieldIdx), FieldTy, FieldOffset)) in visitRecord()
7712 QualType FieldTy = FD->getType(); in visit() local
7713 std::optional<APValue> SubObj = visitType(FieldTy, FieldOffset); in visit()
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp4641 template <class FieldTy> struct MDFieldImpl {
4643 FieldTy Val;
4646 void assign(FieldTy Val) { in assign()
4651 explicit MDFieldImpl(FieldTy Default) in MDFieldImpl()
5322 template <class FieldTy>
5323 bool LLParser::parseMDField(StringRef Name, FieldTy &Result) { in parseMDField()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVBuiltins.cpp2383 Type *FieldTy = ArrayType::get(BaseTy, Size); in buildNDRange() local
2385 FieldTy, MIRBuilder, SPIRV::AccessQualifier::ReadWrite, true); in buildNDRange()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp7694 const MDOperand &FieldTy = BaseNode->getOperand(Idx); in verifyTBAABaseNodeImpl() local
7696 if (!isa<MDNode>(FieldTy)) { in verifyTBAABaseNodeImpl()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h4680 const IdentifierInfo *FieldName, QualType FieldTy,