/external/llvm-project/llvm/unittests/Transforms/Utils/ |
D | SSAUpdaterBulkTest.cpp | 26 Type *I32Ty = B.getInt32Ty(); in TEST() local 27 auto *F = Function::Create(FunctionType::get(B.getVoidTy(), {I32Ty}, false), in TEST() 56 Value *AddOp1 = B.CreateAdd(FirstArg, ConstantInt::get(I32Ty, 1)); in TEST() 57 Value *SubOp1 = B.CreateSub(FirstArg, ConstantInt::get(I32Ty, 2)); in TEST() 61 Value *AddOp2 = B.CreateAdd(FirstArg, ConstantInt::get(I32Ty, 3)); in TEST() 62 Value *SubOp2 = B.CreateSub(FirstArg, ConstantInt::get(I32Ty, 4)); in TEST() 66 auto *I1 = cast<Instruction>(B.CreateAdd(AddOp1, ConstantInt::get(I32Ty, 5))); in TEST() 67 auto *I2 = cast<Instruction>(B.CreateAdd(AddOp2, ConstantInt::get(I32Ty, 6))); in TEST() 75 unsigned VarNum = Updater.AddVariable("a", I32Ty); in TEST() 81 VarNum = Updater.AddVariable("b", I32Ty); in TEST() [all …]
|
D | ScalarEvolutionExpanderTest.cpp | 76 auto *I32Ty = Type::getInt32Ty(Context); in TEST_F() local 102 new AllocaInst(I32Ty, DL.getAllocaAddrSpace(), "alloca", Br); in TEST_F() 105 GetElementPtrInst::Create(I32Ty, Alloca, Ci32, "gep0", Br); in TEST_F()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUCodeGenPrepare.cpp | 298 Type *I32Ty = getI32Ty(Builder, I.getType()); in promoteUniformOpToI32() local 305 ExtOp0 = Builder.CreateSExt(I.getOperand(0), I32Ty); in promoteUniformOpToI32() 306 ExtOp1 = Builder.CreateSExt(I.getOperand(1), I32Ty); in promoteUniformOpToI32() 308 ExtOp0 = Builder.CreateZExt(I.getOperand(0), I32Ty); in promoteUniformOpToI32() 309 ExtOp1 = Builder.CreateZExt(I.getOperand(1), I32Ty); in promoteUniformOpToI32() 339 Type *I32Ty = getI32Ty(Builder, I.getOperand(0)->getType()); in promoteUniformOpToI32() local 345 ExtOp0 = Builder.CreateSExt(I.getOperand(0), I32Ty); in promoteUniformOpToI32() 346 ExtOp1 = Builder.CreateSExt(I.getOperand(1), I32Ty); in promoteUniformOpToI32() 348 ExtOp0 = Builder.CreateZExt(I.getOperand(0), I32Ty); in promoteUniformOpToI32() 349 ExtOp1 = Builder.CreateZExt(I.getOperand(1), I32Ty); in promoteUniformOpToI32() [all …]
|
D | AMDGPUPromoteAlloca.cpp | 246 Type *I32Ty = Type::getInt32Ty(Mod->getContext()); in getLocalSizeYZ() local 248 DispatchPtr, PointerType::get(I32Ty, AMDGPUAS::CONSTANT_ADDRESS)); in getLocalSizeYZ() 253 Value *GEPXY = Builder.CreateConstInBoundsGEP1_64(I32Ty, CastDispatchPtr, 1); in getLocalSizeYZ() 254 LoadInst *LoadXY = Builder.CreateAlignedLoad(I32Ty, GEPXY, 4); in getLocalSizeYZ() 256 Value *GEPZU = Builder.CreateConstInBoundsGEP1_64(I32Ty, CastDispatchPtr, 2); in getLocalSizeYZ() 257 LoadInst *LoadZU = Builder.CreateAlignedLoad(I32Ty, GEPZU, 4); in getLocalSizeYZ()
|
D | AMDGPUPrintfRuntimeBinding.cpp | 153 Type *I32Ty = Type::getInt32Ty(Ctx); in lowerPrintfForGpu() local 366 Builder.CreateSExt(Builder.CreateNot(cmp), I32Ty, "printf_res"); in lowerPrintfForGpu() 386 Type *idPointer = PointerType::get(I32Ty, AMDGPUAS::GLOBAL_ADDRESS); in lowerPrintfForGpu() 391 new StoreInst(ConstantInt::get(I32Ty, UniqID), id_gep_cast); in lowerPrintfForGpu() 538 BuffOffset.push_back(ConstantInt::get(I32Ty, ArgSize)); in lowerPrintfForGpu()
|
/external/llvm-project/llvm/unittests/Analysis/ |
D | PhiValuesTest.cpp | 25 Type *I32Ty = Type::getInt32Ty(C); in TEST() local 40 Value *Val1 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val1", Entry); in TEST() 41 Value *Val2 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val2", Entry); in TEST() 42 Value *Val3 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val3", Entry); in TEST() 43 Value *Val4 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val4", Entry); in TEST() 45 PHINode *Phi1 = PHINode::Create(I32Ty, 2, "phi1", Then); in TEST() 48 PHINode *Phi2 = PHINode::Create(I32Ty, 2, "phi2", Then); in TEST() 92 Type *I32Ty = Type::getInt32Ty(C); in TEST() local 113 Value *Val1 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val1", Entry); in TEST() 114 Value *Val2 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val2", Entry); in TEST() [all …]
|
D | ValueLatticeTest.cpp | 29 auto I32Ty = IntegerType::get(Context, 32); in TEST_F() local 30 auto *C1 = ConstantInt::get(I32Ty, 1); in TEST_F() 61 auto I32Ty = IntegerType::get(Context, 32); in TEST_F() local 62 auto *C1 = ConstantInt::get(I32Ty, 1); in TEST_F() 72 LV1.mergeIn(ValueLatticeElement::get(ConstantInt::get(I32Ty, 99)))); in TEST_F() 103 auto *I32Ty = IntegerType::get(Context, 32); in TEST_F() local 105 auto *C1 = ConstantInt::get(I32Ty, 1); in TEST_F() 173 auto *I32Ty = IntegerType::get(Context, 32); in TEST_F() local 176 auto LV1 = ValueLatticeElement::get(UndefValue::get(I32Ty)); in TEST_F()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUCodeGenPrepare.cpp | 348 Type *I32Ty = getI32Ty(Builder, I.getType()); in promoteUniformOpToI32() local 355 ExtOp0 = Builder.CreateSExt(I.getOperand(0), I32Ty); in promoteUniformOpToI32() 356 ExtOp1 = Builder.CreateSExt(I.getOperand(1), I32Ty); in promoteUniformOpToI32() 358 ExtOp0 = Builder.CreateZExt(I.getOperand(0), I32Ty); in promoteUniformOpToI32() 359 ExtOp1 = Builder.CreateZExt(I.getOperand(1), I32Ty); in promoteUniformOpToI32() 389 Type *I32Ty = getI32Ty(Builder, I.getOperand(0)->getType()); in promoteUniformOpToI32() local 395 ExtOp0 = Builder.CreateSExt(I.getOperand(0), I32Ty); in promoteUniformOpToI32() 396 ExtOp1 = Builder.CreateSExt(I.getOperand(1), I32Ty); in promoteUniformOpToI32() 398 ExtOp0 = Builder.CreateZExt(I.getOperand(0), I32Ty); in promoteUniformOpToI32() 399 ExtOp1 = Builder.CreateZExt(I.getOperand(1), I32Ty); in promoteUniformOpToI32() [all …]
|
D | AMDGPUPrintfRuntimeBinding.cpp | 153 Type *I32Ty = Type::getInt32Ty(Ctx); in lowerPrintfForGpu() local 366 Builder.CreateSExt(Builder.CreateNot(cmp), I32Ty, "printf_res"); in lowerPrintfForGpu() 385 Type *idPointer = PointerType::get(I32Ty, AMDGPUAS::GLOBAL_ADDRESS); in lowerPrintfForGpu() 389 new StoreInst(ConstantInt::get(I32Ty, UniqID), id_gep_cast, Brnch); in lowerPrintfForGpu() 527 BuffOffset.push_back(ConstantInt::get(I32Ty, ArgSize)); in lowerPrintfForGpu()
|
D | AMDGPUPromoteAlloca.cpp | 287 Type *I32Ty = Type::getInt32Ty(Mod->getContext()); in getLocalSizeYZ() local 289 DispatchPtr, PointerType::get(I32Ty, AMDGPUAS::CONSTANT_ADDRESS)); in getLocalSizeYZ() 294 Value *GEPXY = Builder.CreateConstInBoundsGEP1_64(I32Ty, CastDispatchPtr, 1); in getLocalSizeYZ() 295 LoadInst *LoadXY = Builder.CreateAlignedLoad(I32Ty, GEPXY, Align(4)); in getLocalSizeYZ() 297 Value *GEPZU = Builder.CreateConstInBoundsGEP1_64(I32Ty, CastDispatchPtr, 2); in getLocalSizeYZ() 298 LoadInst *LoadZU = Builder.CreateAlignedLoad(I32Ty, GEPZU, Align(4)); in getLocalSizeYZ()
|
D | AMDGPUTargetTransformInfo.cpp | 402 Type *I32Ty = Type::getInt32Ty(Context); in getMemcpyLoopResidualLoweringType() local 404 OpsOut.push_back(I32Ty); in getMemcpyLoopResidualLoweringType()
|
/external/llvm-project/llvm/unittests/IR/ |
D | ManglerTest.cpp | 32 Type *I32Ty = Type::getInt32Ty(Mod.getContext()); in mangleFunc() local 34 FunctionType::get(VoidTy, {I32Ty, I32Ty, I32Ty}, /*isVarArg=*/false); in mangleFunc()
|
D | InstructionsTest.cpp | 392 Type *I32Ty = IntegerType::get(C, 32); in TEST() local 394 PointerType *Ptri32Ty = PointerType::get(I32Ty, 0); in TEST() 420 GetElementPtrInst *Gep0 = GetElementPtrInst::Create(I32Ty, PtrVecA, C2xi32a); in TEST() 421 GetElementPtrInst *Gep1 = GetElementPtrInst::Create(I32Ty, PtrVecA, C2xi32b); in TEST() 422 GetElementPtrInst *Gep2 = GetElementPtrInst::Create(I32Ty, PtrVecB, C2xi32a); in TEST() 423 GetElementPtrInst *Gep3 = GetElementPtrInst::Create(I32Ty, PtrVecB, C2xi32b); in TEST() 451 GetElementPtrInst *GepII0 = GetElementPtrInst::Create(I32Ty, Gep0, C2xi32b); in TEST() 452 GetElementPtrInst *GepII1 = GetElementPtrInst::Create(I32Ty, Gep1, C2xi32a); in TEST() 453 GetElementPtrInst *GepII2 = GetElementPtrInst::Create(I32Ty, Gep2, C2xi32b); in TEST() 454 GetElementPtrInst *GepII3 = GetElementPtrInst::Create(I32Ty, Gep3, C2xi32a); in TEST()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | MatrixUtils.cpp | 35 Type *I32Ty = Type::getInt64Ty(Ctx); in CreateLoop() local 39 PHINode::Create(I32Ty, 2, Name + ".iv", Header->getTerminator()); in CreateLoop() 40 IV->addIncoming(ConstantInt::get(I32Ty, 0), Preheader); in CreateLoop()
|
D | BuildLibCalls.cpp | 1048 Type *I32Ty = B.getInt32Ty(); in emitStrChr() local 1049 return emitLibCall(LibFunc_strchr, I8Ptr, {I8Ptr, I32Ty}, in emitStrChr() 1050 {castToCStr(Ptr, B), ConstantInt::get(I32Ty, C)}, B, TLI); in emitStrChr()
|
/external/llvm/unittests/IR/ |
D | InstructionsTest.cpp | 299 Type *I32Ty = IntegerType::get(C, 32); in TEST() local 301 PointerType *Ptri32Ty = PointerType::get(I32Ty, 0); in TEST() 327 GetElementPtrInst *Gep0 = GetElementPtrInst::Create(I32Ty, PtrVecA, C2xi32a); in TEST() 328 GetElementPtrInst *Gep1 = GetElementPtrInst::Create(I32Ty, PtrVecA, C2xi32b); in TEST() 329 GetElementPtrInst *Gep2 = GetElementPtrInst::Create(I32Ty, PtrVecB, C2xi32a); in TEST() 330 GetElementPtrInst *Gep3 = GetElementPtrInst::Create(I32Ty, PtrVecB, C2xi32b); in TEST() 358 GetElementPtrInst *GepII0 = GetElementPtrInst::Create(I32Ty, Gep0, C2xi32b); in TEST() 359 GetElementPtrInst *GepII1 = GetElementPtrInst::Create(I32Ty, Gep1, C2xi32a); in TEST() 360 GetElementPtrInst *GepII2 = GetElementPtrInst::Create(I32Ty, Gep2, C2xi32b); in TEST() 361 GetElementPtrInst *GepII3 = GetElementPtrInst::Create(I32Ty, Gep3, C2xi32a); in TEST()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 839 Type *I32Ty = IntegerType::getInt32Ty(Shuf->getContext()); in foldInsEltIntoSplat() local 840 Constant *Zero = ConstantInt::getNullValue(I32Ty); in foldInsEltIntoSplat() 875 Type *I32Ty = IntegerType::getInt32Ty(Shuf->getContext()); in foldInsEltIntoIdentityShuffle() local 876 Constant *NewMaskEltC = ConstantInt::get(I32Ty, IdxC); in foldInsEltIntoIdentityShuffle() 1294 Type *I32Ty = IntegerType::getInt32Ty(V->getContext()); in evaluateInDifferentElementOrder() local 1305 MaskValues.push_back(UndefValue::get(I32Ty)); in evaluateInDifferentElementOrder() 1307 MaskValues.push_back(ConstantInt::get(I32Ty, Mask[i])); in evaluateInDifferentElementOrder() 1387 ConstantInt::get(I32Ty, Index), "", I); in evaluateInDifferentElementOrder() 1870 Type *I32Ty = IntegerType::getInt32Ty(Shuf.getContext()); in foldIdentityPaddedShuffles() local 1872 SmallVector<Constant *, 16> NewMask(Mask.size(), UndefValue::get(I32Ty)); in foldIdentityPaddedShuffles() [all …]
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86PartialReduction.cpp | 247 auto *I32Ty = in trySADReplacement() local 261 Ops[i] = Builder.CreateBitCast(Ops[i], I32Ty); in trySADReplacement()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 291 Type *I32Ty = Type::getInt32Ty(Mod->getContext()); in getLocalSizeYZ() local 293 DispatchPtr, PointerType::get(I32Ty, AMDGPUAS::CONSTANT_ADDRESS)); in getLocalSizeYZ()
|
/external/llvm-project/llvm/unittests/Frontend/ |
D | OpenMPIRBuilderTest.cpp | 873 Type *I32Ty = Type::getInt32Ty(M->getContext()); in TEST_F() local 875 Type *StructTy = StructType::get(I32Ty, I32PtrTy); in TEST_F() 878 FunctionCallee RetI32Func = M->getOrInsertFunction("ret_i32", I32Ty); in TEST_F() 880 M->getOrInsertFunction("take_i32", VoidTy, I32Ty); in TEST_F() 928 EXPECT_EQ(Arg2Type->getPointerElementType(), I32Ty); in TEST_F()
|
/external/llvm/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 741 Type *I32Ty = B.getInt32Ty(); in emitStrChr() local 743 M->getOrInsertFunction("strchr", I8Ptr, I8Ptr, I32Ty, nullptr); in emitStrChr() 746 StrChr, {castToCStr(Ptr, B), ConstantInt::get(I32Ty, C)}, "strchr"); in emitStrChr()
|
/external/llvm-project/llvm/lib/IR/ |
D | IRBuilder.cpp | 1013 Type *I32Ty = getInt32Ty(); in CreateVectorSplat() local 1015 V = CreateInsertElement(Undef, V, ConstantInt::get(I32Ty, 0), in CreateVectorSplat() 1019 Value *Zeros = ConstantAggregateZero::get(VectorType::get(I32Ty, EC)); in CreateVectorSplat()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 863 Type *I32Ty = B.getInt32Ty(); in emitStrChr() local 864 return emitLibCall(LibFunc_strchr, I8Ptr, {I8Ptr, I32Ty}, in emitStrChr() 865 {castToCStr(Ptr, B), ConstantInt::get(I32Ty, C)}, B, TLI); in emitStrChr()
|
/external/clang/lib/CodeGen/ |
D | CGExprScalar.cpp | 1150 unsigned Off, llvm::Type *I32Ty) { in getMaskElt() argument 1153 return llvm::UndefValue::get(I32Ty); in getMaskElt() 1154 return llvm::ConstantInt::get(I32Ty, Off+MV); in getMaskElt() 1157 static llvm::Constant *getAsInt32(llvm::ConstantInt *C, llvm::Type *I32Ty) { in getAsInt32() argument 1159 assert(llvm::ConstantInt::isValueValidForType(I32Ty, in getAsInt32() 1162 return llvm::ConstantInt::get(I32Ty, C->getZExtValue()); in getAsInt32()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 1930 Type *I32Ty = Type::getInt32Ty(C); in UpgradeIntrinsicCall() local 1932 ConstantInt::get(I32Ty, 0)); in UpgradeIntrinsicCall() 1934 ConstantInt::get(I32Ty, 0)); in UpgradeIntrinsicCall() 1945 ConstantInt::get(I32Ty, 0)); in UpgradeIntrinsicCall() 2263 Type *I32Ty = Type::getInt32Ty(C); in UpgradeIntrinsicCall() local 2267 ConstantInt::get(I32Ty, I)); in UpgradeIntrinsicCall()
|