Home
last modified time | relevance | path

Searched refs:Int32Ty (Results 1 – 25 of 173) sorted by relevance

1234567

/external/llvm-project/llvm/unittests/FuzzMutate/
DOperationsTest.cpp283 Type *Int32Ty = Type::getInt32Ty(Ctx); in TEST() local
295 ConstantInt::get(Int32Ty, 0))); in TEST()
297 GEPOp.BuilderFunc({UndefValue::get(Int8PtrTy), ConstantInt::get(Int32Ty, 0)}, in TEST()
333 Type *Int32Ty = Type::getInt32Ty(Ctx); in TEST() local
336 Type *StructTy = StructType::create(Ctx, {Int8PtrTy, Int32Ty}); in TEST()
340 Type *VectorTy = FixedVectorType::get(Int32Ty, 2); in TEST()
367 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 0))); in TEST()
369 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 1))); in TEST()
371 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 2))); in TEST()
373 EVOp.SourcePreds[1].matches({OVal}, ConstantInt::get(Int32Ty, 0))); in TEST()
[all …]
/external/llvm/unittests/IR/
DInstructionsTest.cpp176 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 …]
DValueTest.cpp51 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()
DConstantsTest.cpp196 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-project/llvm/unittests/IR/
DVectorTypesTest.cpp37 Type *Int32Ty = Type::getInt32Ty(Ctx); in TEST() local
47 dyn_cast<FixedVectorType>(VectorType::get(Int32Ty, 8, false)); in TEST()
59 dyn_cast<FixedVectorType>(VectorType::get(Int32Ty, V8Int32Ty)); in TEST()
131 Type *Int32Ty = Type::getInt32Ty(Ctx); in TEST() local
141 dyn_cast<ScalableVectorType>(VectorType::get(Int32Ty, 8, true)); in TEST()
153 dyn_cast<ScalableVectorType>(VectorType::get(Int32Ty, ScV8Int32Ty)); in TEST()
226 Type *Int32Ty = Type::getInt32Ty(Ctx); in TEST() local
233 VectorType::get(Int32Ty, ElementCount::getScalable(4)), in TEST()
234 VectorType::get(Int32Ty, ElementCount::getFixed(4)), in TEST()
235 VectorType::get(Int32Ty, ElementCount::getScalable(2)), in TEST()
[all …]
DInstructionsTest.cpp188 Type *Int32Ty = Type::getInt32Ty(C); in TEST() local
198 Type *V2Int32Ty = FixedVectorType::get(Int32Ty, 2); in TEST()
203 Type *VScaleV2Int32Ty = ScalableVectorType::get(Int32Ty, 2); in TEST()
208 Type *Int32PtrTy = PointerType::get(Int32Ty, 0); in TEST()
211 Type *Int32PtrAS1Ty = PointerType::get(Int32Ty, 1); in TEST()
263 EXPECT_TRUE(CastInst::isBitCastable(FloatTy, Int32Ty)); in TEST()
265 EXPECT_TRUE(CastInst::isBitCastable(Int32Ty, FloatTy)); in TEST()
269 EXPECT_FALSE(CastInst::isBitCastable(Int32Ty, Int64Ty)); in TEST()
270 EXPECT_FALSE(CastInst::isBitCastable(Int64Ty, Int32Ty)); in TEST()
509 Type* Int32Ty = Type::getInt32Ty(C); in TEST() local
[all …]
DValueTest.cpp50 Type *Int32Ty = Type::getInt32Ty(Ctx); in TEST() local
54 Int32Ty, in TEST()
57 Constant::getAllOnesValue(Int32Ty), in TEST()
68 Constant *Dummy1 = M->getOrInsertGlobal("dummy", Int32Ty); in TEST()
76 Int32Ty, in TEST()
79 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()
DConstantsTest.cpp196 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/
DObjectLinkingLayerTest.cpp71 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/llvm-project/llvm/lib/Transforms/Instrumentation/
DInstrOrderFile.cpp120 IntegerType *Int32Ty = Type::getInt32Ty(Ctx); in generateCodeSequence() local
135 Value *IdxFlags[] = {ConstantInt::get(Int32Ty, 0), in generateCodeSequence()
136 ConstantInt::get(Int32Ty, FuncId)}; in generateCodeSequence()
146 AtomicRMWInst::Add, BufferIdx, ConstantInt::get(Int32Ty, 1), in generateCodeSequence()
150 IdxVal, ConstantInt::get(Int32Ty, INSTR_ORDER_FILE_BUFFER_MASK)); in generateCodeSequence()
151 Value *BufferGEPIdx[] = {ConstantInt::get(Int32Ty, 0), WrappedIdx}; in generateCodeSequence()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DInstrOrderFile.cpp121 IntegerType *Int32Ty = Type::getInt32Ty(Ctx); in generateCodeSequence() local
136 Value *IdxFlags[] = {ConstantInt::get(Int32Ty, 0), in generateCodeSequence()
137 ConstantInt::get(Int32Ty, FuncId)}; in generateCodeSequence()
147 AtomicRMWInst::Add, BufferIdx, ConstantInt::get(Int32Ty, 1), in generateCodeSequence()
151 IdxVal, ConstantInt::get(Int32Ty, INSTR_ORDER_FILE_BUFFER_MASK)); in generateCodeSequence()
152 Value *BufferGEPIdx[] = {ConstantInt::get(Int32Ty, 0), WrappedIdx}; in generateCodeSequence()
DHWAddressSanitizer.cpp273 Type *Int32Ty; member in __anon79f8a7ba0111::HWAddressSanitizer
376 Int32Ty = IRB.getInt32Ty(); in initializeModule()
621 {shadowBase(), Ptr, ConstantInt::get(Int32Ty, AccessInfo)}); in instrumentMemAccessInline()
1267 auto *DescriptorTy = StructType::get(Int32Ty, Int32Ty); in instrumentGlobal()
1280 Int32Ty); in instrumentGlobal()
1282 auto *SizeAndTag = ConstantInt::get(Int32Ty, Size | (uint32_t(Tag) << 24)); in instrumentGlobal()
1347 auto *NoteTy = StructType::get(Int32Ty, Int32Ty, Int32Ty, Name->getType(), in instrumentGlobals()
1348 Int32Ty, Int32Ty); in instrumentGlobals()
1363 Int32Ty); in instrumentGlobals()
1366 {ConstantInt::get(Int32Ty, 8), // n_namesz in instrumentGlobals()
[all …]
/external/clang/lib/CodeGen/
DCGOpenMPRuntime.cpp726 "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 …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUPrintfRuntimeBinding.cpp403 Type *Int32Ty = Type::getInt32Ty(Ctx); in lowerPrintfForGpu() local
413 Type *IType = (ArgType->isFloatTy()) ? Int32Ty : Int64Ty; in lowerPrintfForGpu()
422 IType = Int32Ty; in lowerPrintfForGpu()
428 IType = Int32Ty; in lowerPrintfForGpu()
465 Value *ANumV = ConstantInt::get(Int32Ty, ANum, false); in lowerPrintfForGpu()
471 Value *ANumV = ConstantInt::get(Int32Ty, 0xFFFFFF00, false); in lowerPrintfForGpu()
477 Type *DstType = (Size == 32) ? Int32Ty : Int64Ty; in lowerPrintfForGpu()
487 IntegerType *Int32Ty = Type::getInt32Ty(ArgType->getContext()); in lowerPrintfForGpu() local
489 ConstantInt::get(Int32Ty, 0), ConstantInt::get(Int32Ty, 1), in lowerPrintfForGpu()
490 ConstantInt::get(Int32Ty, 2), ConstantInt::get(Int32Ty, 2)}; in lowerPrintfForGpu()
/external/llvm/lib/Transforms/Instrumentation/
DEfficiencySanitizer.cpp329 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-10.0/llvm/lib/CodeGen/
DSjLjEHPrepare.cpp87 Type *Int32Ty = Type::getInt32Ty(M.getContext()); in doInitialization() local
88 doubleUnderDataTy = ArrayType::get(Int32Ty, 4); in doInitialization()
91 Int32Ty, // call_site in doInitialization()
107 Type *Int32Ty = Type::getInt32Ty(I->getContext()); in insertCallSiteStore() local
108 Value *Zero = ConstantInt::get(Int32Ty, 0); in insertCallSiteStore()
109 Value *One = ConstantInt::get(Int32Ty, 1); in insertCallSiteStore()
193 Type *Int32Ty = Type::getInt32Ty(F.getContext()); in setupFunctionContext() local
196 Value *ExnVal = Builder.CreateLoad(Int32Ty, ExceptionAddr, true, "exn_val"); in setupFunctionContext()
202 Builder.CreateLoad(Int32Ty, SelectorAddr, true, "exn_selector_val"); in setupFunctionContext()
/external/llvm/lib/Target/PowerPC/
DPPCBoolRetToInt.cpp79 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-project/llvm/lib/FuzzMutate/
DOperations.cpp198 auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext()); in validExtractValueIndex() local
201 Result.push_back(ConstantInt::get(Int32Ty, 0)); in validExtractValueIndex()
203 Result.push_back(ConstantInt::get(Int32Ty, N - 1)); in validExtractValueIndex()
205 Result.push_back(ConstantInt::get(Int32Ty, N / 2)); in validExtractValueIndex()
257 auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext()); in validInsertValueIndex() local
262 Result.push_back(ConstantInt::get(Int32Ty, I)); in validInsertValueIndex()
306 auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext()); in validShuffleVectorIndex() local
310 FixedVectorType::get(Int32Ty, FirstTy->getNumElements()))}; in validShuffleVectorIndex()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/
DOperations.cpp198 auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext()); in validExtractValueIndex() local
201 Result.push_back(ConstantInt::get(Int32Ty, 0)); in validExtractValueIndex()
203 Result.push_back(ConstantInt::get(Int32Ty, N - 1)); in validExtractValueIndex()
205 Result.push_back(ConstantInt::get(Int32Ty, N / 2)); in validExtractValueIndex()
256 auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext()); in validInsertValueIndex() local
260 Result.push_back(ConstantInt::get(Int32Ty, I)); in validInsertValueIndex()
302 auto *Int32Ty = Type::getInt32Ty(Cur[0]->getContext()); in validShuffleVectorIndex() local
306 UndefValue::get(VectorType::get(Int32Ty, FirstTy->getNumElements()))}; in validShuffleVectorIndex()
/external/llvm-project/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp509 Type *Int32Ty = Builder.getInt32Ty(); in expandRemainderUpTo32Bits() local
512 ExtDividend = Builder.CreateSExt(Rem->getOperand(0), Int32Ty); in expandRemainderUpTo32Bits()
513 ExtDivisor = Builder.CreateSExt(Rem->getOperand(1), Int32Ty); in expandRemainderUpTo32Bits()
516 ExtDividend = Builder.CreateZExt(Rem->getOperand(0), Int32Ty); in expandRemainderUpTo32Bits()
517 ExtDivisor = Builder.CreateZExt(Rem->getOperand(1), Int32Ty); in expandRemainderUpTo32Bits()
606 Type *Int32Ty = Builder.getInt32Ty(); in expandDivisionUpTo32Bits() local
609 ExtDividend = Builder.CreateSExt(Div->getOperand(0), Int32Ty); in expandDivisionUpTo32Bits()
610 ExtDivisor = Builder.CreateSExt(Div->getOperand(1), Int32Ty); in expandDivisionUpTo32Bits()
613 ExtDividend = Builder.CreateZExt(Div->getOperand(0), Int32Ty); in expandDivisionUpTo32Bits()
614 ExtDivisor = Builder.CreateZExt(Div->getOperand(1), Int32Ty); in expandDivisionUpTo32Bits()
DAMDGPUEmitPrintf.cpp77 auto Int32Ty = Builder.getInt32Ty(); in callAppendArgs() local
80 Int64Ty, Int32Ty, Int64Ty, Int64Ty, Int64Ty, in callAppendArgs()
81 Int64Ty, Int64Ty, Int64Ty, Int64Ty, Int32Ty); in callAppendArgs()
169 auto Int32Ty = Builder.getInt32Ty(); in callAppendStringN() local
172 Int64Ty, CharPtrTy, Int64Ty, Int32Ty); in callAppendStringN()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp509 Type *Int32Ty = Builder.getInt32Ty(); in expandRemainderUpTo32Bits() local
512 ExtDividend = Builder.CreateSExt(Rem->getOperand(0), Int32Ty); in expandRemainderUpTo32Bits()
513 ExtDivisor = Builder.CreateSExt(Rem->getOperand(1), Int32Ty); in expandRemainderUpTo32Bits()
516 ExtDividend = Builder.CreateZExt(Rem->getOperand(0), Int32Ty); in expandRemainderUpTo32Bits()
517 ExtDivisor = Builder.CreateZExt(Rem->getOperand(1), Int32Ty); in expandRemainderUpTo32Bits()
606 Type *Int32Ty = Builder.getInt32Ty(); in expandDivisionUpTo32Bits() local
609 ExtDividend = Builder.CreateSExt(Div->getOperand(0), Int32Ty); in expandDivisionUpTo32Bits()
610 ExtDivisor = Builder.CreateSExt(Div->getOperand(1), Int32Ty); in expandDivisionUpTo32Bits()
613 ExtDividend = Builder.CreateZExt(Div->getOperand(0), Int32Ty); in expandDivisionUpTo32Bits()
614 ExtDivisor = Builder.CreateZExt(Div->getOperand(1), Int32Ty); in expandDivisionUpTo32Bits()
/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp510 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/NVPTX/
DNVVMIntrRange.cpp69 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/llvm-project/llvm/lib/Target/NVPTX/
DNVVMIntrRange.cpp74 IntegerType *Int32Ty = Type::getInt32Ty(Context); in addRangeMetadata() local
76 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Low)), in addRangeMetadata()
77 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, High))}; in addRangeMetadata()

1234567