Home
last modified time | relevance | path

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

12345

/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILPrettyPrinter.cpp53 case dxil::ElementType::I1: in getFormatName()
55 case dxil::ElementType::I16: in getFormatName()
57 case dxil::ElementType::U16: in getFormatName()
59 case dxil::ElementType::I32: in getFormatName()
61 case dxil::ElementType::U32: in getFormatName()
63 case dxil::ElementType::I64: in getFormatName()
65 case dxil::ElementType::U64: in getFormatName()
67 case dxil::ElementType::F16: in getFormatName()
69 case dxil::ElementType::F32: in getFormatName()
71 case dxil::ElementType::F64: in getFormatName()
[all …]
H A DDXILLegalizePass.cpp96 Type *ElementType = NewOperands[0]->getType(); in fixI8UseChain() local
98 ElementType = AI->getAllocatedType(); in fixI8UseChain()
100 ElementType = GEP->getSourceElementType(); in fixI8UseChain()
101 if (ElementType->isArrayTy()) in fixI8UseChain()
102 ElementType = ElementType->getArrayElementType(); in fixI8UseChain()
104 LoadInst *NewLoad = Builder.CreateLoad(ElementType, NewOperands[0]); in fixI8UseChain()
119 Type *ElementType = Load->getType(); in fixI8UseChain() local
122 uint32_t ElemSize = Load->getDataLayout().getTypeAllocSize(ElementType); in fixI8UseChain()
136 GEPType = ArrayType::get(ElementType, 1); // its a scalar in fixI8UseChain()
142 LoadInst *NewLoad = Builder.CreateLoad(ElementType, NewGEP); in fixI8UseChain()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DAddress.h44 llvm::Type *ElementType; variable
48 RawAddress(std::nullptr_t) : ElementType(nullptr) {} in RawAddress()
51 RawAddress(llvm::Value *Pointer, llvm::Type *ElementType, CharUnits Alignment,
54 ElementType(ElementType), Alignment(Alignment) { in PointerAndKnownNonNull()
56 assert(ElementType != nullptr && "Element type cannot be null"); in PointerAndKnownNonNull()
79 return ElementType; in getElementType()
137 llvm::Type *ElementType = nullptr; variable
151 Address(std::nullptr_t) : ElementType(nullptr) {} in Address()
156 : Pointer(pointer, IsKnownNonNull), ElementType(elementType), in Pointer()
163 Address(llvm::Value *BasePtr, llvm::Type *ElementType, CharUnits Alignment,
[all …]
H A DCGExprCXX.cpp1001 const CXXNewExpr *E, QualType ElementType, llvm::Type *ElementTy, in EmitNewArrayInitializer() argument
1015 QualType::DestructionKind DtorKind = ElementType.isDestructedType(); in EmitNewArrayInitializer()
1019 CharUnits ElementSize = getContext().getTypeSizeInChars(ElementType); in EmitNewArrayInitializer()
1027 if (!CGM.getTypes().isZeroInitializable(ElementType)) in EmitNewArrayInitializer()
1039 getContext().getTypeSizeInChars(ElementType).getQuantity() * in EmitNewArrayInitializer()
1072 AggValueSlot::forAddr(CurPtr, ElementType.getQualifiers(), in EmitNewArrayInitializer()
1124 EndOfInit, ElementType, ElementAlign, in EmitNewArrayInitializer()
1215 ImplicitValueInitExpr IVIE(ElementType); in EmitNewArrayInitializer()
1228 assert(getContext().hasSameUnqualifiedType(ElementType, Init->getType()) && in EmitNewArrayInitializer()
1295 CurPtr.emitRawPointer(*this), ElementType, in EmitNewArrayInitializer()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DDXILResource.cpp91 static StringRef getElementTypeName(ElementType ET) { in getElementTypeName()
93 case ElementType::I1: in getElementTypeName()
95 case ElementType::I16: in getElementTypeName()
97 case ElementType::U16: in getElementTypeName()
99 case ElementType::I32: in getElementTypeName()
101 case ElementType::U32: in getElementTypeName()
103 case ElementType::I64: in getElementTypeName()
105 case ElementType::U64: in getElementTypeName()
107 case ElementType::F16: in getElementTypeName()
109 case ElementType::F32: in getElementTypeName()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DType.cpp56 ArrayType *ArrayType::get(Type *ElementType, uint64_t NumElements) { in get() argument
57 return cast<ArrayType>(ElementType->getContext().getType( in get()
58 llvm::ArrayType::get(ElementType->LLVMTy, NumElements))); in get()
71 VectorType *VectorType::get(Type *ElementType, ElementCount EC) { in get() argument
72 return cast<VectorType>(ElementType->getContext().getType( in get()
73 llvm::VectorType::get(ElementType->LLVMTy, EC))); in get()
113 FixedVectorType *FixedVectorType::get(Type *ElementType, unsigned NumElts) { in get() argument
114 return cast<FixedVectorType>(ElementType->getContext().getType( in get()
115 llvm::FixedVectorType::get(ElementType->LLVMTy, NumElts))); in get()
118 ScalableVectorType *ScalableVectorType::get(Type *ElementType, in get() argument
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dmdspan33 template<class ElementType>
37 template<class ElementType, size_t ByteAlignment>
41 template<class ElementType, class Extents, class LayoutPolicy = layout_right,
42 class AccessorPolicy = default_accessor<ElementType>>
261 template<class ElementType>
264 using element_type = ElementType;
265 using reference = ElementType&;
266 using data_handle_type = ElementType*;
279 template<class ElementType, size_t ByteAlignment>
281 using offset_policy = default_accessor<ElementType>;
[all …]
H A Dspan36 template <class ElementType, size_t Extent = dynamic_extent>
39 template<class ElementType, size_t Extent>
40 inline constexpr bool ranges::enable_view<span<ElementType, Extent>> = true;
42 template<class ElementType, size_t Extent>
43 inline constexpr bool ranges::enable_borrowed_range<span<ElementType, Extent>> = true;
46 template <class ElementType, size_t Extent>
48 (sizeof(ElementType) * Extent))> as_bytes(span<ElementType, Extent> s) noexcept;
50 template <class ElementType, size_t Extent>
52 (sizeof(ElementType) * Extent))> as_writable_bytes(span<ElementType, Extent> s) noexcept;
55 template <class ElementType, size_t Extent = dynamic_extent>
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DType.h306 LLVM_ABI static ArrayType *get(Type *ElementType, uint64_t NumElements);
329 LLVM_ABI static VectorType *get(Type *ElementType, ElementCount EC);
330 static VectorType *get(Type *ElementType, unsigned NumElements, in get() argument
332 return VectorType::get(ElementType, in get()
337 static VectorType *get(Type *ElementType, const VectorType *Other) { in get() argument
338 return VectorType::get(ElementType, Other->getElementCount()); in get()
360 LLVM_ABI static FixedVectorType *get(Type *ElementType, unsigned NumElts);
362 static FixedVectorType *get(Type *ElementType, const FixedVectorType *FVTy) { in get() argument
363 return get(ElementType, FVTy->getNumElements()); in get()
404 LLVM_ABI static ScalableVectorType *get(Type *ElementType,
[all …]
H A DConstant.h633 static Constant *getFP(Type *ElementType, ArrayRef<uint16_t> Elts) { in getFP() argument
634 auto *LLVMC = llvm::ConstantDataArray::getFP(ElementType->LLVMTy, Elts); in getFP()
635 return ElementType->getContext().getOrCreateConstant(LLVMC); in getFP()
637 static Constant *getFP(Type *ElementType, ArrayRef<uint32_t> Elts) { in getFP() argument
638 auto *LLVMC = llvm::ConstantDataArray::getFP(ElementType->LLVMTy, Elts); in getFP()
639 return ElementType->getContext().getOrCreateConstant(LLVMC); in getFP()
641 static Constant *getFP(Type *ElementType, ArrayRef<uint64_t> Elts) { in getFP() argument
642 auto *LLVMC = llvm::ConstantDataArray::getFP(ElementType->LLVMTy, Elts); in getFP()
643 return ElementType->getContext().getOrCreateConstant(LLVMC); in getFP()
725 static Constant *getFP(Type *ElementType, ArrayRef<uint16_t> Elts) { in getFP() argument
[all …]
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDerivedTypes.h414 LLVM_ABI static ArrayType *get(Type *ElementType, uint64_t NumElements);
466 LLVM_ABI static VectorType *get(Type *ElementType, ElementCount EC);
468 static VectorType *get(Type *ElementType, unsigned NumElements, in get() argument
470 return VectorType::get(ElementType, in get()
474 static VectorType *get(Type *ElementType, const VectorType *Other) { in get() argument
475 return VectorType::get(ElementType, Other->getElementCount()); in get()
598 LLVM_ABI static FixedVectorType *get(Type *ElementType, unsigned NumElts);
600 static FixedVectorType *get(Type *ElementType, const FixedVectorType *FVTy) { in get() argument
601 return get(ElementType, FVTy->getNumElements()); in get()
645 LLVM_ABI static ScalableVectorType *get(Type *ElementType,
[all …]
H A DTypedPointerType.h37 LLVM_ABI static TypedPointerType *get(Type *ElementType,
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Core/
H A DLVElement.h135 LVElement *ElementType = nullptr;
183 bool isTyped() const override { return ElementType != nullptr; } in isTyped()
187 bool getIsKindType() const { return ElementType && ElementType->getIsType(); } in getIsKindType()
189 return ElementType && ElementType->getIsScope(); in getIsKindScope()
311 LVElement *getType() const { return ElementType; } in getType()
316 ElementType = Element;
327 return ElementType ? ElementType->getQualifiedName() : ""; in getTypeQualifiedName()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DType.cpp756 ArrayType *ArrayType::get(Type *ElementType, uint64_t NumElements) { in get() argument
757 assert(isValidElementType(ElementType) && "Invalid type for array element!"); in get()
759 LLVMContextImpl *pImpl = ElementType->getContext().pImpl; in get()
761 pImpl->ArrayTypes[std::make_pair(ElementType, NumElements)]; in get()
764 Entry = new (pImpl->Alloc) ArrayType(ElementType, NumElements); in get()
785 VectorType *VectorType::get(Type *ElementType, ElementCount EC) { in get() argument
787 return ScalableVectorType::get(ElementType, EC.getKnownMinValue()); in get()
789 return FixedVectorType::get(ElementType, EC.getKnownMinValue()); in get()
805 FixedVectorType *FixedVectorType::get(Type *ElementType, unsigned NumElts) { in get() argument
807 assert(isValidElementType(ElementType) && "Element type of a VectorType must " in get()
[all …]
H A DConstants.cpp2949 Constant *ConstantDataArray::getFP(Type *ElementType, ArrayRef<uint16_t> Elts) { in getFP() argument
2950 assert((ElementType->isHalfTy() || ElementType->isBFloatTy()) && in getFP()
2952 Type *Ty = ArrayType::get(ElementType, Elts.size()); in getFP()
2956 Constant *ConstantDataArray::getFP(Type *ElementType, ArrayRef<uint32_t> Elts) { in getFP() argument
2957 assert(ElementType->isFloatTy() && "Element type is not a 32-bit float type"); in getFP()
2958 Type *Ty = ArrayType::get(ElementType, Elts.size()); in getFP()
2962 Constant *ConstantDataArray::getFP(Type *ElementType, ArrayRef<uint64_t> Elts) { in getFP() argument
2963 assert(ElementType->isDoubleTy() && in getFP()
2965 Type *Ty = ArrayType::get(ElementType, Elts.size()); in getFP()
3023 Constant *ConstantDataVector::getFP(Type *ElementType, in getFP() argument
[all …]
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DDumpRegisterInfo.cpp69 template <typename ElementType>
71 const std::vector<ElementType> &list, in DumpList()
72 std::function<void(Stream &, ElementType)> emitter) { in DumpList()
79 for (ElementType elem : list) { in DumpList()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVLegalizePointerCast.cpp95 Value *loadFirstValueFromAggregate(IRBuilder<> &B, Type *ElementType, in loadFirstValueFromAggregate() argument
102 GR->buildAssignPtr(B, ElementType, GEP); in loadFirstValueFromAggregate()
104 LoadInst *LI = B.CreateLoad(ElementType, GEP); in loadFirstValueFromAggregate()
106 buildAssignType(B, ElementType, LI); in loadFirstValueFromAggregate()
169 Value *makeExtractElement(IRBuilder<> &B, Type *ElementType, Value *Vector, in makeExtractElement() argument
172 SmallVector<Type *, 3> Types = {ElementType, Vector->getType(), Int32Ty}; in makeExtractElement()
176 buildAssignType(B, ElementType, NewI); in makeExtractElement()
H A DSPIRVIRMapping.h136 inline IRHandle irhandle_pointee(const Type *ElementType, in irhandle_pointee() argument
138 return std::make_tuple(unifyPtrType(ElementType), AddressSpace, in irhandle_pointee()
147 inline IRHandle irhandle_vkbuffer(const Type *ElementType, in irhandle_vkbuffer() argument
150 return std::make_tuple(ElementType, (SC << 1) | IsWriteable, in irhandle_vkbuffer()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DDXILABI.h58 enum class ElementType : uint32_t { enum
82 ElementType = 0, enumerator
/freebsd/contrib/llvm-project/lldb/source/Plugins/Platform/QemuUser/
H A DPlatformQemuUserProperties.td18 ElementType<"String">,
22 ElementType<"String">,
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/
H A DPropertiesBase.td54 class ElementType<string value> {
55 string ElementType = value;
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DArrayBoundChecker.cpp83 const std::optional<QualType> ElementType; member in __anon612badfa0111::StateUpdateReporter
92 ByteOffsetVal(ByteOffsVal), ElementType(determineElementType(E, C)), in StateUpdateReporter()
93 ElementSize(determineElementSize(ElementType, C)) {} in StateUpdateReporter()
540 if (UseIndex && ElementType) in getMessage()
541 Out << "the number of '" << ElementType->getAsString() in getMessage()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DType.cpp192 ElementType(et) { in ArrayType()
215 QualType ElementType, in getNumAddressingBits() argument
217 uint64_t ElementSize = Context.getTypeSizeInChars(ElementType).getQuantity(); in getNumAddressingBits()
301 DependentVectorType::DependentVectorType(QualType ElementType, in DependentVectorType() argument
306 ElementType->getDependence() | in DependentVectorType()
309 ElementType(ElementType), SizeExpr(SizeExpr), Loc(Loc) { in DependentVectorType()
315 QualType ElementType, const Expr *SizeExpr, in Profile() argument
317 ID.AddPointer(ElementType.getAsOpaquePtr()); in Profile()
322 DependentSizedExtVectorType::DependentSizedExtVectorType(QualType ElementType, in DependentSizedExtVectorType() argument
328 ElementType->getDependence() | in DependentSizedExtVectorType()
[all …]

12345