Home
last modified time | relevance | path

Searched refs:ElementType (Results 1 – 25 of 92) sorted by relevance

1234

/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DAddress.h32 llvm::Type *ElementType; variable
36 AddressImpl(llvm::Value *Pointer, llvm::Type *ElementType, in AddressImpl() argument
38 : Pointer(Pointer), ElementType(ElementType), Alignment(Alignment) {} in AddressImpl()
40 llvm::Type *getElementType() const { return ElementType; } in getElementType()
48 llvm::PointerIntPair<llvm::Type *, 3, unsigned> ElementType; variable
51 AddressImpl(llvm::Value *Pointer, llvm::Type *ElementType, in AddressImpl() argument
53 : Pointer(Pointer), ElementType(ElementType) { in AddressImpl()
63 this->ElementType.setInt(AlignLog & 7); in AddressImpl()
66 llvm::Type *getElementType() const { return ElementType.getPointer(); } in getElementType()
68 unsigned AlignLog = (Pointer.getInt() << 3) | ElementType.getInt(); in getAlignment()
[all …]
H A DCGValue.h51 llvm::Type *ElementType; variable
77 V1.getPointer(), ElementType, CharUnits::fromQuantity(align)); in getAggregateAddress()
114 ER.ElementType = addr.getElementType();
182 llvm::Type *ElementType; variable
239 assert(ElementType == nullptr && "Global reg does not store elem type"); in Initialize()
242 ->isOpaqueOrPointeeTypeMatches(ElementType) && in Initialize()
342 return Address(getPointer(CGF), ElementType, getAlignment()); in getAddress()
347 ElementType = address.getElementType(); in setAddress()
353 return Address(getVectorPointer(), ElementType, getAlignment()); in getVectorAddress()
365 return Address(getMatrixPointer(), ElementType, getAlignment()); in getMatrixAddress()
[all …]
H A DCGExprCXX.cpp989 const CXXNewExpr *E, QualType ElementType, llvm::Type *ElementTy, in EmitNewArrayInitializer() argument
1003 QualType::DestructionKind DtorKind = ElementType.isDestructedType(); in EmitNewArrayInitializer()
1007 CharUnits ElementSize = getContext().getTypeSizeInChars(ElementType); in EmitNewArrayInitializer()
1015 if (!CGM.getTypes().isZeroInitializable(ElementType)) in EmitNewArrayInitializer()
1027 getContext().getTypeSizeInChars(ElementType).getQuantity() * in EmitNewArrayInitializer()
1046 AggValueSlot::forAddr(CurPtr, ElementType.getQualifiers(), in EmitNewArrayInitializer()
1094 ElementType, ElementAlign, in EmitNewArrayInitializer()
1185 ImplicitValueInitExpr IVIE(ElementType); in EmitNewArrayInitializer()
1198 assert(getContext().hasSameUnqualifiedType(ElementType, Init->getType()) && in EmitNewArrayInitializer()
1263 ElementType, ElementAlign, in EmitNewArrayInitializer()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.brendan/
H A Dtemplate29.C3 template <class ElementType> class A
5 A(ElementType) {} in A() argument
6 ElementType get() const ;
9 template <class ElementType> ElementType A<ElementType>::get() const in get()
10 { return ElementType(0); } in get()
/openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/LogicalView/Core/
H A DLVElement.h127 LVElement *ElementType = nullptr;
175 bool isTyped() const override { return ElementType != nullptr; } in isTyped()
179 bool getIsKindType() const { return ElementType && ElementType->getIsType(); } in getIsKindType()
181 return ElementType && ElementType->getIsScope(); in getIsKindScope()
280 LVElement *getType() const { return ElementType; } in getType()
285 ElementType = Element;
296 return ElementType ? ElementType->getQualifiedName() : ""; in getTypeQualifiedName()
/openbsd-src/gnu/llvm/llvm/tools/llvm-pdbutil/
H A DPrettyVariableDumper.cpp115 auto ElementType = Symbol.getElementType(); in dump() local
116 assert(ElementType); in dump()
117 if (!ElementType) in dump()
119 ElementType->dump(*this); in dump()
123 auto ElementType = Symbol.getElementType(); in dumpRight() local
124 assert(ElementType); in dumpRight()
125 if (!ElementType) in dumpRight()
128 ElementType->dumpRight(*this); in dumpRight()
H A DPrettyFunctionDumper.cpp211 auto ElementType = Symbol.getElementType(); in dump() local
213 ElementType->dump(*this); in dump()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DDerivedTypes.h373 static ArrayType *get(Type *ElementType, uint64_t NumElements);
425 static VectorType *get(Type *ElementType, ElementCount EC);
427 static VectorType *get(Type *ElementType, unsigned NumElements, in get() argument
429 return VectorType::get(ElementType, in get()
433 static VectorType *get(Type *ElementType, const VectorType *Other) { in get() argument
434 return VectorType::get(ElementType, Other->getElementCount()); in get()
531 static FixedVectorType *get(Type *ElementType, unsigned NumElts);
533 static FixedVectorType *get(Type *ElementType, const FixedVectorType *FVTy) { in get() argument
534 return get(ElementType, FVTy->getNumElements()); in get()
578 static ScalableVectorType *get(Type *ElementType, unsigned MinNumElts);
[all …]
H A DTypedPointerType.h36 static TypedPointerType *get(Type *ElementType, unsigned AddressSpace);
H A DConstants.h722 static Constant *getFP(Type *ElementType, ArrayRef<uint16_t> Elts);
723 static Constant *getFP(Type *ElementType, ArrayRef<uint32_t> Elts);
724 static Constant *getFP(Type *ElementType, ArrayRef<uint64_t> Elts);
794 static Constant *getFP(Type *ElementType, ArrayRef<uint16_t> Elts);
795 static Constant *getFP(Type *ElementType, ArrayRef<uint32_t> Elts);
796 static Constant *getFP(Type *ElementType, ArrayRef<uint64_t> Elts);
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DType.cpp640 ArrayType *ArrayType::get(Type *ElementType, uint64_t NumElements) { in get() argument
641 assert(isValidElementType(ElementType) && "Invalid type for array element!"); in get()
643 LLVMContextImpl *pImpl = ElementType->getContext().pImpl; in get()
645 pImpl->ArrayTypes[std::make_pair(ElementType, NumElements)]; in get()
648 Entry = new (pImpl->Alloc) ArrayType(ElementType, NumElements); in get()
670 VectorType *VectorType::get(Type *ElementType, ElementCount EC) { in get() argument
672 return ScalableVectorType::get(ElementType, EC.getKnownMinValue()); in get()
674 return FixedVectorType::get(ElementType, EC.getKnownMinValue()); in get()
686 FixedVectorType *FixedVectorType::get(Type *ElementType, unsigned NumElts) { in get() argument
688 assert(isValidElementType(ElementType) && "Element type of a VectorType must " in get()
[all …]
H A DConstants.cpp2973 Constant *ConstantDataArray::getFP(Type *ElementType, ArrayRef<uint16_t> Elts) { in getFP() argument
2974 assert((ElementType->isHalfTy() || ElementType->isBFloatTy()) && in getFP()
2976 Type *Ty = ArrayType::get(ElementType, Elts.size()); in getFP()
2980 Constant *ConstantDataArray::getFP(Type *ElementType, ArrayRef<uint32_t> Elts) { in getFP() argument
2981 assert(ElementType->isFloatTy() && "Element type is not a 32-bit float type"); in getFP()
2982 Type *Ty = ArrayType::get(ElementType, Elts.size()); in getFP()
2986 Constant *ConstantDataArray::getFP(Type *ElementType, ArrayRef<uint64_t> Elts) { in getFP() argument
2987 assert(ElementType->isDoubleTy() && in getFP()
2989 Type *Ty = ArrayType::get(ElementType, Elts.size()); in getFP()
3047 Constant *ConstantDataVector::getFP(Type *ElementType, in getFP() argument
[all …]
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/LogicalView/Core/
H A DLVElement.cpp30 return ElementType && ElementType->getIsType() in getTypeAsType()
31 ? static_cast<LVType *>(ElementType) in getTypeAsType()
36 return ElementType && ElementType->getIsScope() in getTypeAsScope()
37 ? static_cast<LVScope *>(ElementType) in getTypeAsScope()
74 return ElementType ? ElementType->getName() : StringRef(); in getTypeName()
/openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/deltas/
H A DReduceOperands.cpp107 Type *ElementType = VT->getElementType(); in reduceOperandsOneDeltaPass() local
109 if (ElementType->isFloatingPointTy()) { in reduceOperandsOneDeltaPass()
110 C = ConstantFP::get(ElementType, 1.0); in reduceOperandsOneDeltaPass()
111 } else if (IntegerType *IntTy = dyn_cast<IntegerType>(ElementType)) { in reduceOperandsOneDeltaPass()
/openbsd-src/gnu/llvm/libcxx/include/
H A Dspan22 template <class ElementType, size_t Extent = dynamic_extent>
25 template<class ElementType, size_t Extent>
26 inline constexpr bool ranges::enable_view<span<ElementType, Extent>> = true;
28 template<class ElementType, size_t Extent>
29 inline constexpr bool ranges::enable_borrowed_range<span<ElementType, Extent>> = true;
32 template <class ElementType, size_t Extent>
34 (sizeof(ElementType) * Extent))> as_bytes(span<ElementType, Extent> s) noexcept;
36 template <class ElementType, size_t Extent>
38 (sizeof(ElementType) * Extent))> as_writable_bytes(span<ElementType, Extent> s) noexcept;
41 template <class ElementType, size_t Extent = dynamic_extent>
[all …]
/openbsd-src/gnu/llvm/lldb/source/Plugins/Platform/QemuUser/
H A DPlatformQemuUserProperties.td18 ElementType<"String">,
22 ElementType<"String">,
/openbsd-src/gnu/llvm/lldb/include/lldb/Core/
H A DPropertiesBase.td54 class ElementType<string value> {
55 string ElementType = value;
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DIVDescriptors.h372 return ElementType; in getElementType()
386 Type *ElementType = nullptr,
399 Type *ElementType = nullptr; variable
/openbsd-src/gnu/llvm/llvm/lib/Target/DirectX/
H A DDXILResource.cpp246 Shape, ExtProps.ElementType.value_or(ComponentType::Invalid), 8, OS); in print()
297 ExtProps.ElementType = ElTy; in parseSourceType()
327 if (ElementType) { in write()
331 B.getInt32(static_cast<uint32_t>(*ElementType)))); in write()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DIVDescriptors.cpp1267 Type *ElementType, in InductionDescriptor() argument
1270 ElementType(ElementType) { in InductionDescriptor()
1299 assert(ElementType && "Pointer induction must have element type"); in InductionDescriptor()
1301 assert(!ElementType && "Non-pointer induction cannot have element type"); in InductionDescriptor()
1573 Type *ElementType = PtrTy->isOpaque() in isInductionPHI() local
1576 if (!ElementType->isSized()) in isInductionPHI()
1581 TypeSize TySize = DL.getTypeAllocSize(ElementType); in isInductionPHI()
1595 /* BinOp */ nullptr, ElementType); in isInductionPHI()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DType.cpp136 ElementType(et) { in ArrayType()
142 QualType ElementType, in getNumAddressingBits() argument
144 uint64_t ElementSize = Context.getTypeSizeInChars(ElementType).getQuantity(); in getNumAddressingBits()
223 QualType ElementType, in DependentVectorType() argument
229 ElementType->getDependence() | in DependentVectorType()
232 Context(Context), ElementType(ElementType), SizeExpr(SizeExpr), Loc(Loc) { in DependentVectorType()
238 QualType ElementType, const Expr *SizeExpr, in Profile() argument
240 ID.AddPointer(ElementType.getAsOpaquePtr()); in Profile()
246 const ASTContext &Context, QualType ElementType, QualType can, in DependentSizedExtVectorType() argument
250 ElementType->getDependence() | in DependentSizedExtVectorType()
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DType.h2724 QualType ElementType;
2728 ElementType(Element) {}
2731 QualType getElementType() const { return ElementType; }
3029 QualType ElementType;
3038 QualType getElementType() const { return ElementType; }
3098 QualType ElementType,
3330 QualType ElementType;
3334 DependentSizedExtVectorType(const ASTContext &Context, QualType ElementType,
3339 QualType getElementType() const { return ElementType; }
3354 QualType ElementType, Expr *SizeExpr);
[all …]
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DExpandVectorPredication.cpp446 auto *ElementType = in expandPredicationInMemoryIntrinsic() local
450 AlignOpt.value_or(DL.getPrefTypeAlign(ElementType)), MaskParam); in expandPredicationInMemoryIntrinsic()
454 auto *ElementType = cast<VectorType>(VPI.getType())->getElementType(); in expandPredicationInMemoryIntrinsic() local
457 AlignOpt.value_or(DL.getPrefTypeAlign(ElementType)), MaskParam, nullptr, in expandPredicationInMemoryIntrinsic()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DTreeTransform.h858 QualType RebuildArrayType(QualType ElementType,
870 QualType RebuildConstantArrayType(QualType ElementType,
882 QualType RebuildIncompleteArrayType(QualType ElementType,
892 QualType RebuildVariableArrayType(QualType ElementType,
903 QualType RebuildDependentSizedArrayType(QualType ElementType,
914 QualType RebuildVectorType(QualType ElementType, unsigned NumElements,
922 QualType RebuildDependentVectorType(QualType ElementType, Expr *SizeExpr,
931 QualType RebuildExtVectorType(QualType ElementType, unsigned NumElements,
939 QualType RebuildDependentSizedExtVectorType(QualType ElementType,
944 QualType RebuildConstantMatrixType(QualType ElementType, unsigned NumRows,
[all …]
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp75 QualType ElementType = NE->getAllocatedType(); in getExtentSizeOfNewTarget() local
77 CharUnits TypeSize = AstContext.getTypeSizeInChars(ElementType); in getExtentSizeOfNewTarget()

1234