Home
last modified time | relevance | path

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

12

/external/llvm/unittests/IR/
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()
96 Type *Int32Ty = Type::getInt32Ty(Ctx); in TEST() local
98 new GlobalVariable(*M, Int32Ty, true, GlobalValue::ExternalLinkage, in TEST()
99 Constant::getAllOnesValue(Int32Ty), "var", nullptr, in TEST()
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()
412 Type* Int32Ty = Type::getInt32Ty(C); in TEST() local
420 Int32Ty, nullptr, Int32Ty), in TEST()
[all …]
DConstantsTest.cpp170 Type *Int32Ty = Type::getInt32Ty(getGlobalContext()); in TEST() local
177 PointerType::getUnqual(Int32Ty)); in TEST()
179 PointerType::getUnqual(Int32Ty)); in TEST()
181 Constant *P0 = ConstantExpr::getPtrToInt(Global, Int32Ty); in TEST()
185 Constant *P4 = ConstantExpr::getPtrToInt(Global2, Int32Ty); in TEST()
189 Constant *One = ConstantInt::get(Int32Ty, 1); in TEST()
252 CHECK(ConstantExpr::getInBoundsGetElementPtr(PointerType::getUnqual(Int32Ty), in TEST()
265 Type *Int32Ty = Type::getInt32Ty(getGlobalContext()); in TEST() local
266 Constant *One = ConstantInt::get(Int32Ty, 1); in TEST()
269 M->getOrInsertGlobal("dummy", PointerType::getUnqual(Int32Ty)); in TEST()
[all …]
/external/clang/lib/CodeGen/
DCGOpenMPRuntime.cpp262 "ident_t", CGM.Int32Ty /* reserved_1 */, CGM.Int32Ty /* flags */, in CGOpenMPRuntime()
263 CGM.Int32Ty /* reserved_2 */, CGM.Int32Ty /* reserved_3 */, in CGOpenMPRuntime()
266 llvm::Type *MicroParams[] = {llvm::PointerType::getUnqual(CGM.Int32Ty), in CGOpenMPRuntime()
267 llvm::PointerType::getUnqual(CGM.Int32Ty)}; in CGOpenMPRuntime()
269 KmpCriticalNameTy = llvm::ArrayType::get(CGM.Int32Ty, /*NumElements*/ 8); in CGOpenMPRuntime()
321 llvm::Constant *Zero = llvm::ConstantInt::get(CGM.Int32Ty, 0, true); in getOrCreateDefaultLocation()
323 llvm::ConstantInt::get(CGM.Int32Ty, Flags), in getOrCreateDefaultLocation()
453 llvm::Type *TypeParams[] = {getIdentTyPointerTy(), CGM.Int32Ty, in createRuntimeFunction()
464 llvm::FunctionType::get(CGM.Int32Ty, TypeParams, /*isVarArg*/ false); in createRuntimeFunction()
471 llvm::Type *TypeParams[] = {getIdentTyPointerTy(), CGM.Int32Ty, in createRuntimeFunction()
[all …]
DCoverageMappingGen.cpp900 auto *Int32Ty = llvm::Type::getInt32Ty(Ctx); in addFunctionMappingRecord() local
904 llvm::Type *FunctionRecordTypes[] = {Int8PtrTy, Int32Ty, Int32Ty, Int64Ty}; in addFunctionMappingRecord()
911 llvm::ConstantInt::get(Int32Ty, FunctionNameValue.size()), in addFunctionMappingRecord()
912 llvm::ConstantInt::get(Int32Ty, CoverageMapping.size()), in addFunctionMappingRecord()
943 auto *Int32Ty = llvm::Type::getInt32Ty(Ctx); in emit() local
981 llvm::Type *CovDataTypes[] = {Int32Ty, Int32Ty, in emit()
982 Int32Ty, Int32Ty, in emit()
986 llvm::ConstantInt::get(Int32Ty, FunctionRecords.size()), in emit()
987 llvm::ConstantInt::get(Int32Ty, FilenamesSize), in emit()
988 llvm::ConstantInt::get(Int32Ty, CoverageMappingSize), in emit()
[all …]
DCGBuiltin.cpp482 llvm::ConstantInt::get(Int32Ty, 0); in EmitBuiltinExpr()
484 llvm::ConstantInt::get(Int32Ty, 3); in EmitBuiltinExpr()
485 Value *Data = llvm::ConstantInt::get(Int32Ty, 1); in EmitBuiltinExpr()
811 llvm::ConstantInt::get(Int32Ty, Offset))); in EmitBuiltinExpr()
815 Depth = Builder.CreateIntCast(Depth, Int32Ty, false); in EmitBuiltinExpr()
821 Depth = Builder.CreateIntCast(Depth, Int32Ty, false); in EmitBuiltinExpr()
905 ConstantInt::get(Int32Ty, 0)); in EmitBuiltinExpr()
912 Builder.CreateGEP(Buf, ConstantInt::get(Int32Ty, 2)); in EmitBuiltinExpr()
1653 ConstantInt::get(Int32Ty, 1), in EmitBuiltinExpr()
1656 return RValue::get(Builder.CreateAdd(RMWI, ConstantInt::get(Int32Ty, 1))); in EmitBuiltinExpr()
[all …]
DCGException.cpp245 CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.Int32Ty, true), in getPersonalityFn()
400 EHSelectorSlot = CreateTempAlloca(Int32Ty, "ehselector.slot"); in getEHSelectorSlot()
703 Builder.CreateLandingPad(llvm::StructType::get(Int8PtrTy, Int32Ty, nullptr), in EmitLandingPad()
1196 Builder.CreateLandingPad(llvm::StructType::get(Int8PtrTy, Int32Ty, nullptr), in getTerminateLandingPad()
1319 llvm::Value *Zero = llvm::ConstantInt::get(CGM.Int32Ty, 0); in Emit()
1417 llvm::ConstantInt::get(Int32Ty, FrameEscapeIdx)); in EmitCapturedLocals()
1571 llvm::Type *RecordTy = CGM.Int32Ty->getPointerTo(); in EmitSEHExceptionCodeSave()
1598 return Builder.CreateTrunc(Code, CGM.Int32Ty); in EmitSEHExceptionCode()
1605 return Builder.CreateZExt(&*AI, Int32Ty); in EmitSEHAbnormalTermination()
DTargetInfo.cpp672 return llvm::ConstantInt::get(CGM.Int32Ty, Sig); in getUBSanFunctionSignature()
738 ResultRegTypes.push_back(CGF.Int32Ty); in addReturnRegisterOutputs()
1269 llvm::ConstantInt::get(CGF.Int32Ty, Align - 1); in EmitVAArg()
1272 CGF.Int32Ty); in EmitVAArg()
1273 llvm::Value *Mask = llvm::ConstantInt::get(CGF.Int32Ty, -Align); in EmitVAArg()
1286 Builder.CreateGEP(Addr, llvm::ConstantInt::get(CGF.Int32Ty, Offset), in EmitVAArg()
1614 return llvm::ConstantInt::get(CGM.Int32Ty, Sig); in getUBSanFunctionSignature()
2814 llvm::ConstantInt::get(CGF.Int32Ty, (SizeInBytes + 7) & ~7); in EmitVAArgFromMemory()
2861 InRegs = llvm::ConstantInt::get(CGF.Int32Ty, 48 - neededInt * 8); in EmitVAArg()
2870 llvm::ConstantInt::get(CGF.Int32Ty, 176 - neededSSE * 16); in EmitVAArg()
[all …]
DCGObjCGNU.cpp162 llvm::IntegerType *Int32Ty; member in __anon13748a720111::CGObjCGNU
929 Int32Ty = llvm::Type::getInt32Ty(VMContext); in CGObjCGNU()
933 CGM.getDataLayout().getPointerSizeInBits() == 32 ? Int32Ty : Int64Ty; in CGObjCGNU()
1521 Methods.push_back(llvm::ConstantInt::get(Int32Ty, MethodTypes.size())); in GenerateMethodList()
1750 llvm::ConstantInt::get(Int32Ty, ProtocolVersion), IdTy)); in GenerateEmptyProtocol()
1907 llvm::ConstantInt::get(Int32Ty, ProtocolVersion), IdTy)); in GenerateProtocol()
1995 values.push_back(llvm::ConstantInt::get(Int32Ty, word)); in MakeBitField()
1997 llvm::ArrayType *arrayTy = llvm::ArrayType::get(Int32Ty, values.size()); in MakeBitField()
2000 llvm::ConstantInt::get(Int32Ty, values.size()), in MakeBitField()
2002 llvm::Constant *GS = MakeGlobal(llvm::StructType::get(Int32Ty, arrayTy, in MakeBitField()
[all …]
DCGBlocks.cpp1445 dstAddr, srcValue, llvm::ConstantInt::get(Int32Ty, flags.getBitMask()) in GenerateCopyHelperFunction()
1620 llvm::Value *flagsVal = llvm::ConstantInt::get(CGF.Int32Ty, flags); in emitCopy()
2057 types.push_back(Int32Ty); in BuildByRefType()
2060 types.push_back(Int32Ty); in BuildByRefType()
2238 llvm::ConstantInt::get(Int32Ty, flags.getBitMask()) in BuildBlockRelease()
2281 llvm::Type *args[] = { Int8PtrTy, Int32Ty }; in getBlockObjectDispose()
2293 llvm::Type *args[] = { Int8PtrTy, Int8PtrTy, Int32Ty }; in getBlockObjectAssign()
DMicrosoftCXXABI.cpp839 return std::make_pair(Value, llvm::ConstantInt::get(CGF.Int32Ty, 0)); in performBaseAdjustment()
851 Offset = CGF.Builder.CreateTrunc(Offset, CGF.Int32Ty); in performBaseAdjustment()
915 llvm::Type *ArgTypes[] = {CGF.Int8PtrTy, CGF.Int32Ty, CGF.Int8PtrTy, in EmitDynamicCastCall()
916 CGF.Int8PtrTy, CGF.Int32Ty}; in EmitDynamicCastCall()
922 llvm::ConstantInt::get(CGF.Int32Ty, DestTy->isReferenceType())}; in EmitDynamicCastCall()
1060 VBaseOffset = Builder.CreateTruncOrBitCast(VBaseOffset, CGF.Int32Ty); in initializeHiddenVirtualInheritanceMembers()
1066 VBaseOffset, llvm::ConstantInt::get(CGM.Int32Ty, ConstantVBaseOffset), in initializeHiddenVirtualInheritanceMembers()
1076 VtorDispPtr, CGF.Int32Ty->getPointerTo(AS), "vtordisp.ptr"); in initializeHiddenVirtualInheritanceMembers()
1370 llvm::ConstantInt::get(CGM.Int32Ty, Type == Ctor_Complete); in addImplicitConstructorArgs()
1828 CGF.Builder.CreateBitCast(VtorDispPtr, CGF.Int32Ty->getPointerTo()); in performThisAdjustment()
[all …]
DCGExprScalar.cpp1043 indices.push_back(llvm::UndefValue::get(CGF.Int32Ty)); in VisitShuffleVectorExpr()
1220 Args.resize(ResElts, llvm::UndefValue::get(CGF.Int32Ty)); in VisitInitListExpr()
1229 Args.push_back(getMaskElt(SVV, j, 0, CGF.Int32Ty)); in VisitInitListExpr()
1231 Args.resize(ResElts, llvm::UndefValue::get(CGF.Int32Ty)); in VisitInitListExpr()
1269 CGF.Int32Ty)); in VisitInitListExpr()
1275 Args.push_back(getMaskElt(SVI, j, Offset, CGF.Int32Ty)); in VisitInitListExpr()
1276 Args.resize(ResElts, llvm::UndefValue::get(CGF.Int32Ty)); in VisitInitListExpr()
1290 Args.resize(ResElts, llvm::UndefValue::get(CGF.Int32Ty)); in VisitInitListExpr()
1300 Args.resize(ResElts, llvm::UndefValue::get(CGF.Int32Ty)); in VisitInitListExpr()
3431 Args.push_back(llvm::UndefValue::get(CGF.Int32Ty)); in VisitAsTypeExpr()
/external/llvm/lib/Transforms/Instrumentation/
DInstrProfiling.cpp218 auto *Int32Ty = Type::getInt32Ty(Ctx); in getOrCreateRegionCounters() local
223 Type *DataTypes[] = {Int32Ty, Int32Ty, Int64Ty, Int8PtrTy, Int64PtrTy}; in getOrCreateRegionCounters()
226 ConstantInt::get(Int32Ty, NameArrayTy->getArrayNumElements()), in getOrCreateRegionCounters()
227 ConstantInt::get(Int32Ty, NumCounters), in getOrCreateRegionCounters()
279 auto *Int32Ty = Type::getInt32Ty(M->getContext()); in emitRuntimeHook() local
281 new GlobalVariable(*M, Int32Ty, false, GlobalValue::ExternalLinkage, in emitRuntimeHook()
286 Function::Create(FunctionType::get(Int32Ty, false), in emitRuntimeHook()
DSanitizerCoverage.cpp189 Type *Int32Ty = IRB.getInt32Ty(); in runOnModule() local
193 new GlobalVariable(M, Int32Ty, false, GlobalValue::ExternalLinkage, in runOnModule()
207 Type *Int32ArrayNTy = ArrayType::get(Int32Ty, N + 1); in runOnModule()
/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp514 Type *Int32Ty = Builder.getInt32Ty(); in expandRemainderUpTo32Bits() local
517 ExtDividend = Builder.CreateSExt(Rem->getOperand(0), Int32Ty); in expandRemainderUpTo32Bits()
518 ExtDivisor = Builder.CreateSExt(Rem->getOperand(1), Int32Ty); in expandRemainderUpTo32Bits()
521 ExtDividend = Builder.CreateZExt(Rem->getOperand(0), Int32Ty); in expandRemainderUpTo32Bits()
522 ExtDivisor = Builder.CreateZExt(Rem->getOperand(1), Int32Ty); in expandRemainderUpTo32Bits()
615 Type *Int32Ty = Builder.getInt32Ty(); in expandDivisionUpTo32Bits() local
618 ExtDividend = Builder.CreateSExt(Div->getOperand(0), Int32Ty); in expandDivisionUpTo32Bits()
619 ExtDivisor = Builder.CreateSExt(Div->getOperand(1), Int32Ty); in expandDivisionUpTo32Bits()
622 ExtDividend = Builder.CreateZExt(Div->getOperand(0), Int32Ty); in expandDivisionUpTo32Bits()
623 ExtDivisor = Builder.CreateZExt(Div->getOperand(1), Int32Ty); in expandDivisionUpTo32Bits()
/external/llvm/lib/CodeGen/
DSjLjEHPrepare.cpp97 Type *Int32Ty = Type::getInt32Ty(M.getContext()); in doInitialization() local
98 doubleUnderDataTy = ArrayType::get(Int32Ty, 4); in doInitialization()
101 Int32Ty, // call_site in doInitialization()
131 Type *Int32Ty = Type::getInt32Ty(I->getContext()); in insertCallSiteStore() local
132 Value *Zero = ConstantInt::get(Int32Ty, 0); in insertCallSiteStore()
133 Value *One = ConstantInt::get(Int32Ty, 1); in insertCallSiteStore()
DGlobalMerge.cpp166 Type *Int32Ty = Type::getInt32Ty(M.getContext()); in doMerge() local
223 ConstantInt::get(Int32Ty, 0), in doMerge()
224 ConstantInt::get(Int32Ty, k-i) in doMerge()
DShadowStackGCLowering.cpp206 Type *Int32Ty = Type::getInt32Ty(F.getContext()); in GetFrameMap() local
209 ConstantInt::get(Int32Ty, Roots.size(), false), in GetFrameMap()
210 ConstantInt::get(Int32Ty, NumMeta, false), in GetFrameMap()
/external/llvm/lib/IR/
DModule.cpp342 Type *Int32Ty = Type::getInt32Ty(Context); in addModuleFlag() local
344 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Behavior)), in addModuleFlag()
354 Type *Int32Ty = Type::getInt32Ty(Context); in addModuleFlag() local
355 addModuleFlag(Behavior, Key, ConstantInt::get(Int32Ty, Val)); in addModuleFlag()
DMDBuilder.cpp49 Type *Int32Ty = Type::getInt32Ty(Context); in createBranchWeights() local
51 Vals[i + 1] = createConstant(ConstantInt::get(Int32Ty, Weights[i])); in createBranchWeights()
DLLVMContextImpl.cpp37 Int32Ty(C, 32), in LLVMContextImpl()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp276 Type *Int32Ty = Type::getInt32Ty(EI.getContext()); in visitExtractElementInst() local
278 ConstantInt::get(Int32Ty, in visitExtractElementInst()
883 Type *Int32Ty = Type::getInt32Ty(SVI.getContext()); in visitShuffleVectorInst() local
919 Elts.push_back(UndefValue::get(Int32Ty)); in visitShuffleVectorInst()
926 Elts.push_back(UndefValue::get(Int32Ty)); in visitShuffleVectorInst()
929 Elts.push_back(ConstantInt::get(Int32Ty, Mask[i])); in visitShuffleVectorInst()
1017 UndefValue::get(Int32Ty)); in visitShuffleVectorInst()
1019 ShuffleMask[I] = ConstantInt::get(Int32Ty, Idx); in visitShuffleVectorInst()
1036 NewBC, ConstantInt::get(Int32Ty, BegIdx), SVI.getName() + ".extract"); in visitShuffleVectorInst()
1216 Elts.push_back(UndefValue::get(Int32Ty)); in visitShuffleVectorInst()
[all …]
/external/llvm/lib/Transforms/IPO/
DLowerBitSets.cpp198 IntegerType *Int32Ty; member
250 Int32Ty = Type::getInt32Ty(M->getContext()); in doInitialization()
251 Int32PtrTy = PointerType::getUnqual(Int32Ty); in doInitialization()
383 BitsTy = Int32Ty; in createBitSetTest()
549 Constant *CombinedGlobalIdxs[] = {ConstantInt::get(Int32Ty, 0), in buildBitSetsFromGlobals()
550 ConstantInt::get(Int32Ty, I * 2)}; in buildBitSetsFromGlobals()
/external/llvm/tools/bugpoint/
DExtractFunction.cpp197 Type *Int32Ty = Type::getInt32Ty(TorList[0].first->getContext()); in GetTorInit() local
200 StructType::get(Int32Ty, TorList[0].first->getType(), nullptr); in GetTorInit()
203 ConstantInt::get(Int32Ty, TorList[i].second), in GetTorInit()
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp398 IntegerType *Int32Ty = Type::getInt32Ty(PN->getContext()); in HandleFloatingPointIV() local
401 PHINode *NewPHI = PHINode::Create(Int32Ty, 2, PN->getName()+".int", PN); in HandleFloatingPointIV()
402 NewPHI->addIncoming(ConstantInt::get(Int32Ty, InitValue), in HandleFloatingPointIV()
406 BinaryOperator::CreateAdd(NewPHI, ConstantInt::get(Int32Ty, IncValue), in HandleFloatingPointIV()
411 ConstantInt::get(Int32Ty, ExitValue), in HandleFloatingPointIV()

12