Home
last modified time | relevance | path

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

12

/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.cpp203 typedef typename Vectors<TypeUnsignedLabel>::ElementTy ElementTypeUnsigned; in testsVecInt()
204 typedef typename Vectors<TypeSignedLabel>::ElementTy ElementTypeSigned; in testsVecInt()
Dtest_arith_main.cpp169 typedef typename Vectors<TypeUnsignedLabel>::ElementTy ElementTypeUnsigned; in testsVecInt()
170 typedef typename Vectors<TypeSignedLabel>::ElementTy ElementTypeSigned; in testsVecInt()
/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-7.0/llvm/lib/Transforms/Scalar/
DSROA.cpp1409 Type *ElementTy = Ty; in getNaturalGEPWithType() local
1411 if (ElementTy->isPointerTy()) in getNaturalGEPWithType()
1414 if (ArrayType *ArrayTy = dyn_cast<ArrayType>(ElementTy)) { in getNaturalGEPWithType()
1415 ElementTy = ArrayTy->getElementType(); in getNaturalGEPWithType()
1417 } else if (VectorType *VectorTy = dyn_cast<VectorType>(ElementTy)) { in getNaturalGEPWithType()
1418 ElementTy = VectorTy->getElementType(); in getNaturalGEPWithType()
1420 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) { in getNaturalGEPWithType()
1423 ElementTy = *STy->element_begin(); in getNaturalGEPWithType()
1429 } while (ElementTy != TargetTy); in getNaturalGEPWithType()
1430 if (ElementTy != TargetTy) in getNaturalGEPWithType()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/GlobalISel/
DCallLowering.cpp84 Type *ElementTy = cast<PointerType>(Arg.Ty)->getElementType(); in setArgFlags() local
85 Arg.Flags.setByValSize(DL.getTypeAllocSize(ElementTy)); in setArgFlags()
92 FrameAlign = getTLI()->getByValTypeAlignment(ElementTy, DL); in setArgFlags()
/external/llvm/lib/Target/AMDGPU/
DSITypeRewriter.cpp116 Type *ElementTy = Arg->getType()->getVectorElementType(); in visitCallInst() local
120 Types.push_back(ElementTy); in visitCallInst()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DConstants.h698 template <typename ElementTy>
699 static Constant *get(LLVMContext &Context, ArrayRef<ElementTy> Elts) {
701 return getRaw(StringRef(Data, Elts.size() * sizeof(ElementTy)), Elts.size(),
702 Type::getScalarTy<ElementTy>(Context));
718 static Constant *getRaw(StringRef Data, uint64_t NumElements, Type *ElementTy) {
719 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/swiftshader/third_party/LLVM/bindings/ocaml/llvm/
Dllvm_ocaml.c343 CAMLprim LLVMTypeRef llvm_array_type(LLVMTypeRef ElementTy, value Count) { in llvm_array_type() argument
344 return LLVMArrayType(ElementTy, Int_val(Count)); in llvm_array_type()
348 CAMLprim LLVMTypeRef llvm_pointer_type(LLVMTypeRef ElementTy) { in llvm_pointer_type() argument
349 return LLVMPointerType(ElementTy, 0); in llvm_pointer_type()
353 CAMLprim LLVMTypeRef llvm_qualified_pointer_type(LLVMTypeRef ElementTy, in llvm_qualified_pointer_type() argument
355 return LLVMPointerType(ElementTy, Int_val(AddressSpace)); in llvm_qualified_pointer_type()
359 CAMLprim LLVMTypeRef llvm_vector_type(LLVMTypeRef ElementTy, value Count) { in llvm_vector_type() argument
360 return LLVMVectorType(ElementTy, Int_val(Count)); in llvm_vector_type()
663 CAMLprim LLVMValueRef llvm_const_array(LLVMTypeRef ElementTy, in llvm_const_array() argument
665 return LLVMConstArray(ElementTy, (LLVMValueRef*) Op_val(ElementVals), in llvm_const_array()
/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/swiftshader/third_party/llvm-7.0/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c530 CAMLprim LLVMTypeRef llvm_array_type(LLVMTypeRef ElementTy, value Count) { in llvm_array_type() argument
531 return LLVMArrayType(ElementTy, Int_val(Count)); in llvm_array_type()
535 CAMLprim LLVMTypeRef llvm_pointer_type(LLVMTypeRef ElementTy) { in llvm_pointer_type() argument
536 return LLVMPointerType(ElementTy, 0); in llvm_pointer_type()
540 CAMLprim LLVMTypeRef llvm_qualified_pointer_type(LLVMTypeRef ElementTy, in llvm_qualified_pointer_type() argument
542 return LLVMPointerType(ElementTy, Int_val(AddressSpace)); in llvm_qualified_pointer_type()
546 CAMLprim LLVMTypeRef llvm_vector_type(LLVMTypeRef ElementTy, value Count) { in llvm_vector_type() argument
547 return LLVMVectorType(ElementTy, Int_val(Count)); in llvm_vector_type()
930 CAMLprim LLVMValueRef llvm_const_array(LLVMTypeRef ElementTy, in llvm_const_array() argument
932 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.h538 const auto ElementTy = typeElementType(Src->getType()); in scalarizeInstruction()
539 auto *Op = Func->makeVariable(ElementTy); in scalarizeInstruction()
/external/clang/lib/CodeGen/
DCGExprCXX.cpp832 const CXXNewExpr *E, QualType ElementType, llvm::Type *ElementTy, in EmitNewArrayInitializer() argument
863 ElementTy = ConvertTypeForMem(AllocType); in EmitNewArrayInitializer()
864 CurPtr = Builder.CreateElementBitCast(CurPtr, ElementTy); in EmitNewArrayInitializer()
1086 Builder.CreateConstInBoundsGEP1_32(ElementTy, CurPtr.getPointer(), 1, in EmitNewArrayInitializer()
1099 QualType ElementType, llvm::Type *ElementTy, in EmitNewInitializer() argument
1104 CGF.EmitNewArrayInitializer(E, ElementType, ElementTy, NewPtr, NumElements, in EmitNewInitializer()
DCGRecordLayoutBuilder.cpp782 llvm::Type *ElementTy = ST->getTypeAtIndex(RL->getLLVMFieldNo(FD)); in ComputeRecordLayout() local
803 getDataLayout().getTypeAllocSizeInBits(ElementTy) && in ComputeRecordLayout()
DCGStmtOpenMP.cpp327 QualType ElementTy; in EmitOMPAggregateAssign() local
331 auto NumElements = emitArrayLength(ArrayTy, ElementTy, DestAddr); in EmitOMPAggregateAssign()
349 CharUnits ElementSize = getContext().getTypeSizeInChars(ElementTy); in EmitOMPAggregateAssign()
456 QualType ElementTy; in EmitOMPAggregateInit() local
460 auto NumElements = CGF.emitArrayLength(ArrayTy, ElementTy, DestAddr); in EmitOMPAggregateInit()
484 CharUnits ElementSize = CGF.getContext().getTypeSizeInChars(ElementTy); in EmitOMPAggregateInit()
508 SrcElementCurrent, ElementTy); in EmitOMPAggregateInit()
510 CGF.EmitAnyExprToMem(Init, DestElementCurrent, ElementTy.getQualifiers(), in EmitOMPAggregateInit()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DStore.h114 virtual SVal ArrayToPointer(Loc Array, QualType ElementTy) = 0;
DProgramState.h527 SVal ArrayToPointer(Loc Array, QualType ElementTy) { in ArrayToPointer() argument
528 return StoreMgr->ArrayToPointer(Array, ElementTy); in ArrayToPointer()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DInstructionsTest.cpp659 Type *ElementTy = Builder.getInt8Ty(); in TEST() local
660 Type *ArrTy = ArrayType::get(ArrayType::get(ElementTy, 64), 64); in TEST()
/external/llvm/lib/CodeGen/SelectionDAG/
DFastISel.cpp979 Type *ElementTy = Ty->getElementType(); in lowerCallTo() local
980 unsigned FrameSize = DL.getTypeAllocSize(ElementTy); in lowerCallTo()
985 FrameAlign = TLI.getByValTypeAlignment(ElementTy, DL); in lowerCallTo()
/external/swiftshader/third_party/LLVM/lib/Target/X86/
DX86FastISel.cpp1580 Type *ElementTy = Ty->getElementType(); in DoSelectCall() local
1581 unsigned FrameSize = TD.getTypeAllocSize(ElementTy); in DoSelectCall()
1584 FrameAlign = TLI.getByValTypeAlignment(ElementTy); in DoSelectCall()
/external/llvm/lib/IR/
DConstants.cpp818 template <typename SequentialTy, typename ElementTy>
822 SmallVector<ElementTy, 16> Elts; in getIntSequenceIfElementsMatch()
831 template <typename SequentialTy, typename ElementTy>
835 SmallVector<ElementTy, 16> Elts; in getFPSequenceIfElementsMatch()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DConstants.cpp886 template <typename SequentialTy, typename ElementTy>
890 SmallVector<ElementTy, 16> Elts; in getIntSequenceIfElementsMatch()
899 template <typename SequentialTy, typename ElementTy>
903 SmallVector<ElementTy, 16> Elts; in getFPSequenceIfElementsMatch()

12