Lines Matching defs:Elts
864 SmallVector<ElementTy, 16> Elts;
867 Elts.push_back(CI->getZExtValue());
870 return SequentialTy::get(V[0]->getContext(), Elts);
877 SmallVector<ElementTy, 16> Elts;
880 Elts.push_back(CFP->getValueAPF().bitcastToAPInt().getLimitedValue());
883 return SequentialTy::getFP(V[0]->getContext(), Elts);
1091 SmallVector<Constant*, 32> Elts(NumElts, V);
1092 return get(Elts);
2487 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<uint8_t> Elts) {
2488 Type *Ty = ArrayType::get(Type::getInt8Ty(Context), Elts.size());
2489 const char *Data = reinterpret_cast<const char *>(Elts.data());
2490 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*1), Ty);
2492 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<uint16_t> Elts){
2493 Type *Ty = ArrayType::get(Type::getInt16Ty(Context), Elts.size());
2494 const char *Data = reinterpret_cast<const char *>(Elts.data());
2495 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*2), Ty);
2497 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<uint32_t> Elts){
2498 Type *Ty = ArrayType::get(Type::getInt32Ty(Context), Elts.size());
2499 const char *Data = reinterpret_cast<const char *>(Elts.data());
2500 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty);
2502 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<uint64_t> Elts){
2503 Type *Ty = ArrayType::get(Type::getInt64Ty(Context), Elts.size());
2504 const char *Data = reinterpret_cast<const char *>(Elts.data());
2505 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*8), Ty);
2507 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<float> Elts) {
2508 Type *Ty = ArrayType::get(Type::getFloatTy(Context), Elts.size());
2509 const char *Data = reinterpret_cast<const char *>(Elts.data());
2510 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty);
2512 Constant *ConstantDataArray::get(LLVMContext &Context, ArrayRef<double> Elts) {
2513 Type *Ty = ArrayType::get(Type::getDoubleTy(Context), Elts.size());
2514 const char *Data = reinterpret_cast<const char *>(Elts.data());
2515 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 8), Ty);
2524 ArrayRef<uint16_t> Elts) {
2525 Type *Ty = ArrayType::get(Type::getHalfTy(Context), Elts.size());
2526 const char *Data = reinterpret_cast<const char *>(Elts.data());
2527 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 2), Ty);
2530 ArrayRef<uint32_t> Elts) {
2531 Type *Ty = ArrayType::get(Type::getFloatTy(Context), Elts.size());
2532 const char *Data = reinterpret_cast<const char *>(Elts.data());
2533 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 4), Ty);
2536 ArrayRef<uint64_t> Elts) {
2537 Type *Ty = ArrayType::get(Type::getDoubleTy(Context), Elts.size());
2538 const char *Data = reinterpret_cast<const char *>(Elts.data());
2539 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 8), Ty);
2564 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint8_t> Elts){
2565 Type *Ty = VectorType::get(Type::getInt8Ty(Context), Elts.size());
2566 const char *Data = reinterpret_cast<const char *>(Elts.data());
2567 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*1), Ty);
2569 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint16_t> Elts){
2570 Type *Ty = VectorType::get(Type::getInt16Ty(Context), Elts.size());
2571 const char *Data = reinterpret_cast<const char *>(Elts.data());
2572 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*2), Ty);
2574 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint32_t> Elts){
2575 Type *Ty = VectorType::get(Type::getInt32Ty(Context), Elts.size());
2576 const char *Data = reinterpret_cast<const char *>(Elts.data());
2577 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty);
2579 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<uint64_t> Elts){
2580 Type *Ty = VectorType::get(Type::getInt64Ty(Context), Elts.size());
2581 const char *Data = reinterpret_cast<const char *>(Elts.data());
2582 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*8), Ty);
2584 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<float> Elts) {
2585 Type *Ty = VectorType::get(Type::getFloatTy(Context), Elts.size());
2586 const char *Data = reinterpret_cast<const char *>(Elts.data());
2587 return getImpl(StringRef(const_cast<char *>(Data), Elts.size()*4), Ty);
2589 Constant *ConstantDataVector::get(LLVMContext &Context, ArrayRef<double> Elts) {
2590 Type *Ty = VectorType::get(Type::getDoubleTy(Context), Elts.size());
2591 const char *Data = reinterpret_cast<const char *>(Elts.data());
2592 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 8), Ty);
2601 ArrayRef<uint16_t> Elts) {
2602 Type *Ty = VectorType::get(Type::getHalfTy(Context), Elts.size());
2603 const char *Data = reinterpret_cast<const char *>(Elts.data());
2604 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 2), Ty);
2607 ArrayRef<uint32_t> Elts) {
2608 Type *Ty = VectorType::get(Type::getFloatTy(Context), Elts.size());
2609 const char *Data = reinterpret_cast<const char *>(Elts.data());
2610 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 4), Ty);
2613 ArrayRef<uint64_t> Elts) {
2614 Type *Ty = VectorType::get(Type::getDoubleTy(Context), Elts.size());
2615 const char *Data = reinterpret_cast<const char *>(Elts.data());
2616 return getImpl(StringRef(const_cast<char *>(Data), Elts.size() * 8), Ty);
2624 SmallVector<uint8_t, 16> Elts(NumElts, CI->getZExtValue());
2625 return get(V->getContext(), Elts);
2628 SmallVector<uint16_t, 16> Elts(NumElts, CI->getZExtValue());
2629 return get(V->getContext(), Elts);
2632 SmallVector<uint32_t, 16> Elts(NumElts, CI->getZExtValue());
2633 return get(V->getContext(), Elts);
2636 SmallVector<uint64_t, 16> Elts(NumElts, CI->getZExtValue());
2637 return get(V->getContext(), Elts);
2642 SmallVector<uint16_t, 16> Elts(
2644 return getFP(V->getContext(), Elts);
2647 SmallVector<uint32_t, 16> Elts(
2649 return getFP(V->getContext(), Elts);
2652 SmallVector<uint64_t, 16> Elts(
2654 return getFP(V->getContext(), Elts);