Lines Matching refs:Elts
874 SmallVector<uint8_t, 16> Elts; in getImpl() local
877 Elts.push_back(CI->getZExtValue()); in getImpl()
880 if (Elts.size() == V.size()) in getImpl()
881 return ConstantDataArray::get(C->getContext(), Elts); in getImpl()
883 SmallVector<uint16_t, 16> Elts; in getImpl() local
886 Elts.push_back(CI->getZExtValue()); in getImpl()
889 if (Elts.size() == V.size()) in getImpl()
890 return ConstantDataArray::get(C->getContext(), Elts); in getImpl()
892 SmallVector<uint32_t, 16> Elts; in getImpl() local
895 Elts.push_back(CI->getZExtValue()); in getImpl()
898 if (Elts.size() == V.size()) in getImpl()
899 return ConstantDataArray::get(C->getContext(), Elts); in getImpl()
901 SmallVector<uint64_t, 16> Elts; in getImpl() local
904 Elts.push_back(CI->getZExtValue()); in getImpl()
907 if (Elts.size() == V.size()) in getImpl()
908 return ConstantDataArray::get(C->getContext(), Elts); in getImpl()
914 SmallVector<uint32_t, 16> Elts; in getImpl() local
917 Elts.push_back( in getImpl()
921 if (Elts.size() == V.size()) in getImpl()
922 return ConstantDataArray::getFP(C->getContext(), Elts); in getImpl()
924 SmallVector<uint64_t, 16> Elts; in getImpl() local
927 Elts.push_back( in getImpl()
931 if (Elts.size() == V.size()) in getImpl()
932 return ConstantDataArray::getFP(C->getContext(), Elts); in getImpl()
1062 SmallVector<uint8_t, 16> Elts; in getImpl() local
1065 Elts.push_back(CI->getZExtValue()); in getImpl()
1068 if (Elts.size() == V.size()) in getImpl()
1069 return ConstantDataVector::get(C->getContext(), Elts); in getImpl()
1071 SmallVector<uint16_t, 16> Elts; in getImpl() local
1074 Elts.push_back(CI->getZExtValue()); in getImpl()
1077 if (Elts.size() == V.size()) in getImpl()
1078 return ConstantDataVector::get(C->getContext(), Elts); in getImpl()
1080 SmallVector<uint32_t, 16> Elts; in getImpl() local
1083 Elts.push_back(CI->getZExtValue()); in getImpl()
1086 if (Elts.size() == V.size()) in getImpl()
1087 return ConstantDataVector::get(C->getContext(), Elts); in getImpl()
1089 SmallVector<uint64_t, 16> Elts; in getImpl() local
1092 Elts.push_back(CI->getZExtValue()); in getImpl()
1095 if (Elts.size() == V.size()) in getImpl()
1096 return ConstantDataVector::get(C->getContext(), Elts); in getImpl()
1102 SmallVector<uint32_t, 16> Elts; in getImpl() local
1105 Elts.push_back( in getImpl()
1109 if (Elts.size() == V.size()) in getImpl()
1110 return ConstantDataVector::getFP(C->getContext(), Elts); in getImpl()
1112 SmallVector<uint64_t, 16> Elts; in getImpl() local
1115 Elts.push_back( in getImpl()
1119 if (Elts.size() == V.size()) in getImpl()
1120 return ConstantDataVector::getFP(C->getContext(), Elts); in getImpl()
1137 SmallVector<Constant*, 32> Elts(NumElts, V); in getSplat() local
1138 return get(Elts); in getSplat()
2524 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<uint8_t> Elts) { in get() argument
2525 Type *Ty = ArrayType::get(Type::getInt8Ty(Context), Elts.size()); in get()
2526 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2527 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*1), Ty); in get()
2529 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<uint16_t> Elts){ in get() argument
2530 Type *Ty = ArrayType::get(Type::getInt16Ty(Context), Elts.size()); in get()
2531 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2532 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*2), Ty); in get()
2534 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<uint32_t> Elts){ in get() argument
2535 Type *Ty = ArrayType::get(Type::getInt32Ty(Context), Elts.size()); in get()
2536 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2537 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty); in get()
2539 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<uint64_t> Elts){ in get() argument
2540 Type *Ty = ArrayType::get(Type::getInt64Ty(Context), Elts.size()); in get()
2541 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2542 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*8), Ty); in get()
2544 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<float> Elts) { in get() argument
2545 Type *Ty = ArrayType::get(Type::getFloatTy(Context), Elts.size()); in get()
2546 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2547 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty); in get()
2549 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<double> Elts) { in get() argument
2550 Type *Ty = ArrayType::get(Type::getDoubleTy(Context), Elts.size()); in get()
2551 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2552 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 8), Ty); in get()
2561 ArrayRef<uint16_t> Elts) { in getFP() argument
2562 Type *Ty = VectorType::get(Type::getHalfTy(Context), Elts.size()); in getFP()
2563 const char *Data = reinterpret_cast<const char *>(Elts.data()); in getFP()
2564 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 2), Ty); in getFP()
2567 ArrayRef<uint32_t> Elts) { in getFP() argument
2568 Type *Ty = ArrayType::get(Type::getFloatTy(Context), Elts.size()); in getFP()
2569 const char *Data = reinterpret_cast<const char *>(Elts.data()); in getFP()
2570 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 4), Ty); in getFP()
2573 ArrayRef<uint64_t> Elts) { in getFP() argument
2574 Type *Ty = ArrayType::get(Type::getDoubleTy(Context), Elts.size()); in getFP()
2575 const char *Data = reinterpret_cast<const char *>(Elts.data()); in getFP()
2576 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 8), Ty); in getFP()
2601 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint8_t> Elts){ in get() argument
2602 Type *Ty = VectorType::get(Type::getInt8Ty(Context), Elts.size()); in get()
2603 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2604 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*1), Ty); in get()
2606 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint16_t> Elts){ in get() argument
2607 Type *Ty = VectorType::get(Type::getInt16Ty(Context), Elts.size()); in get()
2608 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2609 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*2), Ty); in get()
2611 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint32_t> Elts){ in get() argument
2612 Type *Ty = VectorType::get(Type::getInt32Ty(Context), Elts.size()); in get()
2613 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2614 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty); in get()
2616 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint64_t> Elts){ in get() argument
2617 Type *Ty = VectorType::get(Type::getInt64Ty(Context), Elts.size()); in get()
2618 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2619 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*8), Ty); in get()
2621 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<float> Elts) { in get() argument
2622 Type *Ty = VectorType::get(Type::getFloatTy(Context), Elts.size()); in get()
2623 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2624 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty); in get()
2626 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<double> Elts) { in get() argument
2627 Type *Ty = VectorType::get(Type::getDoubleTy(Context), Elts.size()); in get()
2628 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2629 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 8), Ty); in get()
2638 ArrayRef<uint16_t> Elts) { in getFP() argument
2639 Type *Ty = VectorType::get(Type::getHalfTy(Context), Elts.size()); in getFP()
2640 const char *Data = reinterpret_cast<const char *>(Elts.data()); in getFP()
2641 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 2), Ty); in getFP()
2644 ArrayRef<uint32_t> Elts) { in getFP() argument
2645 Type *Ty = VectorType::get(Type::getFloatTy(Context), Elts.size()); in getFP()
2646 const char *Data = reinterpret_cast<const char *>(Elts.data()); in getFP()
2647 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 4), Ty); in getFP()
2650 ArrayRef<uint64_t> Elts) { in getFP() argument
2651 Type *Ty = VectorType::get(Type::getDoubleTy(Context), Elts.size()); in getFP()
2652 const char *Data = reinterpret_cast<const char *>(Elts.data()); in getFP()
2653 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 8), Ty); in getFP()
2661 SmallVector<uint8_t, 16> Elts(NumElts, CI->getZExtValue()); in getSplat() local
2662 return get(V->getContext(), Elts); in getSplat()
2665 SmallVector<uint16_t, 16> Elts(NumElts, CI->getZExtValue()); in getSplat() local
2666 return get(V->getContext(), Elts); in getSplat()
2669 SmallVector<uint32_t, 16> Elts(NumElts, CI->getZExtValue()); in getSplat() local
2670 return get(V->getContext(), Elts); in getSplat()
2673 SmallVector<uint64_t, 16> Elts(NumElts, CI->getZExtValue()); in getSplat() local
2674 return get(V->getContext(), Elts); in getSplat()
2679 SmallVector<uint32_t, 16> Elts( in getSplat() local
2681 return getFP(V->getContext(), Elts); in getSplat()
2684 SmallVector<uint64_t, 16> Elts( in getSplat() local
2686 return getFP(V->getContext(), Elts); in getSplat()