Home
last modified time | relevance | path

Searched refs:ElementTy (Results 1 – 25 of 78) sorted by relevance

1234

/external/swiftshader/third_party/subzero/crosstest/
Dtest_vector_ops_main.cpp30 typedef typename VectorOps<T>::ElementTy ElementTy; in getTestVectors() typedef
39 Incr[I] = (ElementTy)I; in getTestVectors()
42 Decr[I] = (ElementTy)-I; in getTestVectors()
45 Min[I] = std::numeric_limits<ElementTy>::min(); in getTestVectors()
48 Max[I] = std::numeric_limits<ElementTy>::max(); in getTestVectors()
68 typedef typename VectorOps<T>::ElementTy ElementTy; in testInsertElement() typedef
73 ElementTy TestElements[] = {0, 1, std::numeric_limits<ElementTy>::min(), in testInsertElement()
74 std::numeric_limits<ElementTy>::max()}; in testInsertElement()
75 const size_t NumTestElements = sizeof(TestElements) / sizeof(ElementTy); in testInsertElement()
80 ElementTy Elt = TestElements[EI]; in testInsertElement()
[all …]
Dvectors.h63 typedef ELTTY ElementTy; \
Dtest_icmp_main.cpp191 typedef typename Vectors<TypeUnsignedLabel>::ElementTy ElementTypeUnsigned; in testsVecInt()
192 typedef typename Vectors<TypeSignedLabel>::ElementTy ElementTypeSigned; in testsVecInt()
Dtest_arith_main.cpp173 typedef typename Vectors<TypeUnsignedLabel>::ElementTy ElementTypeUnsigned; in testsVecInt()
174 typedef typename Vectors<TypeSignedLabel>::ElementTy ElementTypeSigned; in testsVecInt()
/external/llvm-project/llvm/include/llvm/Bitcode/
DBitcodeConvenience.h149 template <typename ElementTy> class BCArray : public detail::BCField<true> {
150 static_assert(!ElementTy::IsCompound, "arrays can only contain scalar types");
155 ElementTy::emitOp(abbrev); in emitOp()
185 template <typename ElementTy, typename... Fields> class BCRecordCoding {
190 static_assert(!ElementTy::IsCompound, in emit()
192 ElementTy::assertValid(element); in emit()
202 element = ElementTy::convert(buffer.front()); in read()
222 template <typename ElementTy> class BCRecordCoding<ElementTy> {
227 static_assert(!ElementTy::IsCompound, in emit()
229 ElementTy::assertValid(data); in emit()
[all …]
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DDynamicSize.cpp33 QualType ElementTy) { in getDynamicElementCount() argument
39 Ctx.getTypeSizeInChars(ElementTy).getQuantity(), SVB.getArrayIndexType()); in getDynamicElementCount()
DRegionStore.cpp403 SVal ArrayToPointer(Loc Array, QualType ElementTy) override;
1185 QualType ElementTy = AT->getElementType(); in VisitCluster() local
1186 uint64_t ElemSize = Ctx.getTypeSize(ElementTy); in VisitCluster()
2195 QualType ElementTy = AT->getElementType(); in bindArray() local
2229 const ElementRegion *ER = MRMgr.getElementRegion(ElementTy, Idx, R, Ctx); in bindArray()
2231 if (ElementTy->isStructureOrClassType()) in bindArray()
2233 else if (ElementTy->isArrayType()) in bindArray()
2243 NewB = setImplicitDefaultValue(NewB, R, ElementTy); in bindArray()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DSROA.cpp1437 Type *ElementTy = Ty; in getNaturalGEPWithType() local
1439 if (ElementTy->isPointerTy()) in getNaturalGEPWithType()
1442 if (ArrayType *ArrayTy = dyn_cast<ArrayType>(ElementTy)) { in getNaturalGEPWithType()
1443 ElementTy = ArrayTy->getElementType(); in getNaturalGEPWithType()
1445 } else if (VectorType *VectorTy = dyn_cast<VectorType>(ElementTy)) { in getNaturalGEPWithType()
1446 ElementTy = VectorTy->getElementType(); in getNaturalGEPWithType()
1448 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) { in getNaturalGEPWithType()
1451 ElementTy = *STy->element_begin(); in getNaturalGEPWithType()
1457 } while (ElementTy != TargetTy); in getNaturalGEPWithType()
1458 if (ElementTy != TargetTy) in getNaturalGEPWithType()
[all …]
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp1348 Type *ElementTy = Ty; in getNaturalGEPWithType() local
1350 if (ElementTy->isPointerTy()) in getNaturalGEPWithType()
1353 if (ArrayType *ArrayTy = dyn_cast<ArrayType>(ElementTy)) { in getNaturalGEPWithType()
1354 ElementTy = ArrayTy->getElementType(); in getNaturalGEPWithType()
1356 } else if (VectorType *VectorTy = dyn_cast<VectorType>(ElementTy)) { in getNaturalGEPWithType()
1357 ElementTy = VectorTy->getElementType(); in getNaturalGEPWithType()
1359 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) { in getNaturalGEPWithType()
1362 ElementTy = *STy->element_begin(); in getNaturalGEPWithType()
1368 } while (ElementTy != TargetTy); in getNaturalGEPWithType()
1369 if (ElementTy != TargetTy) in getNaturalGEPWithType()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSROA.cpp1434 Type *ElementTy = Ty; in getNaturalGEPWithType() local
1436 if (ElementTy->isPointerTy()) in getNaturalGEPWithType()
1439 if (ArrayType *ArrayTy = dyn_cast<ArrayType>(ElementTy)) { in getNaturalGEPWithType()
1440 ElementTy = ArrayTy->getElementType(); in getNaturalGEPWithType()
1442 } else if (VectorType *VectorTy = dyn_cast<VectorType>(ElementTy)) { in getNaturalGEPWithType()
1443 ElementTy = VectorTy->getElementType(); in getNaturalGEPWithType()
1445 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) { in getNaturalGEPWithType()
1448 ElementTy = *STy->element_begin(); in getNaturalGEPWithType()
1454 } while (ElementTy != TargetTy); in getNaturalGEPWithType()
1455 if (ElementTy != TargetTy) in getNaturalGEPWithType()
[all …]
/external/llvm/lib/Target/AMDGPU/
DSITypeRewriter.cpp116 Type *ElementTy = Arg->getType()->getVectorElementType(); in visitCallInst() local
120 Types.push_back(ElementTy); in visitCallInst()
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DDynamicSize.h33 QualType ElementTy);
/external/llvm-project/mlir/lib/Bindings/Python/
DPybindUtils.h213 template <typename Derived, typename ElementTy>
229 ElementTy dunderGetItem(intptr_t index) {
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DConstants.h702 template <typename ElementTy>
703 static Constant *get(LLVMContext &Context, ArrayRef<ElementTy> Elts) {
705 return getRaw(StringRef(Data, Elts.size() * sizeof(ElementTy)), Elts.size(),
706 Type::getScalarTy<ElementTy>(Context));
722 static Constant *getRaw(StringRef Data, uint64_t NumElements, Type *ElementTy) {
723 Type *Ty = ArrayType::get(ElementTy, NumElements);
/external/llvm-project/llvm/include/llvm/IR/
DConstants.h704 template <typename ElementTy>
705 static Constant *get(LLVMContext &Context, ArrayRef<ElementTy> Elts) {
707 return getRaw(StringRef(Data, Elts.size() * sizeof(ElementTy)), Elts.size(),
708 Type::getScalarTy<ElementTy>(Context));
724 static Constant *getRaw(StringRef Data, uint64_t NumElements, Type *ElementTy) {
725 Type *Ty = ArrayType::get(ElementTy, NumElements);
/external/clang/lib/AST/
DMicrosoftMangle.cpp2119 QualType ElementTy(T, 0); in mangleArrayType() local
2122 if (ElementTy->isConstantArrayType()) { in mangleArrayType()
2124 getASTContext().getAsConstantArrayType(ElementTy); in mangleArrayType()
2126 ElementTy = CAT->getElementType(); in mangleArrayType()
2127 } else if (ElementTy->isIncompleteArrayType()) { in mangleArrayType()
2129 getASTContext().getAsIncompleteArrayType(ElementTy); in mangleArrayType()
2131 ElementTy = IAT->getElementType(); in mangleArrayType()
2132 } else if (ElementTy->isVariableArrayType()) { in mangleArrayType()
2134 getASTContext().getAsVariableArrayType(ElementTy); in mangleArrayType()
2136 ElementTy = VAT->getElementType(); in mangleArrayType()
[all …]
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DCallLowering.cpp141 Type *ElementTy = cast<PointerType>(Arg.Ty)->getElementType(); in setArgFlags() local
144 Flags.setByValSize(DL.getTypeAllocSize(Ty ? Ty : ElementTy)); in setArgFlags()
152 FrameAlign = Align(getTLI()->getByValTypeAlignment(ElementTy, DL)); in setArgFlags()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DCallLowering.cpp101 Type *ElementTy = cast<PointerType>(Arg.Ty)->getElementType(); in setArgFlags() local
104 Flags.setByValSize(DL.getTypeAllocSize(Ty ? Ty : ElementTy)); in setArgFlags()
112 FrameAlign = getTLI()->getByValTypeAlignment(ElementTy, DL); in setArgFlags()
/external/llvm-project/clang/lib/AST/
DMicrosoftMangle.cpp2749 QualType ElementTy(T, 0); in mangleArrayType() local
2752 if (ElementTy->isConstantArrayType()) { in mangleArrayType()
2754 getASTContext().getAsConstantArrayType(ElementTy); in mangleArrayType()
2756 ElementTy = CAT->getElementType(); in mangleArrayType()
2757 } else if (ElementTy->isIncompleteArrayType()) { in mangleArrayType()
2759 getASTContext().getAsIncompleteArrayType(ElementTy); in mangleArrayType()
2761 ElementTy = IAT->getElementType(); in mangleArrayType()
2762 } else if (ElementTy->isVariableArrayType()) { in mangleArrayType()
2764 getASTContext().getAsVariableArrayType(ElementTy); in mangleArrayType()
2766 ElementTy = VAT->getElementType(); in mangleArrayType()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSizeofExpressionCheck.cpp312 const auto *ElementTy = Result.Nodes.getNodeAs<Type>("elem-type"); in check() local
317 CharUnits ElementSize = getSizeOfType(Ctx, ElementTy); in check()
/external/clang/lib/StaticAnalyzer/Core/
DRegionStore.cpp371 SVal ArrayToPointer(Loc Array, QualType ElementTy) override;
1100 QualType ElementTy = AT->getElementType(); in VisitCluster() local
1101 uint64_t ElemSize = Ctx.getTypeSize(ElementTy); in VisitCluster()
2055 QualType ElementTy = AT->getElementType(); in bindArray() local
2079 return setImplicitDefaultValue(B, R, ElementTy); in bindArray()
2093 const ElementRegion *ER = MRMgr.getElementRegion(ElementTy, Idx, R, Ctx); in bindArray()
2095 if (ElementTy->isStructureOrClassType()) in bindArray()
2097 else if (ElementTy->isArrayType()) in bindArray()
2106 NewB = setImplicitDefaultValue(NewB, R, ElementTy); in bindArray()
/external/llvm-project/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c535 CAMLprim LLVMTypeRef llvm_array_type(LLVMTypeRef ElementTy, value Count) { in llvm_array_type() argument
536 return LLVMArrayType(ElementTy, Int_val(Count)); in llvm_array_type()
540 CAMLprim LLVMTypeRef llvm_pointer_type(LLVMTypeRef ElementTy) { in llvm_pointer_type() argument
541 return LLVMPointerType(ElementTy, 0); in llvm_pointer_type()
545 CAMLprim LLVMTypeRef llvm_qualified_pointer_type(LLVMTypeRef ElementTy, in llvm_qualified_pointer_type() argument
547 return LLVMPointerType(ElementTy, Int_val(AddressSpace)); in llvm_qualified_pointer_type()
551 CAMLprim LLVMTypeRef llvm_vector_type(LLVMTypeRef ElementTy, value Count) { in llvm_vector_type() argument
552 return LLVMVectorType(ElementTy, Int_val(Count)); in llvm_vector_type()
956 CAMLprim LLVMValueRef llvm_const_array(LLVMTypeRef ElementTy, in llvm_const_array() argument
958 return LLVMConstArray(ElementTy, (LLVMValueRef*) Op_val(ElementVals), in llvm_const_array()
/external/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c447 CAMLprim LLVMTypeRef llvm_array_type(LLVMTypeRef ElementTy, value Count) { in llvm_array_type() argument
448 return LLVMArrayType(ElementTy, Int_val(Count)); in llvm_array_type()
452 CAMLprim LLVMTypeRef llvm_pointer_type(LLVMTypeRef ElementTy) { in llvm_pointer_type() argument
453 return LLVMPointerType(ElementTy, 0); in llvm_pointer_type()
457 CAMLprim LLVMTypeRef llvm_qualified_pointer_type(LLVMTypeRef ElementTy, in llvm_qualified_pointer_type() argument
459 return LLVMPointerType(ElementTy, Int_val(AddressSpace)); in llvm_qualified_pointer_type()
463 CAMLprim LLVMTypeRef llvm_vector_type(LLVMTypeRef ElementTy, value Count) { in llvm_vector_type() argument
464 return LLVMVectorType(ElementTy, Int_val(Count)); in llvm_vector_type()
847 CAMLprim LLVMValueRef llvm_const_array(LLVMTypeRef ElementTy, in llvm_const_array() argument
849 return LLVMConstArray(ElementTy, (LLVMValueRef*) Op_val(ElementVals), in llvm_const_array()
/external/swiftshader/third_party/subzero/src/
DIceTargetLowering.h529 const auto ElementTy = typeElementType(Src->getType()); in scalarizeInstruction()
530 auto *Op = Func->makeVariable(ElementTy); in scalarizeInstruction()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DStore.h114 virtual SVal ArrayToPointer(Loc Array, QualType ElementTy) = 0;

1234