/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/ |
D | InstructionsTest.cpp | 188 Type *Int32Ty = Type::getInt32Ty(C); in TEST() local 198 Type *V2Int32Ty = VectorType::get(Int32Ty, 2); in TEST() 202 Type *Int32PtrTy = PointerType::get(Int32Ty, 0); in TEST() 205 Type *Int32PtrAS1Ty = PointerType::get(Int32Ty, 1); in TEST() 259 EXPECT_TRUE(CastInst::isBitCastable(FloatTy, Int32Ty)); in TEST() 261 EXPECT_TRUE(CastInst::isBitCastable(Int32Ty, FloatTy)); in TEST() 265 EXPECT_FALSE(CastInst::isBitCastable(Int32Ty, Int64Ty)); in TEST() 266 EXPECT_FALSE(CastInst::isBitCastable(Int64Ty, Int32Ty)); in TEST() 428 Type* Int32Ty = Type::getInt32Ty(C); in TEST() local 436 Int32Ty, nullptr, Int32Ty), in TEST() [all …]
|
D | ValueTest.cpp | 51 Type *Int32Ty = Type::getInt32Ty(Ctx); in TEST() local 55 Int32Ty, in TEST() 58 Constant::getAllOnesValue(Int32Ty), in TEST() 69 Constant *Dummy1 = M->getOrInsertGlobal("dummy", Int32Ty); in TEST() 77 Int32Ty, in TEST() 80 Constant::getAllOnesValue(Int32Ty), in TEST() 97 Type *Int32Ty = Type::getInt32Ty(Ctx); in TEST() local 99 new GlobalVariable(*M, Int32Ty, true, GlobalValue::ExternalLinkage, in TEST() 100 Constant::getAllOnesValue(Int32Ty), "var", nullptr, in TEST()
|
D | BasicBlockTest.cpp | 46 auto *Int32Ty = Type::getInt32Ty(Context); in TEST() local 47 auto *P1 = PHINode::Create(Int32Ty, /*NumReservedValues*/ 3, "phi.1", BI); in TEST() 48 auto *P2 = PHINode::Create(Int32Ty, /*NumReservedValues*/ 3, "phi.2", BI); in TEST() 49 auto *P3 = PHINode::Create(Int32Ty, /*NumReservedValues*/ 3, "phi.3", BI); in TEST() 62 PN.addIncoming(UndefValue::get(Int32Ty), BB1.get()); in TEST() 63 PN.addIncoming(UndefValue::get(Int32Ty), BB2.get()); in TEST()
|
D | ConstantsTest.cpp | 197 Type *Int32Ty = Type::getInt32Ty(Context); in TEST() local 204 PointerType::getUnqual(Int32Ty)); in TEST() 206 PointerType::getUnqual(Int32Ty)); in TEST() 208 Constant *P0 = ConstantExpr::getPtrToInt(Global, Int32Ty); in TEST() 212 Constant *P4 = ConstantExpr::getPtrToInt(Global2, Int32Ty); in TEST() 216 Constant *One = ConstantInt::get(Int32Ty, 1); in TEST() 285 CHECK(ConstantExpr::getInBoundsGetElementPtr(PointerType::getUnqual(Int32Ty), in TEST() 309 Type *Int32Ty = Type::getInt32Ty(Context); in TEST() local 310 Constant *One = ConstantInt::get(Int32Ty, 1); in TEST() 313 M->getOrInsertGlobal("dummy", PointerType::getUnqual(Int32Ty)); in TEST() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/FuzzMutate/ |
D | OperationsTest.cpp | 284 Type *Int32Ty = Type::getInt32Ty(Ctx); in TEST() local 296 ConstantInt::get(Int32Ty, 0))); in TEST() 298 GEPOp.BuilderFunc({UndefValue::get(Int8PtrTy), ConstantInt::get(Int32Ty, 0)}, in TEST() 334 Type *Int32Ty = Type::getInt32Ty(Ctx); in TEST() local 337 Type *StructTy = StructType::create(Ctx, {Int8PtrTy, Int32Ty}); in TEST() 341 Type *VectorTy = VectorType::get(Int32Ty, 2); in TEST() 368 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 0))); in TEST() 370 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 1))); in TEST() 372 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 2))); in TEST() 374 EVOp.SourcePreds[1].matches({OVal}, ConstantInt::get(Int32Ty, 0))); in TEST() [all …]
|
/external/llvm/unittests/IR/ |
D | InstructionsTest.cpp | 176 Type *Int32Ty = Type::getInt32Ty(C); in TEST() local 186 Type *V2Int32Ty = VectorType::get(Int32Ty, 2); in TEST() 190 Type *Int32PtrTy = PointerType::get(Int32Ty, 0); in TEST() 193 Type *Int32PtrAS1Ty = PointerType::get(Int32Ty, 1); in TEST() 247 EXPECT_TRUE(CastInst::isBitCastable(FloatTy, Int32Ty)); in TEST() 249 EXPECT_TRUE(CastInst::isBitCastable(Int32Ty, FloatTy)); in TEST() 253 EXPECT_FALSE(CastInst::isBitCastable(Int32Ty, Int64Ty)); in TEST() 254 EXPECT_FALSE(CastInst::isBitCastable(Int64Ty, Int32Ty)); in TEST() 416 Type* Int32Ty = Type::getInt32Ty(C); in TEST() local 424 Int32Ty, nullptr, Int32Ty), in TEST() [all …]
|
D | ValueTest.cpp | 51 Type *Int32Ty = Type::getInt32Ty(Ctx); in TEST() local 55 Int32Ty, in TEST() 58 Constant::getAllOnesValue(Int32Ty), in TEST() 69 Constant *Dummy1 = M->getOrInsertGlobal("dummy", Int32Ty); in TEST() 77 Int32Ty, in TEST() 80 Constant::getAllOnesValue(Int32Ty), in TEST() 97 Type *Int32Ty = Type::getInt32Ty(Ctx); in TEST() local 99 new GlobalVariable(*M, Int32Ty, true, GlobalValue::ExternalLinkage, in TEST() 100 Constant::getAllOnesValue(Int32Ty), "var", nullptr, in TEST()
|
D | ConstantsTest.cpp | 196 Type *Int32Ty = Type::getInt32Ty(Context); in TEST() local 203 PointerType::getUnqual(Int32Ty)); in TEST() 205 PointerType::getUnqual(Int32Ty)); in TEST() 207 Constant *P0 = ConstantExpr::getPtrToInt(Global, Int32Ty); in TEST() 211 Constant *P4 = ConstantExpr::getPtrToInt(Global2, Int32Ty); in TEST() 215 Constant *One = ConstantInt::get(Int32Ty, 1); in TEST() 284 CHECK(ConstantExpr::getInBoundsGetElementPtr(PointerType::getUnqual(Int32Ty), in TEST() 308 Type *Int32Ty = Type::getInt32Ty(Context); in TEST() local 309 Constant *One = ConstantInt::get(Int32Ty, 1); in TEST() 312 M->getOrInsertGlobal("dummy", PointerType::getUnqual(Int32Ty)); in TEST() [all …]
|
/external/llvm/unittests/ExecutionEngine/Orc/ |
D | ObjectLinkingLayerTest.cpp | 71 Type *Int32Ty = IntegerType::get(Context, 32); in TEST() local 73 new GlobalVariable(*M, Int32Ty, false, GlobalValue::ExternalLinkage, in TEST() 74 ConstantInt::get(Int32Ty, 42), "foo"); in TEST() 142 IntegerType *Int32Ty = IntegerType::get(Context, 32); in TEST_F() local 143 Value *FourtyTwo = ConstantInt::getSigned(Int32Ty, 42); in TEST_F() 212 IntegerType *Int32Ty = IntegerType::get(Context, 32); in TEST_F() local 213 Value *FourtyTwo = ConstantInt::getSigned(Int32Ty, 42); in TEST_F() 227 IntegerType *Int32Ty = IntegerType::get(Context, 32); in TEST_F() local 228 Value *Seven = ConstantInt::getSigned(Int32Ty, 7); in TEST_F()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ExecutionEngine/Orc/ |
D | RTDyldObjectLinkingLayerTest.cpp | 80 Type *Int32Ty = IntegerType::get(Context, 32); in TEST() local 82 new GlobalVariable(*M, Int32Ty, false, GlobalValue::ExternalLinkage, in TEST() 83 ConstantInt::get(Int32Ty, 42), "foo"); in TEST() 159 IntegerType *Int32Ty = IntegerType::get(Context, 32); in TEST_F() local 160 Value *FourtyTwo = ConstantInt::getSigned(Int32Ty, 42); in TEST_F() 238 IntegerType *Int32Ty = IntegerType::get(Context, 32); in TEST_F() local 239 Value *FourtyTwo = ConstantInt::getSigned(Int32Ty, 42); in TEST_F() 251 IntegerType *Int32Ty = IntegerType::get(Context, 32); in TEST_F() local 252 Value *Seven = ConstantInt::getSigned(Int32Ty, 7); in TEST_F()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | SjLjEHPrepare.cpp | 103 Type *Int32Ty = Type::getInt32Ty(M.getContext()); in doInitialization() local 106 Int32Ty, // call_site in doInitialization() 107 ArrayType::get(Int32Ty, 4), // __data in doInitialization() 512 Type *Int32Ty = Type::getInt32Ty(F.getContext()); in insertSjLjEHSupport() local 513 Value *Zero = ConstantInt::get(Int32Ty, 0); in insertSjLjEHSupport() 516 Idxs[1] = ConstantInt::get(Int32Ty, 1); in insertSjLjEHSupport() 521 Idxs[1] = ConstantInt::get(Int32Ty, 2); in insertSjLjEHSupport() 524 Idxs[1] = ConstantInt::get(Int32Ty, 1); in insertSjLjEHSupport() 596 Idxs[1] = ConstantInt::get(Int32Ty, 4); in insertSjLjEHSupport() 604 Idxs[1] = ConstantInt::get(Int32Ty, 3); in insertSjLjEHSupport() [all …]
|
/external/clang/lib/CodeGen/ |
D | CGOpenMPRuntime.cpp | 726 "ident_t", CGM.Int32Ty /* reserved_1 */, CGM.Int32Ty /* flags */, in CGOpenMPRuntime() 727 CGM.Int32Ty /* reserved_2 */, CGM.Int32Ty /* reserved_3 */, in CGOpenMPRuntime() 729 KmpCriticalNameTy = llvm::ArrayType::get(CGM.Int32Ty, /*NumElements*/ 8); in CGOpenMPRuntime() 915 llvm::Constant *Zero = llvm::ConstantInt::get(CGM.Int32Ty, 0, true); in getOrCreateDefaultLocation() 917 llvm::ConstantInt::get(CGM.Int32Ty, Flags), in getOrCreateDefaultLocation() 1048 llvm::Type *MicroParams[] = {llvm::PointerType::getUnqual(CGM.Int32Ty), in getKmpc_MicroPointerTy() 1049 llvm::PointerType::getUnqual(CGM.Int32Ty)}; in getKmpc_MicroPointerTy() 1062 llvm::Type *TypeParams[] = {getIdentTyPointerTy(), CGM.Int32Ty, in createRuntimeFunction() 1073 llvm::FunctionType::get(CGM.Int32Ty, TypeParams, /*isVarArg*/ false); in createRuntimeFunction() 1080 llvm::Type *TypeParams[] = {getIdentTyPointerTy(), CGM.Int32Ty, in createRuntimeFunction() [all …]
|
D | CGVTT.cpp | 47 llvm::Type *Int8PtrTy = CGM.Int8PtrTy, *Int32Ty = CGM.Int32Ty; in EmitVTTDefinition() local 78 llvm::ConstantInt::get(Int32Ty, 0), in EmitVTTDefinition() 79 llvm::ConstantInt::get(Int32Ty, AddressPoint) in EmitVTTDefinition()
|
D | CGOpenMPRuntimeNVPTX.cpp | 119 CGM.getModule(), CGM.Int32Ty, /*isConstant=*/false, in initializeEnvironment() 121 llvm::Constant::getNullValue(CGM.Int32Ty), "__omp_num_threads", 0, in initializeEnvironment() 123 ActiveWorkers->setAlignment(DL.getPrefTypeAlignment(CGM.Int32Ty)); in initializeEnvironment() 275 llvm::Type *TypeParams[] = {CGM.Int32Ty, CGM.Int32Ty}; in createNVPTXRuntimeFunction() 388 CGF.CreateTempAlloca(CGF.Int32Ty, CharUnits::fromQuantity(4), in emitTeamsCall()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | LowerExpectIntrinsic.cpp | 61 Type *Int32Ty = Type::getInt32Ty(Context); in HandleSwitchExpect() local 70 Vec[i + 1] = ConstantInt::get(Int32Ty, i == caseNo ? LikelyBranchWeight : UnlikelyBranchWeight); in HandleSwitchExpect() 108 Type *Int32Ty = Type::getInt32Ty(Context); in HandleIfExpect() local 115 ConstantInt::get(Int32Ty, Likely ? LikelyBranchWeight : UnlikelyBranchWeight), in HandleIfExpect() 116 ConstantInt::get(Int32Ty, Likely ? UnlikelyBranchWeight : LikelyBranchWeight) in HandleIfExpect()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | EfficiencySanitizer.cpp | 329 auto *Int32Ty = Type::getInt32Ty(*Ctx); in createCacheFragAuxGV() local 336 auto *OffsetArrayTy = ArrayType::get(Int32Ty, StructTy->getNumElements()); in createCacheFragAuxGV() 341 auto *SizeArrayTy = ArrayType::get(Int32Ty, StructTy->getNumElements()); in createCacheFragAuxGV() 355 ConstantInt::get(Int32Ty, in createCacheFragAuxGV() 357 SizeVec.push_back(ConstantInt::get(Int32Ty, in createCacheFragAuxGV() 372 auto *Int32Ty = Type::getInt32Ty(*Ctx); in createCacheFragInfoGV() local 389 StructType::get(Int8PtrTy, Int32Ty, Int32Ty, Int32PtrTy, Int32PtrTy, in createCacheFragInfoGV() 400 StructType::get(Int8PtrTy, Int32Ty, StructInfoPtrTy, nullptr); in createCacheFragInfoGV() 441 FieldCounterIdx[0] = ConstantInt::get(Int32Ty, 0); in createCacheFragInfoGV() 442 FieldCounterIdx[1] = ConstantInt::get(Int32Ty, in createCacheFragInfoGV() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/ |
D | EfficiencySanitizer.cpp | 341 auto *Int32Ty = Type::getInt32Ty(*Ctx); in createCacheFragAuxGV() local 348 auto *OffsetArrayTy = ArrayType::get(Int32Ty, StructTy->getNumElements()); in createCacheFragAuxGV() 353 auto *SizeArrayTy = ArrayType::get(Int32Ty, StructTy->getNumElements()); in createCacheFragAuxGV() 367 ConstantInt::get(Int32Ty, in createCacheFragAuxGV() 369 SizeVec.push_back(ConstantInt::get(Int32Ty, in createCacheFragAuxGV() 384 auto *Int32Ty = Type::getInt32Ty(*Ctx); in createCacheFragInfoGV() local 401 StructType::get(Int8PtrTy, Int32Ty, Int32Ty, Int32PtrTy, Int32PtrTy, in createCacheFragInfoGV() 411 auto *CacheFragInfoTy = StructType::get(Int8PtrTy, Int32Ty, StructInfoPtrTy); in createCacheFragInfoGV() 452 FieldCounterIdx[0] = ConstantInt::get(Int32Ty, 0); in createCacheFragInfoGV() 453 FieldCounterIdx[1] = ConstantInt::get(Int32Ty, in createCacheFragInfoGV() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/FuzzMutate/ |
D | Operations.cpp | 199 auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext()); in validExtractValueIndex() local 202 Result.push_back(ConstantInt::get(Int32Ty, 0)); in validExtractValueIndex() 204 Result.push_back(ConstantInt::get(Int32Ty, N - 1)); in validExtractValueIndex() 206 Result.push_back(ConstantInt::get(Int32Ty, N / 2)); in validExtractValueIndex() 257 auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext()); in validInsertValueIndex() local 261 Result.push_back(ConstantInt::get(Int32Ty, I)); in validInsertValueIndex() 303 auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext()); in validShuffleVectorIndex() local 307 UndefValue::get(VectorType::get(Int32Ty, FirstTy->getNumElements()))}; in validShuffleVectorIndex()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCBoolRetToInt.cpp | 79 Type *Int32Ty = Type::getInt32Ty(V->getContext()); in translate() local 81 return ConstantExpr::getZExt(C, Int32Ty); in translate() 85 Value *Zero = Constant::getNullValue(Int32Ty); in translate() 87 PHINode::Create(Int32Ty, P->getNumIncomingValues(), P->getName(), P); in translate() 99 return new ZExtInst(V, Int32Ty, "", InstPt); in translate()
|
/external/llvm/lib/Transforms/Utils/ |
D | IntegerDivision.cpp | 510 Type *Int32Ty = Builder.getInt32Ty(); in expandRemainderUpTo32Bits() local 513 ExtDividend = Builder.CreateSExt(Rem->getOperand(0), Int32Ty); in expandRemainderUpTo32Bits() 514 ExtDivisor = Builder.CreateSExt(Rem->getOperand(1), Int32Ty); in expandRemainderUpTo32Bits() 517 ExtDividend = Builder.CreateZExt(Rem->getOperand(0), Int32Ty); in expandRemainderUpTo32Bits() 518 ExtDivisor = Builder.CreateZExt(Rem->getOperand(1), Int32Ty); in expandRemainderUpTo32Bits() 607 Type *Int32Ty = Builder.getInt32Ty(); in expandDivisionUpTo32Bits() local 610 ExtDividend = Builder.CreateSExt(Div->getOperand(0), Int32Ty); in expandDivisionUpTo32Bits() 611 ExtDivisor = Builder.CreateSExt(Div->getOperand(1), Int32Ty); in expandDivisionUpTo32Bits() 614 ExtDividend = Builder.CreateZExt(Div->getOperand(0), Int32Ty); in expandDivisionUpTo32Bits() 615 ExtDivisor = Builder.CreateZExt(Div->getOperand(1), Int32Ty); in expandDivisionUpTo32Bits()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | IntegerDivision.cpp | 510 Type *Int32Ty = Builder.getInt32Ty(); in expandRemainderUpTo32Bits() local 513 ExtDividend = Builder.CreateSExt(Rem->getOperand(0), Int32Ty); in expandRemainderUpTo32Bits() 514 ExtDivisor = Builder.CreateSExt(Rem->getOperand(1), Int32Ty); in expandRemainderUpTo32Bits() 517 ExtDividend = Builder.CreateZExt(Rem->getOperand(0), Int32Ty); in expandRemainderUpTo32Bits() 518 ExtDivisor = Builder.CreateZExt(Rem->getOperand(1), Int32Ty); in expandRemainderUpTo32Bits() 607 Type *Int32Ty = Builder.getInt32Ty(); in expandDivisionUpTo32Bits() local 610 ExtDividend = Builder.CreateSExt(Div->getOperand(0), Int32Ty); in expandDivisionUpTo32Bits() 611 ExtDivisor = Builder.CreateSExt(Div->getOperand(1), Int32Ty); in expandDivisionUpTo32Bits() 614 ExtDividend = Builder.CreateZExt(Div->getOperand(0), Int32Ty); in expandDivisionUpTo32Bits() 615 ExtDivisor = Builder.CreateZExt(Div->getOperand(1), Int32Ty); in expandDivisionUpTo32Bits()
|
/external/llvm/lib/Target/X86/ |
D | X86WinEHState.cpp | 283 Type *Int32Ty = Builder.getInt32Ty(); in emitExceptionRegistrationRecord() local 317 EHGuardNode = Builder.CreateAlloca(Int32Ty); in emitExceptionRegistrationRecord() 329 LSDA = Builder.CreatePtrToInt(LSDA, Int32Ty); in emitExceptionRegistrationRecord() 333 Cookie = TheModule->getOrInsertGlobal("__security_cookie", Int32Ty); in emitExceptionRegistrationRecord() 334 Value *Val = Builder.CreateLoad(Int32Ty, Cookie, "cookie"); in emitExceptionRegistrationRecord() 341 Value *Val = Builder.CreateLoad(Int32Ty, Cookie); in emitExceptionRegistrationRecord() 345 Value *FrameAddrI32 = Builder.CreatePtrToInt(FrameAddr, Int32Ty); in emitExceptionRegistrationRecord() 389 Type *Int32Ty = Type::getInt32Ty(Context); in generateLSDAInEAXThunk() local 394 FunctionType::get(Int32Ty, makeArrayRef(&ArgTys[0], 4), in generateLSDAInEAXThunk() 397 FunctionType::get(Int32Ty, makeArrayRef(&ArgTys[0], 5), in generateLSDAInEAXThunk()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86WinEHState.cpp | 289 Type *Int32Ty = Builder.getInt32Ty(); in emitExceptionRegistrationRecord() local 323 EHGuardNode = Builder.CreateAlloca(Int32Ty); in emitExceptionRegistrationRecord() 335 LSDA = Builder.CreatePtrToInt(LSDA, Int32Ty); in emitExceptionRegistrationRecord() 339 Cookie = TheModule->getOrInsertGlobal("__security_cookie", Int32Ty); in emitExceptionRegistrationRecord() 340 Value *Val = Builder.CreateLoad(Int32Ty, Cookie, "cookie"); in emitExceptionRegistrationRecord() 347 Value *Val = Builder.CreateLoad(Int32Ty, Cookie); in emitExceptionRegistrationRecord() 351 Value *FrameAddrI32 = Builder.CreatePtrToInt(FrameAddr, Int32Ty); in emitExceptionRegistrationRecord() 395 Type *Int32Ty = Type::getInt32Ty(Context); in generateLSDAInEAXThunk() local 400 FunctionType::get(Int32Ty, makeArrayRef(&ArgTys[0], 4), in generateLSDAInEAXThunk() 403 FunctionType::get(Int32Ty, makeArrayRef(&ArgTys[0], 5), in generateLSDAInEAXThunk()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVVMIntrRange.cpp | 69 IntegerType *Int32Ty = Type::getInt32Ty(Context); in addRangeMetadata() local 71 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Low)), in addRangeMetadata() 72 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, High))}; in addRangeMetadata()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/ |
D | NVVMIntrRange.cpp | 73 IntegerType *Int32Ty = Type::getInt32Ty(Context); in addRangeMetadata() local 75 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Low)), in addRangeMetadata() 76 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, High))}; in addRangeMetadata()
|