Home
last modified time | relevance | path

Searched refs:I32Ty (Results 1 – 25 of 33) sorted by relevance

12

/external/llvm-project/llvm/unittests/Transforms/Utils/
DSSAUpdaterBulkTest.cpp26 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 …]
DScalarEvolutionExpanderTest.cpp76 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/
DAMDGPUCodeGenPrepare.cpp298 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 …]
DAMDGPUPromoteAlloca.cpp246 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()
DAMDGPUPrintfRuntimeBinding.cpp153 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/
DPhiValuesTest.cpp25 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 …]
DValueLatticeTest.cpp29 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/
DAMDGPUCodeGenPrepare.cpp348 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 …]
DAMDGPUPrintfRuntimeBinding.cpp153 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()
DAMDGPUPromoteAlloca.cpp287 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()
DAMDGPUTargetTransformInfo.cpp402 Type *I32Ty = Type::getInt32Ty(Context); in getMemcpyLoopResidualLoweringType() local
404 OpsOut.push_back(I32Ty); in getMemcpyLoopResidualLoweringType()
/external/llvm-project/llvm/unittests/IR/
DManglerTest.cpp32 Type *I32Ty = Type::getInt32Ty(Mod.getContext()); in mangleFunc() local
34 FunctionType::get(VoidTy, {I32Ty, I32Ty, I32Ty}, /*isVarArg=*/false); in mangleFunc()
DInstructionsTest.cpp392 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/
DMatrixUtils.cpp35 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()
DBuildLibCalls.cpp1048 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/
DInstructionsTest.cpp299 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/
DInstCombineVectorOps.cpp839 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/
DX86PartialReduction.cpp247 auto *I32Ty = in trySADReplacement() local
261 Ops[i] = Builder.CreateBitCast(Ops[i], I32Ty); in trySADReplacement()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp291 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/
DOpenMPIRBuilderTest.cpp873 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/
DBuildLibCalls.cpp741 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/
DIRBuilder.cpp1013 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/
DBuildLibCalls.cpp863 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/
DCGExprScalar.cpp1150 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/
DAutoUpgrade.cpp1930 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()

12