Lines Matching refs:Elts
717 SmallVector<uint8_t, 16> Elts; in get() local
720 Elts.push_back(CI->getZExtValue()); in get()
723 if (Elts.size() == V.size()) in get()
724 return ConstantDataArray::get(C->getContext(), Elts); in get()
726 SmallVector<uint16_t, 16> Elts; in get() local
729 Elts.push_back(CI->getZExtValue()); in get()
732 if (Elts.size() == V.size()) in get()
733 return ConstantDataArray::get(C->getContext(), Elts); in get()
735 SmallVector<uint32_t, 16> Elts; in get() local
738 Elts.push_back(CI->getZExtValue()); in get()
741 if (Elts.size() == V.size()) in get()
742 return ConstantDataArray::get(C->getContext(), Elts); in get()
744 SmallVector<uint64_t, 16> Elts; in get() local
747 Elts.push_back(CI->getZExtValue()); in get()
750 if (Elts.size() == V.size()) in get()
751 return ConstantDataArray::get(C->getContext(), Elts); in get()
757 SmallVector<float, 16> Elts; in get() local
760 Elts.push_back(CFP->getValueAPF().convertToFloat()); in get()
763 if (Elts.size() == V.size()) in get()
764 return ConstantDataArray::get(C->getContext(), Elts); in get()
766 SmallVector<double, 16> Elts; in get() local
769 Elts.push_back(CFP->getValueAPF().convertToDouble()); in get()
772 if (Elts.size() == V.size()) in get()
773 return ConstantDataArray::get(C->getContext(), Elts); in get()
898 SmallVector<uint8_t, 16> Elts; in get() local
901 Elts.push_back(CI->getZExtValue()); in get()
904 if (Elts.size() == V.size()) in get()
905 return ConstantDataVector::get(C->getContext(), Elts); in get()
907 SmallVector<uint16_t, 16> Elts; in get() local
910 Elts.push_back(CI->getZExtValue()); in get()
913 if (Elts.size() == V.size()) in get()
914 return ConstantDataVector::get(C->getContext(), Elts); in get()
916 SmallVector<uint32_t, 16> Elts; in get() local
919 Elts.push_back(CI->getZExtValue()); in get()
922 if (Elts.size() == V.size()) in get()
923 return ConstantDataVector::get(C->getContext(), Elts); in get()
925 SmallVector<uint64_t, 16> Elts; in get() local
928 Elts.push_back(CI->getZExtValue()); in get()
931 if (Elts.size() == V.size()) in get()
932 return ConstantDataVector::get(C->getContext(), Elts); in get()
938 SmallVector<float, 16> Elts; in get() local
941 Elts.push_back(CFP->getValueAPF().convertToFloat()); in get()
944 if (Elts.size() == V.size()) in get()
945 return ConstantDataVector::get(C->getContext(), Elts); in get()
947 SmallVector<double, 16> Elts; in get() local
950 Elts.push_back(CFP->getValueAPF().convertToDouble()); in get()
953 if (Elts.size() == V.size()) in get()
954 return ConstantDataVector::get(C->getContext(), Elts); in get()
971 SmallVector<Constant*, 32> Elts(NumElts, V); in getSplat() local
972 return get(Elts); in getSplat()
2214 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<uint8_t> Elts) { in get() argument
2215 Type *Ty = ArrayType::get(Type::getInt8Ty(Context), Elts.size()); in get()
2216 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2217 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*1), Ty); in get()
2219 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<uint16_t> Elts){ in get() argument
2220 Type *Ty = ArrayType::get(Type::getInt16Ty(Context), Elts.size()); in get()
2221 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2222 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*2), Ty); in get()
2224 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<uint32_t> Elts){ in get() argument
2225 Type *Ty = ArrayType::get(Type::getInt32Ty(Context), Elts.size()); in get()
2226 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2227 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty); in get()
2229 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<uint64_t> Elts){ in get() argument
2230 Type *Ty = ArrayType::get(Type::getInt64Ty(Context), Elts.size()); in get()
2231 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2232 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*8), Ty); in get()
2234 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<float> Elts) { in get() argument
2235 Type *Ty = ArrayType::get(Type::getFloatTy(Context), Elts.size()); in get()
2236 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2237 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty); in get()
2239 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<double> Elts) { in get() argument
2240 Type *Ty = ArrayType::get(Type::getDoubleTy(Context), Elts.size()); in get()
2241 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2242 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*8), Ty); in get()
2267 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint8_t> Elts){ in get() argument
2268 Type *Ty = VectorType::get(Type::getInt8Ty(Context), Elts.size()); in get()
2269 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2270 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*1), Ty); in get()
2272 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint16_t> Elts){ in get() argument
2273 Type *Ty = VectorType::get(Type::getInt16Ty(Context), Elts.size()); in get()
2274 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2275 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*2), Ty); in get()
2277 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint32_t> Elts){ in get() argument
2278 Type *Ty = VectorType::get(Type::getInt32Ty(Context), Elts.size()); in get()
2279 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2280 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty); in get()
2282 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint64_t> Elts){ in get() argument
2283 Type *Ty = VectorType::get(Type::getInt64Ty(Context), Elts.size()); in get()
2284 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2285 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*8), Ty); in get()
2287 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<float> Elts) { in get() argument
2288 Type *Ty = VectorType::get(Type::getFloatTy(Context), Elts.size()); in get()
2289 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2290 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty); in get()
2292 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<double> Elts) { in get() argument
2293 Type *Ty = VectorType::get(Type::getDoubleTy(Context), Elts.size()); in get()
2294 const char *Data = reinterpret_cast<const char *>(Elts.data()); in get()
2295 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*8), Ty); in get()
2303 SmallVector<uint8_t, 16> Elts(NumElts, CI->getZExtValue()); in getSplat() local
2304 return get(V->getContext(), Elts); in getSplat()
2307 SmallVector<uint16_t, 16> Elts(NumElts, CI->getZExtValue()); in getSplat() local
2308 return get(V->getContext(), Elts); in getSplat()
2311 SmallVector<uint32_t, 16> Elts(NumElts, CI->getZExtValue()); in getSplat() local
2312 return get(V->getContext(), Elts); in getSplat()
2315 SmallVector<uint64_t, 16> Elts(NumElts, CI->getZExtValue()); in getSplat() local
2316 return get(V->getContext(), Elts); in getSplat()
2321 SmallVector<float, 16> Elts(NumElts, CFP->getValueAPF().convertToFloat()); in getSplat() local
2322 return get(V->getContext(), Elts); in getSplat()
2325 SmallVector<double, 16> Elts(NumElts, in getSplat() local
2327 return get(V->getContext(), Elts); in getSplat()