/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | VLASizeChecker.cpp | 97 CanQualType SizeTy = Ctx.getSizeType(); in checkVLA() local 99 SVB.getBasicValueFactory().getMaxValue(SizeTy).getZExtValue(); in checkVLA() 104 SVB.makeIntVal(EleSize.getQuantity(), SizeTy).castAs<NonLoc>(); in checkVLA() 115 SVB.evalCast(SizeD, SizeTy, SizeE->getType()).castAs<NonLoc>(); in checkVLA() 117 SVal Mul = SVB.evalBinOpNN(State, BO_Mul, ArrSize, IndexLength, SizeTy); in checkVLA() 191 QualType SizeTy = SizeE->getType(); in checkVLAIndexSize() local 192 DefinedOrUnknownSVal Zero = SVB.makeZeroVal(SizeTy); in checkVLAIndexSize() 194 SVal LessThanZeroVal = SVB.evalBinOp(State, BO_LT, SizeD, Zero, SizeTy); in checkVLAIndexSize()
|
D | StdLibraryFunctionsChecker.cpp | 931 const QualType SizeTy = ACtx.getSizeType(); in initFunctionSummaries() local 949 const QualType SizePtrTy = getPointerTy(SizeTy); in initFunctionSummaries() 956 const RangeInt SizeMax = BVF.getMaxValue(SizeTy).getLimitedValue(); in initFunctionSummaries() 1253 Signature(ArgTypes{VoidPtrRestrictTy, SizeTy, SizeTy, FilePtrRestrictTy}, in initFunctionSummaries() 1254 RetType{SizeTy}), in initFunctionSummaries() 1259 Signature(ArgTypes{ConstVoidPtrRestrictTy, SizeTy, in initFunctionSummaries() 1260 SizeTy, FilePtrRestrictTy}, in initFunctionSummaries() 1261 RetType{SizeTy}), in initFunctionSummaries() 1276 "read", Signature(ArgTypes{IntTy, VoidPtrTy, SizeTy}, RetType{Ssize_tTy}), in initFunctionSummaries() 1281 Signature(ArgTypes{IntTy, ConstVoidPtrTy, SizeTy}, RetType{Ssize_tTy}), in initFunctionSummaries() [all …]
|
D | CStringChecker.cpp | 387 QualType SizeTy = Size.Expression->getType(); in CheckBufferAccess() local 409 NonLoc One = svalBuilder.makeIntVal(1, SizeTy).castAs<NonLoc>(); in CheckBufferAccess() 410 SVal Offset = svalBuilder.evalBinOpNN(State, BO_Sub, *Length, One, SizeTy); in CheckBufferAccess() 2180 QualType SizeTy = Size.Expression->getType(); in evalMemset() local 2183 std::tie(ZeroSize, NonZeroSize) = assumeZero(C, State, SizeVal, SizeTy); in evalMemset() 2228 QualType SizeTy = Size.Expression->getType(); in evalBzero() local 2232 assumeZero(C, State, SizeVal, SizeTy); in evalBzero()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | VLASizeChecker.cpp | 154 QualType SizeTy = Ctx.getSizeType(); in checkPreStmt() local 156 svalBuilder.evalCast(sizeD, SizeTy, SE->getType()).castAs<NonLoc>(); in checkPreStmt() 160 SVal EleSizeVal = svalBuilder.makeIntVal(EleSize.getQuantity(), SizeTy); in checkPreStmt() 164 state, BO_Mul, ArrayLength, EleSizeVal.castAs<NonLoc>(), SizeTy); in checkPreStmt()
|
/external/clang/lib/CodeGen/ |
D | CGCUDANV.cpp | 32 llvm::Type *IntTy, *SizeTy, *VoidTy; member in __anon6c4b3c120111::CGNVCUDARuntime 59 llvm::Constant *Zeros[] = {llvm::ConstantInt::get(SizeTy, 0), in makeConstantString() 60 llvm::ConstantInt::get(SizeTy, 0)}; in makeConstantString() 91 SizeTy = Types.ConvertType(Ctx.getSizeType()); in CGNVCUDARuntime() 101 llvm::Type *Params[] = {VoidPtrTy, SizeTy, SizeTy}; in getSetupArgumentFn() 143 SizeTy, false); in emitDeviceStubBody() 146 SizeTy, false); in emitDeviceStubBody()
|
D | CGExprCXX.cpp | 557 = llvm::ConstantInt::get(CGF.SizeTy, typeSize.getQuantity()); in EmitCXXNewAllocSize() 562 unsigned sizeWidth = CGF.SizeTy->getBitWidth(); in EmitCXXNewAllocSize() 631 numElements = llvm::ConstantInt::get(CGF.SizeTy, in EmitCXXNewAllocSize() 644 sizeWithoutCookie = llvm::ConstantInt::get(CGF.SizeTy, allocationSize); in EmitCXXNewAllocSize() 652 size = llvm::Constant::getAllOnesValue(CGF.SizeTy); in EmitCXXNewAllocSize() 654 size = llvm::ConstantInt::get(CGF.SizeTy, allocationSize); in EmitCXXNewAllocSize() 685 numElements = CGF.Builder.CreateTrunc(numElements, CGF.SizeTy); in EmitCXXNewAllocSize() 690 numElements = CGF.Builder.CreateSExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize() 699 llvm::ConstantInt::get(CGF.SizeTy, minElements)); in EmitCXXNewAllocSize() 703 numElements = CGF.Builder.CreateZExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize() [all …]
|
D | CodeGenTypeCache.h | 47 llvm::IntegerType *SizeTy; member
|
D | CGExprAgg.cpp | 298 llvm::Value *size = llvm::ConstantInt::get(CGF.SizeTy, sz.getQuantity()); in EmitCopy() 411 llvm::Value *zero = llvm::ConstantInt::get(CGF.SizeTy, 0); in EmitArrayInit() 445 llvm::Value *one = llvm::ConstantInt::get(CGF.SizeTy, 1); in EmitArrayInit() 493 llvm::ConstantInt::get(CGF.SizeTy, NumArrayElements), in EmitArrayInit() 1516 llvm::ConstantInt::get(SizeTy, TypeInfo.first.getQuantity())); in EmitAggregateCopy() 1520 llvm::ConstantInt::get(SizeTy, TypeInfo.first.getQuantity())); in EmitAggregateCopy() 1523 SizeTy, LastElementTypeInfo.first.getQuantity())); in EmitAggregateCopy() 1528 SizeVal = llvm::ConstantInt::get(SizeTy, TypeInfo.first.getQuantity()); in EmitAggregateCopy()
|
D | CGBuilder.h | 62 return llvm::ConstantInt::get(TypeCache.SizeTy, N.getQuantity()); in getSize() 65 return llvm::ConstantInt::get(TypeCache.SizeTy, N); in getSize()
|
D | CGOpenMPRuntime.cpp | 1081 CGM.VoidPtrTy, CGM.SizeTy, in createRuntimeFunction() 1253 CGM.SizeTy, CGM.SizeTy, KmpRoutineEntryPtrTy}; in createRuntimeFunction() 1277 llvm::Type *TypeParams[] = {getIdentTyPointerTy(), CGM.Int32Ty, CGM.SizeTy, in createRuntimeFunction() 1293 getIdentTyPointerTy(), CGM.Int32Ty, CGM.Int32Ty, CGM.SizeTy, in createRuntimeFunction() 1310 getIdentTyPointerTy(), CGM.Int32Ty, CGM.Int32Ty, CGM.SizeTy, in createRuntimeFunction() 1544 CGM.SizeTy->getPointerTo(), in createRuntimeFunction() 1560 CGM.SizeTy->getPointerTo(), in createRuntimeFunction() 1596 CGM.SizeTy->getPointerTo(), in createRuntimeFunction() 1610 CGM.SizeTy->getPointerTo(), in createRuntimeFunction() 1624 CGM.SizeTy->getPointerTo(), in createRuntimeFunction() [all …]
|
D | ItaniumCXXABI.cpp | 1056 llvm::FunctionType::get(CGM.Int8PtrTy, CGM.SizeTy, /*IsVarArgs=*/false); in getAllocateExceptionFn() 1075 llvm::Type *SizeTy = CGF.ConvertType(getContext().getSizeType()); in emitThrow() local 1080 AllocExceptionFn, llvm::ConstantInt::get(SizeTy, TypeSize), "exception"); in emitThrow() 1761 CGF.Builder.CreateElementBitCast(CookiePtr, CGF.SizeTy); in InitializeArrayCookie() 1792 numElementsPtr = CGF.Builder.CreateElementBitCast(numElementsPtr, CGF.SizeTy); in readArrayCookieImpl() 1801 llvm::FunctionType::get(CGF.SizeTy, CGF.SizeTy->getPointerTo(0), false); in readArrayCookieImpl() 1831 cookie = CGF.Builder.CreateElementBitCast(cookie, CGF.SizeTy); in InitializeArrayCookie() 1832 llvm::Value *elementSize = llvm::ConstantInt::get(CGF.SizeTy, in InitializeArrayCookie() 1854 numElementsPtr = CGF.Builder.CreateElementBitCast(numElementsPtr, CGF.SizeTy); in readArrayCookieImpl() 1940 guardTy = CGF.SizeTy; in EmitGuardedInit()
|
D | CGCXXABI.cpp | 259 return llvm::ConstantInt::get(CGF.SizeTy, 0); in readArrayCookieImpl()
|
D | CodeGenFunction.cpp | 1624 = llvm::ConstantInt::get(SizeTy, countFromCLAs); in emitArrayLength() 1650 assert(vlaSize->getType() == SizeTy); in getVLASize() 1763 entry = Builder.CreateIntCast(Size, SizeTy, /*signed*/ false); in EmitVariablyModifiedType()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUGenRegisterBankInfo.def | 254 getValueMappingLoadSGPROnly(unsigned BankID, LLT SizeTy) { 255 unsigned Size = SizeTy.getSizeInBits(); 268 if (SizeTy == LLT::vector(8, 32)) 270 else if (SizeTy == LLT::vector(16, 32)) 272 else if (SizeTy == LLT::vector(4, 64)) 274 else if (SizeTy == LLT::vector(8, 64))
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGCUDANV.cpp | 36 llvm::IntegerType *IntTy, *SizeTy; member in __anoncc61ed400111::CGNVCUDARuntime 84 llvm::Constant *Zeros[] = {llvm::ConstantInt::get(SizeTy, 0), in makeConstantString() 85 llvm::ConstantInt::get(SizeTy, 0)}; in makeConstantString() 178 SizeTy = CGM.SizeTy; in CGNVCUDARuntime() 188 llvm::Type *Params[] = {VoidPtrTy, SizeTy, SizeTy}; in getSetupArgumentFn() 262 llvm::ConstantInt::get(SizeTy, std::max<size_t>(1, Args.size()))); in emitDeviceStubBodyNew() 304 CGF.CreateTempAlloca(SizeTy, CGM.getSizeAlign(), "shmem_size"); in emitDeviceStubBodyNew() 362 llvm::ConstantInt::get(SizeTy, TInfo.Width.getQuantity()), in emitDeviceStubBodyLegacy() 363 llvm::ConstantInt::get(SizeTy, Offset.getQuantity()), in emitDeviceStubBodyLegacy() 445 VarSizeTy = SizeTy; in makeRegisterGlobalsFn()
|
D | CGExprCXX.cpp | 699 = llvm::ConstantInt::get(CGF.SizeTy, typeSize.getQuantity()); in EmitCXXNewAllocSize() 704 unsigned sizeWidth = CGF.SizeTy->getBitWidth(); in EmitCXXNewAllocSize() 776 numElements = llvm::ConstantInt::get(CGF.SizeTy, in EmitCXXNewAllocSize() 789 sizeWithoutCookie = llvm::ConstantInt::get(CGF.SizeTy, allocationSize); in EmitCXXNewAllocSize() 797 size = llvm::Constant::getAllOnesValue(CGF.SizeTy); in EmitCXXNewAllocSize() 799 size = llvm::ConstantInt::get(CGF.SizeTy, allocationSize); in EmitCXXNewAllocSize() 830 numElements = CGF.Builder.CreateTrunc(numElements, CGF.SizeTy); in EmitCXXNewAllocSize() 835 numElements = CGF.Builder.CreateSExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize() 844 llvm::ConstantInt::get(CGF.SizeTy, minElements)); in EmitCXXNewAllocSize() 848 numElements = CGF.Builder.CreateZExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize() [all …]
|
D | CodeGenTypeCache.h | 47 llvm::IntegerType *SizeTy; member
|
D | CGExprAgg.cpp | 367 llvm::Value *size = llvm::ConstantInt::get(CGF.SizeTy, sz.getQuantity()); in EmitCopy() 485 llvm::Value *zero = llvm::ConstantInt::get(CGF.SizeTy, 0); in EmitArrayInit() 542 llvm::Value *one = llvm::ConstantInt::get(CGF.SizeTy, 1); in EmitArrayInit() 590 llvm::ConstantInt::get(CGF.SizeTy, NumArrayElements), in EmitArrayInit() 744 CGF.SizeTy, in VisitCastExpr() 1778 llvm::Value *zero = llvm::ConstantInt::get(CGF.SizeTy, 0); in VisitArrayInitLoopExpr() 1842 index, llvm::ConstantInt::get(CGF.SizeTy, 1), "arrayinit.next"); in VisitArrayInitLoopExpr() 1847 nextIndex, llvm::ConstantInt::get(CGF.SizeTy, numElements), in VisitArrayInitLoopExpr() 2111 llvm::ConstantInt::get(SizeTy, TypeInfo.Width.getQuantity())); in EmitAggregateCopy() 2115 SizeVal = llvm::ConstantInt::get(SizeTy, TypeInfo.Width.getQuantity()); in EmitAggregateCopy()
|
D | CGBuilder.h | 60 return llvm::ConstantInt::get(TypeCache.SizeTy, N.getQuantity()); in getSize() 63 return llvm::ConstantInt::get(TypeCache.SizeTy, N); in getSize()
|
D | CGOpenMPRuntimeGPU.cpp | 1768 llvm::Value *Size = llvm::ConstantInt::get(CGM.SizeTy, GlobalRecordSize); in emitGenericVarsProlog() 1784 IsTTD, llvm::ConstantInt::get(CGM.SizeTy, GlobalRecordSize), Size); in emitGenericVarsProlog() 1840 CGM.getModule(), CGM.SizeTy, /*isConstant=*/true, in emitGenericVarsProlog() 1881 llvm::ConstantInt::get(CGM.SizeTy, GlobalRecordSize), in emitGenericVarsProlog() 1976 Size, llvm::ConstantInt::get(CGF.SizeTy, Align.getQuantity() - 1)); in emitGenericVarsProlog() 1978 llvm::ConstantInt::get(CGF.SizeTy, Align.getQuantity()); in emitGenericVarsProlog() 2170 llvm::ConstantInt::get(CGM.SizeTy, CapturedVars.size())}; in emitNonSPMDParallelCall() 2777 ScratchpadBasePtr, llvm::ConstantInt::get(CGM.SizeTy, 1)); 2780 llvm::ConstantInt::get(CGM.SizeTy, GlobalMemoryAlignment)); 2782 ScratchpadBasePtr, llvm::ConstantInt::get(CGM.SizeTy, 1)); [all …]
|
D | ItaniumCXXABI.cpp | 1295 llvm::FunctionType::get(CGM.Int8PtrTy, CGM.SizeTy, /*isVarArg=*/false); in getAllocateExceptionFn() 1314 llvm::Type *SizeTy = CGF.ConvertType(getContext().getSizeType()); in emitThrow() local 1319 AllocExceptionFn, llvm::ConstantInt::get(SizeTy, TypeSize), "exception"); in emitThrow() 2143 CGF.Builder.CreateElementBitCast(CookiePtr, CGF.SizeTy); in InitializeArrayCookie() 2175 numElementsPtr = CGF.Builder.CreateElementBitCast(numElementsPtr, CGF.SizeTy); in readArrayCookieImpl() 2184 llvm::FunctionType::get(CGF.SizeTy, CGF.SizeTy->getPointerTo(0), false); in readArrayCookieImpl() 2214 cookie = CGF.Builder.CreateElementBitCast(cookie, CGF.SizeTy); in InitializeArrayCookie() 2215 llvm::Value *elementSize = llvm::ConstantInt::get(CGF.SizeTy, in InitializeArrayCookie() 2237 numElementsPtr = CGF.Builder.CreateElementBitCast(numElementsPtr, CGF.SizeTy); in readArrayCookieImpl() 2326 guardTy = CGF.SizeTy; in EmitGuardedInit()
|
D | CGCXXABI.cpp | 230 return llvm::ConstantInt::get(CGF.SizeTy, 0); in readArrayCookieImpl()
|
D | CodeGenFunction.cpp | 1960 = llvm::ConstantInt::get(SizeTy, countFromCLAs); in emitArrayLength() 1985 assert(vlaSize->getType() == SizeTy); in getVLASize() 2010 assert(VlaSize->getType() == SizeTy); in getVLAElements1D() 2115 entry = Builder.CreateIntCast(Size, SizeTy, /*signed*/ false); in EmitVariablyModifiedType()
|
D | CGStmtOpenMP.cpp | 301 return llvm::ConstantInt::get(SizeTy, /*V=*/0); in getTypeSize() 2762 CGF.SizeTy, /*isSigned=*/false); in emitDistributeParallelForDistributeInnerBoundParams() 2769 CGF.SizeTy, /*isSigned=*/false); in emitDistributeParallelForDistributeInnerBoundParams() 3159 NumIteratorsGen(CGF), CGF.SizeTy, /*isSigned=*/false); in emitScanBasedDirective() 3234 OMPScanNumIterations, llvm::ConstantInt::get(CGF.SizeTy, 1)); in emitScanBasedDirective() 3239 auto *Pow2K = CGF.Builder.CreatePHI(CGF.SizeTy, 2); in emitScanBasedDirective() 3241 Pow2K->addIncoming(llvm::ConstantInt::get(CGF.SizeTy, 1), InputBB); in emitScanBasedDirective() 3251 auto *IVal = CGF.Builder.CreatePHI(CGF.SizeTy, 2); in emitScanBasedDirective() 3290 CGF.Builder.CreateNUWSub(IVal, llvm::ConstantInt::get(CGF.SizeTy, 1)); in emitScanBasedDirective() 4547 IdxVal = Builder.CreateIntCast(IdxVal, SizeTy, /*isSigned=*/false); in EmitOMPScanDirective() [all …]
|
/external/llvm-project/llvm/include/llvm/Frontend/OpenMP/ |
D | OMPKinds.def | 155 OMP_TYPE(SizeTy, M.getDataLayout().getIntPtrType(Ctx)) 363 __OMP_RTL(__kmpc_reduce, false, Int32, IdentPtr, Int32, Int32, SizeTy, VoidPtr, 365 __OMP_RTL(__kmpc_reduce_nowait, false, Int32, IdentPtr, Int32, Int32, SizeTy, 432 Int32, Int32, SizeTy, SizeTy, TaskRoutineEntryPtr) 449 IdentPtr, Int32, Int32, SizeTy, SizeTy, TaskRoutineEntryPtr, Int64) 470 __OMP_RTL(__kmpc_copyprivate, false, Void, IdentPtr, Int32, SizeTy, VoidPtr, 473 SizeTy, VoidPtrPtrPtr) 483 __OMP_RTL(__kmpc_alloc, false, VoidPtr, /* Int */ Int32, SizeTy, VoidPtr) 535 Int32, SizeTy, VoidPtr, ShuffleReducePtr, InterWarpCopyPtr) 545 __OMP_RTL(__kmpc_data_sharing_coalesced_push_stack, false, VoidPtr, SizeTy, Int16) [all …]
|