/external/llvm-project/llvm/include/llvm/ADT/ |
D | TinyPtrVector.h | 29 template <typename EltTy> 32 using VecTy = SmallVector<EltTy, 4>; 38 using PtrUnion = PointerUnion<EltTy, VecTy *>; 66 if (Val.template is<EltTy>()) { 75 if (RHS.Val.template is<EltTy>()) { 85 RHS.Val = (EltTy)nullptr; in TinyPtrVector() 100 if (RHS.Val.template is<EltTy>()) { 103 RHS.Val = EltTy(); 110 RHS.Val = EltTy(); 114 TinyPtrVector(std::initializer_list<EltTy> IL) in TinyPtrVector() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | TinyPtrVector.h | 29 template <typename EltTy> 32 using VecTy = SmallVector<EltTy, 4>; 38 using PtrUnion = PointerUnion<EltTy, VecTy *>; 66 if (Val.template is<EltTy>()) { 75 if (RHS.Val.template is<EltTy>()) { 85 RHS.Val = (EltTy)nullptr; in TinyPtrVector() 100 if (RHS.Val.template is<EltTy>()) { 103 RHS.Val = EltTy(); 110 RHS.Val = EltTy(); 114 TinyPtrVector(std::initializer_list<EltTy> IL) in TinyPtrVector() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | TinyPtrVector.h | 25 template <typename EltTy> 28 typedef llvm::SmallVector<EltTy, 4> VecTy; 30 typedef llvm::PointerUnion<EltTy, VecTy *> PtrUnion; 56 if (Val.template is<EltTy>()) { 65 if (RHS.Val.template is<EltTy>()) { 75 RHS.Val = (EltTy)nullptr; in TinyPtrVector() 89 if (RHS.Val.template is<EltTy>()) { 98 RHS.Val = (EltTy)nullptr; 106 explicit TinyPtrVector(ArrayRef<EltTy> Elts) in TinyPtrVector() 113 TinyPtrVector(size_t Count, EltTy Value) in TinyPtrVector() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | ModuleUtils.cpp | 31 StructType *EltTy; in appendToGlobalArray() local 37 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), in appendToGlobalArray() 40 EltTy = OldEltTy; in appendToGlobalArray() 46 if (EltTy != OldEltTy) in appendToGlobalArray() 48 EltTy, Ctor->getAggregateElement((unsigned)0), in appendToGlobalArray() 57 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), in appendToGlobalArray() 66 if (EltTy->getNumElements() >= 3) in appendToGlobalArray() 70 ConstantStruct::get(EltTy, makeArrayRef(CSVals, EltTy->getNumElements())); in appendToGlobalArray() 75 ArrayType *AT = ArrayType::get(EltTy, CurrentCtors.size()); in appendToGlobalArray()
|
/external/llvm-project/clang/test/CodeGenCXX/ |
D | matrix-type-operators.cpp | 6 template <typename EltTy, unsigned Rows, unsigned Columns> 8 using matrix_t = EltTy __attribute__((matrix_type(Rows, Columns))); 199 template <typename EltTy, unsigned Rows, unsigned Columns> 200 void insert(MyMatrix<EltTy, Rows, Columns> &Mat, EltTy e, unsigned i, unsigned j) { in insert() argument 254 template <typename EltTy, unsigned Rows, unsigned Columns> 255 EltTy extract(MyMatrix<EltTy, Rows, Columns> &Mat) { in extract() argument
|
D | matrix-type-builtins.cpp | 5 template <typename EltTy, unsigned Rows, unsigned Columns> 6 using matrix_t = EltTy __attribute__((matrix_type(Rows, Columns))); 8 template <typename EltTy, unsigned Rows, unsigned Columns> 10 matrix_t<EltTy, Rows, Columns> value;
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | ScalarizeMaskedMemIntrin.cpp | 136 Type *EltTy = VecType->getElementType(); in scalarizeMaskedLoad() local 154 AlignVal = MinAlign(AlignVal, EltTy->getPrimitiveSizeInBits() / 8); in scalarizeMaskedLoad() 157 EltTy->getPointerTo(Ptr->getType()->getPointerAddressSpace()); in scalarizeMaskedLoad() 168 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedLoad() 169 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AlignVal); in scalarizeMaskedLoad() 212 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedLoad() 213 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AlignVal); in scalarizeMaskedLoad() 274 Type *EltTy = VecType->getElementType(); in scalarizeMaskedStore() local 290 AlignVal = MinAlign(AlignVal, EltTy->getPrimitiveSizeInBits() / 8); in scalarizeMaskedStore() 293 EltTy->getPointerTo(Ptr->getType()->getPointerAddressSpace()); in scalarizeMaskedStore() [all …]
|
D | Analysis.cpp | 58 Type *EltTy = ATy->getElementType(); in ComputeLinearIndex() local 61 unsigned EltLinearOffset = ComputeLinearIndex(EltTy, nullptr, nullptr, 0); in ComputeLinearIndex() 67 return ComputeLinearIndex(EltTy, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex() 101 Type *EltTy = ATy->getElementType(); in ComputeValueVTs() local 102 uint64_t EltSize = DL.getTypeAllocSize(EltTy); in ComputeValueVTs() 104 ComputeValueVTs(TLI, DL, EltTy, ValueVTs, MemVTs, Offsets, in ComputeValueVTs() 141 Type *EltTy = ATy->getElementType(); in computeValueLLTs() local 142 uint64_t EltSize = DL.getTypeAllocSize(EltTy); in computeValueLLTs() 144 computeValueLLTs(DL, *EltTy, ValueTys, Offsets, in computeValueLLTs()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | ScalarizeMaskedMemIntrin.cpp | 138 Type *EltTy = VecType->getElementType(); in scalarizeMaskedLoad() local 157 commonAlignment(AlignVal, EltTy->getPrimitiveSizeInBits() / 8); in scalarizeMaskedLoad() 160 EltTy->getPointerTo(Ptr->getType()->getPointerAddressSpace()); in scalarizeMaskedLoad() 171 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedLoad() 172 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AdjustedAlignVal); in scalarizeMaskedLoad() 215 Value *Gep = Builder.CreateConstInBoundsGEP1_32(EltTy, FirstEltPtr, Idx); in scalarizeMaskedLoad() 216 LoadInst *Load = Builder.CreateAlignedLoad(EltTy, Gep, AdjustedAlignVal); in scalarizeMaskedLoad() 277 Type *EltTy = VecType->getElementType(); in scalarizeMaskedStore() local 294 commonAlignment(AlignVal, EltTy->getPrimitiveSizeInBits() / 8); in scalarizeMaskedStore() 297 EltTy->getPointerTo(Ptr->getType()->getPointerAddressSpace()); in scalarizeMaskedStore() [all …]
|
/external/llvm/lib/Target/Mips/ |
D | MipsSEISelDAGToDAG.cpp | 540 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatCommon() local 545 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatCommon() 546 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatCommon() 550 Imm = CurDAG->getTargetConstant(ImmValue, SDLoc(N), EltTy); in selectVSplatCommon() 616 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatUimmPow2() local 621 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatUimmPow2() 622 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatUimmPow2() 626 Imm = CurDAG->getTargetConstant(Log2, SDLoc(N), EltTy); in selectVSplatUimmPow2() 647 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatMaskL() local 652 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatMaskL() [all …]
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPURewriteOutArguments.cpp | 400 Type *EltTy = Arg->getType()->getPointerElementType(); in runOnFunction() local 401 if (Val->getType() != EltTy) { in runOnFunction() 402 Type *EffectiveEltTy = EltTy; in runOnFunction() 403 if (StructType *CT = dyn_cast<StructType>(EltTy)) { in runOnFunction() 418 if (EltTy != EffectiveEltTy) in runOnFunction() 419 Val = B.CreateInsertValue(UndefValue::get(EltTy), Val, 0); in runOnFunction() 455 auto *EltTy = ArgType->getElementType(); in runOnFunction() local 457 DL->getValueOrABITypeAlignment(Arg.getParamAlign(), EltTy); in runOnFunction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPURewriteOutArguments.cpp | 400 Type *EltTy = Arg->getType()->getPointerElementType(); in runOnFunction() local 401 if (Val->getType() != EltTy) { in runOnFunction() 402 Type *EffectiveEltTy = EltTy; in runOnFunction() 403 if (StructType *CT = dyn_cast<StructType>(EltTy)) { in runOnFunction() 418 if (EltTy != EffectiveEltTy) in runOnFunction() 419 Val = B.CreateInsertValue(UndefValue::get(EltTy), Val, 0); in runOnFunction() 455 auto *EltTy = ArgType->getElementType(); in runOnFunction() local 458 Align = DL->getABITypeAlignment(EltTy); in runOnFunction()
|
D | AMDGPULegalizerInfo.cpp | 46 const LLT EltTy = Ty.getScalarType(); in isMultiple32() local 47 return Ty.getSizeInBits() <= MaxSize && EltTy.getSizeInBits() % 32 == 0; in isMultiple32() 70 const LLT EltTy = Ty.getScalarType(); in isWideVec16() local 71 return EltTy.getSizeInBits() == 16 && Ty.getNumElements() > 2; in isWideVec16() 78 const LLT EltTy = Ty.getElementType(); in oneMoreElement() local 79 return std::make_pair(TypeIdx, LLT::vector(Ty.getNumElements() + 1, EltTy)); in oneMoreElement() 86 const LLT EltTy = Ty.getElementType(); in fewerEltsToSize64Vector() local 90 return std::make_pair(TypeIdx, LLT::scalarOrVector(NewNumElts, EltTy)); in fewerEltsToSize64Vector() 100 const LLT EltTy = Ty.getElementType(); in moreEltsToNext32Bit() local 102 const int EltSize = EltTy.getSizeInBits(); in moreEltsToNext32Bit() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 471 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() local 472 return VectorType::get(EltTy, VTy->getElementCount()); in getInteger() 479 auto *EltTy = cast<IntegerType>(VTy->getElementType()); in getExtendedElementVectorType() local 480 return VectorType::get(EltTy->getExtendedType(), VTy->getElementCount()); in getExtendedElementVectorType() 487 Type *EltTy; in getTruncatedElementVectorType() local 491 EltTy = Type::getFloatTy(VTy->getContext()); in getTruncatedElementVectorType() 494 EltTy = Type::getHalfTy(VTy->getContext()); in getTruncatedElementVectorType() 503 EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType() 505 return VectorType::get(EltTy, VTy->getElementCount()); in getTruncatedElementVectorType()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/ |
D | MipsSEISelDAGToDAG.cpp | 554 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatCommon() local 559 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatCommon() 560 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatCommon() 564 Imm = CurDAG->getTargetConstant(ImmValue, SDLoc(N), EltTy); in selectVSplatCommon() 630 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatUimmPow2() local 635 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatUimmPow2() 636 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatUimmPow2() 640 Imm = CurDAG->getTargetConstant(Log2, SDLoc(N), EltTy); in selectVSplatUimmPow2() 661 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatMaskL() local 666 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatMaskL() [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | DerivedTypes.h | 385 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() local 386 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger() 393 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType() local 394 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType() 403 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType() local 404 return VectorType::get(EltTy, VTy->getNumElements()); in getTruncatedElementVectorType()
|
/external/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 382 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() local 383 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger() 390 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType() local 391 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType() 400 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType() local 401 return VectorType::get(EltTy, VTy->getNumElements()); in getTruncatedElementVectorType()
|
/external/llvm-project/llvm/lib/Target/Mips/ |
D | MipsSEISelDAGToDAG.cpp | 554 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatCommon() local 559 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatCommon() 560 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatCommon() 564 Imm = CurDAG->getTargetConstant(ImmValue, SDLoc(N), EltTy); in selectVSplatCommon() 630 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatUimmPow2() local 635 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatUimmPow2() 636 ImmValue.getBitWidth() == EltTy.getSizeInBits()) { in selectVSplatUimmPow2() 640 Imm = CurDAG->getTargetConstant(Log2, SDLoc(N), EltTy); in selectVSplatUimmPow2() 661 EVT EltTy = N->getValueType(0).getVectorElementType(); in selectVSplatMaskL() local 666 if (selectVSplat(N.getNode(), ImmValue, EltTy.getSizeInBits()) && in selectVSplatMaskL() [all …]
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 457 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() local 458 return VectorType::get(EltTy, VTy->getElementCount()); in getInteger() 465 auto *EltTy = cast<IntegerType>(VTy->getElementType()); in getExtendedElementVectorType() local 466 return VectorType::get(EltTy->getExtendedType(), VTy->getElementCount()); in getExtendedElementVectorType() 473 Type *EltTy; in getTruncatedElementVectorType() local 477 EltTy = Type::getFloatTy(VTy->getContext()); in getTruncatedElementVectorType() 480 EltTy = Type::getHalfTy(VTy->getContext()); in getTruncatedElementVectorType() 489 EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType() 491 return VectorType::get(EltTy, VTy->getElementCount()); in getTruncatedElementVectorType()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64LegalizerInfo.cpp | 72 LLT EltTy = Query.Types[0].getElementType(); in AArch64LegalizerInfo() local 73 if (EltTy == s64) in AArch64LegalizerInfo() 75 return std::make_pair(0, EltTy); in AArch64LegalizerInfo() 243 const LLT EltTy = ValTy.getElementType(); in AArch64LegalizerInfo() local 244 return EltTy.isPointer() && EltTy.getAddressSpace() == 0; in AArch64LegalizerInfo() 473 const LLT &EltTy = Ty.getElementType(); in AArch64LegalizerInfo() local 474 if (EltTy.getSizeInBits() < 8 || EltTy.getSizeInBits() > 64) in AArch64LegalizerInfo() 476 if (!isPowerOf2_32(EltTy.getSizeInBits())) in AArch64LegalizerInfo() 544 const LLT &EltTy = Query.Types[1].getElementType(); in AArch64LegalizerInfo() local 545 return Query.Types[0] != EltTy; in AArch64LegalizerInfo()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | LowerMemIntrinsics.cpp | 300 Type *EltTy = cast<PointerType>(SrcAddr->getType())->getElementType(); in createMemMoveLoop() local 326 unsigned PartSize = DL.getTypeStoreSize(EltTy); in createMemMoveLoop() 344 EltTy, LoopBuilder.CreateInBoundsGEP(EltTy, SrcAddr, IndexPtr), in createMemMoveLoop() 347 Element, LoopBuilder.CreateInBoundsGEP(EltTy, DstAddr, IndexPtr), in createMemMoveLoop() 362 Value *SrcGEP = FwdLoopBuilder.CreateInBoundsGEP(EltTy, SrcAddr, FwdCopyPhi); in createMemMoveLoop() 364 FwdLoopBuilder.CreateAlignedLoad(EltTy, SrcGEP, PartSrcAlign, "element"); in createMemMoveLoop() 365 Value *DstGEP = FwdLoopBuilder.CreateInBoundsGEP(EltTy, DstAddr, FwdCopyPhi); in createMemMoveLoop()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | Analysis.cpp | 59 Type *EltTy = ATy->getElementType(); in ComputeLinearIndex() local 62 unsigned EltLinearOffset = ComputeLinearIndex(EltTy, nullptr, nullptr, 0); in ComputeLinearIndex() 68 return ComputeLinearIndex(EltTy, Indices+1, IndicesEnd, CurIndex); in ComputeLinearIndex() 102 Type *EltTy = ATy->getElementType(); in ComputeValueVTs() local 103 uint64_t EltSize = DL.getTypeAllocSize(EltTy); in ComputeValueVTs() 105 ComputeValueVTs(TLI, DL, EltTy, ValueVTs, MemVTs, Offsets, in ComputeValueVTs() 142 Type *EltTy = ATy->getElementType(); in computeValueLLTs() local 143 uint64_t EltSize = DL.getTypeAllocSize(EltTy); in computeValueLLTs() 145 computeValueLLTs(DL, *EltTy, ValueTys, Offsets, in computeValueLLTs()
|
/external/llvm-project/llvm/lib/Target/AArch64/GISel/ |
D | AArch64LegalizerInfo.cpp | 91 LLT EltTy = Query.Types[0].getElementType(); in AArch64LegalizerInfo() local 92 if (EltTy == s64) in AArch64LegalizerInfo() 94 return std::make_pair(0, EltTy); in AArch64LegalizerInfo() 268 const LLT EltTy = ValTy.getElementType(); in AArch64LegalizerInfo() local 269 return EltTy.isPointer() && EltTy.getAddressSpace() == 0; in AArch64LegalizerInfo() 513 const LLT &EltTy = Ty.getElementType(); in AArch64LegalizerInfo() local 514 if (EltTy.getSizeInBits() < 8 || EltTy.getSizeInBits() > 64) in AArch64LegalizerInfo() 516 if (!isPowerOf2_32(EltTy.getSizeInBits())) in AArch64LegalizerInfo() 584 const LLT &EltTy = Query.Types[1].getElementType(); in AArch64LegalizerInfo() local 585 return Query.Types[0] != EltTy; in AArch64LegalizerInfo()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | LowerMemIntrinsics.cpp | 295 Type *EltTy = cast<PointerType>(SrcAddr->getType())->getElementType(); in createMemMoveLoop() local 335 EltTy, LoopBuilder.CreateInBoundsGEP(EltTy, SrcAddr, IndexPtr), in createMemMoveLoop() 338 Element, LoopBuilder.CreateInBoundsGEP(EltTy, DstAddr, IndexPtr)); in createMemMoveLoop() 353 EltTy, FwdLoopBuilder.CreateInBoundsGEP(EltTy, SrcAddr, FwdCopyPhi), in createMemMoveLoop() 356 FwdElement, FwdLoopBuilder.CreateInBoundsGEP(EltTy, DstAddr, FwdCopyPhi)); in createMemMoveLoop()
|
/external/clang/lib/CodeGen/ |
D | CodeGenTypes.cpp | 492 llvm::Type *EltTy = ConvertType(cast<ComplexType>(Ty)->getElementType()); in ConvertType() local 493 ResultType = llvm::StructType::get(EltTy, EltTy, nullptr); in ConvertType() 541 llvm::Type *EltTy = ConvertTypeForMem(A->getElementType()); in ConvertType() local 545 if (!EltTy->isSized()) { in ConvertType() 547 EltTy = llvm::Type::getInt8Ty(getLLVMContext()); in ConvertType() 550 ResultType = llvm::ArrayType::get(EltTy, A->getSize().getZExtValue()); in ConvertType()
|