Lines Matching full:get

26   IntegerType *Int1 = IntegerType::get(Context, 1);
27 Constant *One = ConstantInt::get(Int1, 1, true);
28 Constant *Zero = ConstantInt::get(Int1, 0);
29 Constant *NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true);
31 Constant *Poison = PoisonValue::get(Int1);
99 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, false)->getSExtValue());
100 EXPECT_EQ(100, ConstantInt::get(Int8Ty, 100, true)->getSExtValue());
102 EXPECT_EQ(-50, ConstantInt::get(Int8Ty, 206)->getSExtValue());
107 EXPECT_EQ(0x3b, ConstantInt::get(Int8Ty, 0x13b)->getSExtValue());
112 Type *PtrTy = PointerType::get(C, 0);
114 VectorType *PtrVecTy = FixedVectorType::get(PtrTy, 4);
115 VectorType *Int64VecTy = FixedVectorType::get(Int64Ty, 4);
116 VectorType *PtrScalableVecTy = ScalableVectorType::get(PtrTy, 4);
117 VectorType *Int64ScalableVecTy = ScalableVectorType::get(Int64Ty, 4);
148 Type *Ptr1Ty = PointerType::get(C, 1);
149 ConstantInt *K = ConstantInt::get(Type::getInt64Ty(C), 1234);
193 Constant *P6 = ConstantExpr::getBitCast(P4, FixedVectorType::get(Int16Ty, 2));
195 Constant *One = ConstantInt::get(Int32Ty, 1);
196 Constant *Two = ConstantInt::get(Int64Ty, 2);
197 Constant *Big = ConstantInt::get(Context, APInt{256, uint64_t(-1), true});
198 Constant *Elt = ConstantInt::get(Int16Ty, 2015);
199 Constant *Poison16 = PoisonValue::get(Int16Ty);
200 Constant *Undef64 = UndefValue::get(Int64Ty);
201 Constant *PoisonV16 = PoisonValue::get(P6->getType());
250 Constant *One = ConstantInt::get(Int32Ty, 1);
270 ArrayType *ArrayTy = ArrayType::get(IntTy, 2);
271 Constant *A01Vals[2] = {ConstantInt::get(IntTy, 0),
272 ConstantInt::get(IntTy, 1)};
273 Constant *A01 = ConstantArray::get(ArrayTy, A01Vals);
278 Constant *A0GVals[2] = {ConstantInt::get(IntTy, 0), GlobalInt};
279 Constant *A0G = ConstantArray::get(ArrayTy, A0GVals);
286 GlobalInt->replaceAllUsesWith(ConstantInt::get(IntTy, 1));
318 Type *PtrTy = PointerType::get(Context, 0);
319 auto *C1 = ConstantInt::get(IntTy, 1);
332 "alias", Global, M.get());
345 Type *I16PTy = PointerType::get(Context, 0);
348 LLVMAddAlias2(wrap(M.get()), wrap(I16Ty), 0, wrap(Aliasee), "a");
364 ArrayType *ArrayTy = ArrayType::get(T, 2);
365 Constant *Vals[] = {ConstantInt::get(T, 0), ConstantInt::get(T, 1)};
366 Constant *CA = ConstantArray::get(ArrayTy, Vals);
376 ArrayType *ArrayTy = ArrayType::get(T, 2);
377 Constant *Vals[] = {ConstantFP::get(T, 0), ConstantFP::get(T, 1)};
378 Constant *CA = ConstantArray::get(ArrayTy, Vals);
392 Constant *Vals[] = {ConstantInt::get(T, 0), ConstantInt::get(T, 1)};
393 Constant *CV = ConstantVector::get(Vals);
403 Constant *Vals[] = {ConstantFP::get(T, 0), ConstantFP::get(T, 1)};
404 Constant *CV = ConstantVector::get(Vals);
424 auto *PtrTy = PointerType::get(Context, 0);
434 FunctionType *FuncType(FunctionType::get(VoidType, false));
442 ConstantInt *TheConstant(ConstantInt::get(ConstantIntType, AndValue));
530 ConstantInt *TheConstant(ConstantInt::get(IntType, 2));
532 Constant *TheConstantExpr(ConstantExpr::getPtrToInt(Global.get(), IntType));
546 Constant *CU = UndefValue::get(Int32Ty);
547 Constant *CP = PoisonValue::get(Int32Ty);
548 Constant *C1 = ConstantInt::get(Int32Ty, 1);
549 Constant *C2 = ConstantInt::get(Int32Ty, 2);
552 Constant *V1 = ConstantVector::get({C1, C2});
558 Constant *V2 = ConstantVector::get({C1, CU});
564 Constant *V3 = ConstantVector::get({C1, CP});
570 Constant *V4 = ConstantVector::get({CU, CP});
584 Constant *CU = UndefValue::get(Int32Ty);
585 Constant *CP = PoisonValue::get(Int32Ty);
586 Constant *C1 = ConstantInt::get(Int32Ty, 1);
587 Constant *C2 = ConstantInt::get(Int32Ty, 2);
589 Constant *C1211 = ConstantVector::get({C1, C2, C1, C1});
590 Constant *C12U1 = ConstantVector::get({C1, C2, CU, C1});
591 Constant *C12U2 = ConstantVector::get({C1, C2, CU, C2});
592 Constant *C12U21 = ConstantVector::get({C1, C2, CU, C2, C1});
593 Constant *C12P1 = ConstantVector::get({C1, C2, CP, C1});
594 Constant *C12P2 = ConstantVector::get({C1, C2, CP, C2});
595 Constant *C12P21 = ConstantVector::get({C1, C2, CP, C2, C1});
610 Constant *CFU = UndefValue::get(FltTy);
611 Constant *CFP = PoisonValue::get(FltTy);
612 Constant *CF1 = ConstantFP::get(FltTy, 1.0);
613 Constant *CF2 = ConstantFP::get(FltTy, 2.0);
615 Constant *CF1211 = ConstantVector::get({CF1, CF2, CF1, CF1});
616 Constant *CF12U1 = ConstantVector::get({CF1, CF2, CFU, CF1});
617 Constant *CF12U2 = ConstantVector::get({CF1, CF2, CFU, CF2});
618 Constant *CFUU1U = ConstantVector::get({CFU, CFU, CF1, CFU});
619 Constant *CF12P1 = ConstantVector::get({CF1, CF2, CFP, CF1});
620 Constant *CF12P2 = ConstantVector::get({CF1, CF2, CFP, CF2});
621 Constant *CFPP1P = ConstantVector::get({CFP, CFP, CF1, CFP});
635 PointerType *PtrTy = PointerType::get(Context, 0);
636 Constant *CPU = UndefValue::get(PtrTy);
637 Constant *CPP = PoisonValue::get(PtrTy);
638 Constant *CP0 = ConstantPointerNull::get(PtrTy);
640 Constant *CP0000 = ConstantVector::get({CP0, CP0, CP0, CP0});
641 Constant *CP00U0 = ConstantVector::get({CP0, CP0, CPU, CP0});
642 Constant *CP00U = ConstantVector::get({CP0, CP0, CPU});
643 Constant *CP00P0 = ConstantVector::get({CP0, CP0, CPP, CP0});
644 Constant *CP00P = ConstantVector::get({CP0, CP0, CPP});
663 StructType *STy = StructType::get(Int32Ty, Int32Ty);
664 ArrayType *ATy = ArrayType::get(Int32Ty, 2);
665 Constant *CU = UndefValue::get(Int32Ty);
666 Constant *CP = PoisonValue::get(Int32Ty);
669 Constant *CUU = ConstantVector::get({CU, CU});
670 Constant *CPP = ConstantVector::get({CP, CP});
671 Constant *CUP = ConstantVector::get({CU, CP});
672 Constant *CPU = ConstantVector::get({CP, CU});
673 EXPECT_EQ(CUU, UndefValue::get(CUU->getType()));
674 EXPECT_EQ(CPP, PoisonValue::get(CPP->getType()));
675 EXPECT_NE(CUP, UndefValue::get(CUP->getType()));
676 EXPECT_NE(CPU, UndefValue::get(CPU->getType()));
680 Constant *CUU = ConstantStruct::get(STy, {CU, CU});
681 Constant *CPP = ConstantStruct::get(STy, {CP, CP});
682 Constant *CUP = ConstantStruct::get(STy, {CU, CP});
683 Constant *CPU = ConstantStruct::get(STy, {CP, CU});
684 EXPECT_EQ(CUU, UndefValue::get(CUU->getType()));
685 EXPECT_EQ(CPP, PoisonValue::get(CPP->getType()));
686 EXPECT_NE(CUP, UndefValue::get(CUP->getType()));
687 EXPECT_NE(CPU, UndefValue::get(CPU->getType()));
691 Constant *CUU = ConstantArray::get(ATy, {CU, CU});
692 Constant *CPP = ConstantArray::get(ATy, {CP, CP});
693 Constant *CUP = ConstantArray::get(ATy, {CU, CP});
694 Constant *CPU = ConstantArray::get(ATy, {CP, CU});
695 EXPECT_EQ(CUU, UndefValue::get(CUU->getType()));
696 EXPECT_EQ(CPP, PoisonValue::get(CPP->getType()));
697 EXPECT_NE(CUP, UndefValue::get(CUP->getType()));
698 EXPECT_NE(CPU, UndefValue::get(CPU->getType()));
774 EXPECT_TRUE(M.get() != nullptr);
776 // Get the function
780 // Get the second basic block, since we can't use the entry one
788 // Get the Function/BasicBlock values back out