Home
last modified time | relevance | path

Searched refs:elementType (Results 1 – 25 of 42) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DAddress.h35 mlir::Type elementType; variable
40 Address(std::nullptr_t) : elementType(nullptr) {} in Address()
43 Address(mlir::Value pointer, mlir::Type elementType, in Address() argument
45 : pointerAndKnownNonNull(pointer, false), elementType(elementType), in Address()
51 assert(elementType && "Element type cannot be null"); in Address()
55 elementType); in Address()
90 .getPointee() == elementType); in getType()
99 .getPointee() == elementType); in getElementType()
100 return elementType; in getElementType()
H A DCIRGenValue.h164 mlir::Type elementType; variable
205 return Address(getPointer(), elementType, getAlignment()); in getAddress()
223 r.elementType = address.getElementType(); in makeAddr()
229 return Address(getVectorPointer(), elementType, getAlignment()); in getVectorAddress()
247 r.elementType = vecAddress.getElementType(); in makeVectorElt()
255 return Address(getBitFieldPointer(), elementType, getAlignment()); in getBitFieldAddress()
279 r.elementType = addr.getElementType(); in makeBitfield()
H A DCIRGenExprAggregate.cpp124 const QualType elementType = in emitArrayInit() local
127 if (elementType.isDestructedType()) { in emitArrayInit()
132 const QualType elementPtrType = cgf.getContext().getPointerType(elementType); in emitArrayInit()
134 const mlir::Type cirElementType = cgf.convertType(elementType); in emitArrayInit()
143 cgf.getContext().getTypeSizeInChars(elementType); in emitArrayInit()
167 const LValue elementLV = cgf.makeAddrLValue(address, elementType); in emitArrayInit()
181 cgf.getTypes().isZeroInitializable(elementType))) { in emitArrayInit()
202 Address(currentElement, cirElementType, elementAlign), elementType); in emitArrayInit()
H A DCIRGenExprConstant.cpp749 const QualType elementType = in tryEmitPrivate() local
758 tryEmitPrivateForMemory(value.getVectorElt(i), elementType); in tryEmitPrivate()
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/IR/
H A DCIRTypes.td186 The parameter `elementType` gives the type of the real and imaginary part of
187 the complex number. `elementType` must be either a CIR integer type or a CIR
196 let parameters = (ins CIR_AnyIntOrFloatType:$elementType);
199 TypeBuilderWithInferredContext<(ins "mlir::Type":$elementType), [{
200 return $_get(elementType.getContext(), elementType);
205 `<` $elementType `>`
311 let parameters = (ins "mlir::Type":$elementType, "uint64_t":$size);
315 "mlir::Type":$elementType, "uint64_t":$size
317 return $_get(elementType.getContext(), elementType, size);
322 `<` $elementType `x` $size `>`
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DTypeProperties.td13 def : Property<"elementType", QualType> {
17 def : Creator<[{ return ctx.getComplexType(elementType); }]>;
116 def : Property<"elementType", QualType> {
136 return ctx.getConstantArrayType(elementType, sizeValue, size,
144 ctx.getConstantArrayType(elementType,sizeValue,
151 return ctx.getIncompleteArrayType(elementType, sizeModifier,
162 return ctx.getVariableArrayType(elementType, size, sizeModifier,
171 return ctx.getDependentSizedArrayType(elementType, size, sizeModifier,
177 def : Property<"elementType", QualType> {
188 return ctx.getVectorType(elementType, numElements, vectorKind);
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DAddress.h154 Address(llvm::Value *pointer, llvm::Type *elementType, CharUnits alignment,
156 : Pointer(pointer, IsKnownNonNull), ElementType(elementType), in Pointer()
159 assert(elementType != nullptr && "Element type cannot be null"); in Pointer()
300 ConstantAddress(llvm::Constant *pointer, llvm::Type *elementType, in ConstantAddress() argument
302 : RawAddress(pointer, elementType, alignment) {} in ConstantAddress()
H A DConstantInitBuilder.cpp249 llvm::Type *elementType = element->getType(); in getOffsetFromGlobalTo() local
252 CharUnits::fromQuantity(layout.getABITypeAlign(elementType))); in getOffsetFromGlobalTo()
253 offset += CharUnits::fromQuantity(layout.getTypeStoreSize(elementType)); in getOffsetFromGlobalTo()
H A DCGCXXABI.cpp219 CharUnits CGCXXABI::getArrayCookieSizeImpl(QualType elementType) { in getArrayCookieSizeImpl() argument
235 QualType elementType) { in requiresArrayCookie() argument
241 return elementType.isDestructedType(); in requiresArrayCookie()
H A DCGExprAgg.cpp612 QualType elementType = in EmitArrayInit() local
614 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitArrayInit()
617 llvm::Type *llvmElementType = CGF.ConvertTypeForMem(elementType); in EmitArrayInit()
623 elementType.isTriviallyCopyableType(CGF.getContext())) { in EmitArrayInit()
650 QualType::DestructionKind dtorKind = elementType.isDestructedType(); in EmitArrayInit()
666 CGF.pushIrregularPartialArrayCleanup(begin, endOfInit, elementType, in EmitArrayInit()
693 Address(element, llvmElementType, elementAlign), elementType); in EmitArrayInit()
719 CGF.getTypes().isZeroInitializable(elementType))) { in EmitArrayInit()
757 Address(currentElement, llvmElementType, elementAlign), elementType); in EmitArrayInit()
2015 QualType elementType = in VisitArrayInitLoopExpr() local
[all …]
H A DCGDecl.cpp2437 QualType elementType, in emitArrayDestroy() argument
2442 assert(!elementType->isArrayType()); in emitArrayDestroy()
2464 llvm::Type *llvmElementType = ConvertTypeForMem(elementType); in emitArrayDestroy()
2469 pushRegularPartialArrayCleanup(begin, element, elementType, elementAlign, in emitArrayDestroy()
2474 elementType); in emitArrayDestroy()
2534 QualType elementType, CharUnits elementAlign, in RegularPartialArrayDestroy() argument
2537 ElementType(elementType), Destroyer(destroyer), in RegularPartialArrayDestroy()
2558 QualType elementType, in IrregularPartialArrayDestroy() argument
2562 ElementType(elementType), Destroyer(destroyer), in IrregularPartialArrayDestroy()
2581 QualType elementType, in pushIrregularPartialArrayCleanup() argument
[all …]
H A DCGExprCXX.cpp2078 QualType elementType) { in EmitArrayDelete() argument
2082 CGF.CGM.getCXXABI().ReadArrayCookie(CGF, deletedPtr, E, elementType, in EmitArrayDelete()
2091 numElements, elementType, in EmitArrayDelete()
2095 if (QualType::DestructionKind dtorKind = elementType.isDestructedType()) { in EmitArrayDelete()
2098 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitArrayDelete()
2109 CGF.emitArrayDestroy(arrayBegin, arrayEnd, elementType, elementAlign, in EmitArrayDelete()
H A DCGExprScalar.cpp4284 QualType elementType = pointerType->getPointeeType(); in emitPointerArithmetic() local
4286 = CGF.getContext().getAsVariableArrayType(elementType)) { in emitPointerArithmetic()
4311 if (elementType->isVoidType() || elementType->isFunctionType()) in emitPointerArithmetic()
4314 elemTy = CGF.ConvertTypeForMem(elementType); in emitPointerArithmetic()
4669 QualType elementType = expr->getLHS()->getType()->getPointeeType(); in EmitSub() local
4675 = CGF.getContext().getAsVariableArrayType(elementType)) { in EmitSub()
4677 elementType = VlaSize.Type; in EmitSub()
4681 CharUnits eltSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitSub()
4692 if (elementType->isVoidType() || elementType->isFunctionType()) in EmitSub()
4695 elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitSub()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DStore.cpp445 SVal StoreManager::getLValueElement(QualType elementType, NonLoc Offset, in getLValueElement() argument
452 if (!BT.isNull() && !elementType.isNull()) { in getLValueElement()
455 PointeeTy.getCanonicalType() == elementType.getCanonicalType()) in getLValueElement()
497 return loc::MemRegionVal(MRMgr.getElementRegion(elementType, Offset, in getLValueElement()
514 elementType, Offset, cast<SubRegion>(ElemR->getSuperRegion()), Ctx)); in getLValueElement()
525 return loc::MemRegionVal(MRMgr.getElementRegion(elementType, NewIdx, ArrayR, in getLValueElement()
H A DSimpleSValBuilder.cpp1165 QualType elementType; in evalBinOpLN() local
1172 elementType = elemReg->getElementType(); in evalBinOpLN()
1183 elementType = resultTy->getPointeeType(); in evalBinOpLN()
1189 if (elementType->isVoidType()) in evalBinOpLN()
1190 elementType = getContext().CharTy; in evalBinOpLN()
1193 return loc::MemRegionVal(MemMgr.getElementRegion(elementType, *indexV, in evalBinOpLN()
/freebsd/sys/netgraph/
H A Dng_parse.h336 const struct ng_parse_type *elementType; member
362 const struct ng_parse_type *elementType; member
H A Dng_parse.c266 return ALIGNMENT(fi->elementType); in ng_fixedarray_getAlign()
313 return ALIGNMENT(ai->elementType); in ng_array_getAlign()
1574 etype = ai->elementType; in ng_get_composite_etype()
1581 etype = fi->elementType; in ng_get_composite_etype()
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DASTTableGen.cpp80 } else if (auto elementType = getArrayElementType()) { in emitCXXValueTypeName() local
82 elementType.emitCXXValueTypeName(forRead, out); in emitCXXValueTypeName()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DType.cpp1018 QualType elementType = recurse(T->getElementType()); in TRIVIAL_TYPE_CLASS() local
1019 if (elementType.isNull()) in TRIVIAL_TYPE_CLASS()
1022 if (elementType.getAsOpaquePtr() == T->getElementType().getAsOpaquePtr()) in TRIVIAL_TYPE_CLASS()
1025 return Ctx.getComplexType(elementType); in TRIVIAL_TYPE_CLASS()
1087 QualType elementType = recurse(T->getElementType()); in VisitConstantArrayType() local
1088 if (elementType.isNull()) in VisitConstantArrayType()
1091 if (elementType.getAsOpaquePtr() == T->getElementType().getAsOpaquePtr()) in VisitConstantArrayType()
1094 return Ctx.getConstantArrayType(elementType, T->getSize(), T->getSizeExpr(), in VisitConstantArrayType()
1100 QualType elementType = recurse(T->getElementType()); in VisitVariableArrayType() local
1101 if (elementType.isNull()) in VisitVariableArrayType()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/
H A DLoweringHelpers.cpp105 mlir::Type elementType, mlir::Type convertedElementType) { in convertToDenseElementsAttr() argument
110 vectorSize, getZeroInitFromType<StorageTy>(elementType)); in convertToDenseElementsAttr()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DMemRegion.h1233 ElementRegion(QualType elementType, NonLoc Idx, const SubRegion *sReg) in ElementRegion() argument
1234 : TypedValueRegion(sReg, ElementRegionKind), ElementType(elementType), in ElementRegion()
1239 assert(!elementType.isNull() && !elementType->isVoidType() && in ElementRegion()
1243 static void ProfileRegion(llvm::FoldingSetNodeID& ID, QualType elementType,
1537 const ElementRegion *getElementRegion(QualType elementType, NonLoc Idx,
H A DStore.h158 virtual SVal getLValueElement(QualType elementType, NonLoc offset, SVal Base);
/freebsd/sys/dev/mpr/
H A Dmpr_sas_lsi.c279 u16 elementType; in mprsas_fw_work() local
296 elementType = le16toh(element->ElementFlags) & in mprsas_fw_work()
301 if ((elementType != in mprsas_fw_work()
303 && (elementType != in mprsas_fw_work()
/freebsd/contrib/expat/lib/
H A Dxmlparse.c540 static int setElementTypePrefix(XML_Parser parser, ELEMENT_TYPE *elementType);
3749 ELEMENT_TYPE *elementType; local
3762 elementType
3764 if (! elementType) {
3768 elementType = (ELEMENT_TYPE *)lookup(parser, &dtd->elementTypes, name,
3770 if (! elementType)
3772 if (parser->m_ns && ! setElementTypePrefix(parser, elementType))
3775 nDefaultAtts = elementType->nDefaultAtts;
3883 if (attId == elementType->defaultAtts[j].id) {
3884 isCdata = elementType->defaultAtts[j].isCdata;
[all …]
/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/
H A DLowerToLLVM.cpp1390 mlir::Type elementType = elementTypeIfVector(type); in matchAndRewrite() local
1396 if (mlir::isa<cir::IntType>(elementType)) { in matchAndRewrite()
1450 if (mlir::isa<cir::FPTypeInterface>(elementType)) { in matchAndRewrite()
1483 if (mlir::isa<cir::BoolType>(elementType)) { in matchAndRewrite()
1505 if (mlir::isa<cir::PointerType>(elementType)) { in matchAndRewrite()
1511 << elementType; in matchAndRewrite()
2224 mlir::Type elementType = elementTypeIfVector(op.getLhs().getType()); in matchAndRewrite() local
2226 if (auto intType = mlir::dyn_cast<cir::IntType>(elementType)) { in matchAndRewrite()
2231 } else if (mlir::isa<cir::FPTypeInterface>(elementType)) { in matchAndRewrite()
2236 return op.emitError() << "unsupported type for VecCmpOp: " << elementType; in matchAndRewrite()

12