| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | test-variably-modified-types.c | 4 unsigned getArraySize(int *x) { in getArraySize() function 11 int mytype[getArraySize(x)]; in testVariablyModifiedTypes()
|
| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXAllocaHoisting.cpp | 48 if (allocaInst && isa<ConstantInt>(allocaInst->getArraySize())) { in runOnFunction()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 172 if (AI.getArraySize()->getType()->isIntegerTy(32)) in simplifyAllocaArraySize() 180 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize())) { in simplifyAllocaArraySize() 210 if (isa<UndefValue>(AI.getArraySize())) in simplifyAllocaArraySize() 216 if (AI.getArraySize()->getType() != IntPtrTy) { in simplifyAllocaArraySize() 217 Value *V = IC.Builder.CreateIntCast(AI.getArraySize(), IntPtrTy, false); in simplifyAllocaArraySize() 368 ConstantInt::get(AI.getArraySize()->getType(), 1)); in visitAllocaInst() 768 ConstantInt *CS = dyn_cast<ConstantInt>(AI->getArraySize()); in isObjectSizeLessThanOrEq()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | APValue.cpp | 353 MakeArray(RHS.getArrayInitializedElts(), RHS.getArraySize()); in APValue() 512 if (getArraySize() == 0) in Profile() 528 unsigned NumFillers = getArraySize() - getArrayInitializedElts(); in Profile() 537 assert(NumFillers == getArraySize()); in Profile() 544 if (N != getArraySize()) { in Profile()
|
| H A D | ComputeDependence.cpp | 698 auto Size = E->getArraySize(); in computeDependence()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | MemoryTaggingSupport.cpp | 175 cast<ConstantInt>(Info.AI->getArraySize())->getZExtValue()) in alignAndPadAlloca()
|
| H A D | InlineFunction.cpp | 1506 return isa<Constant>(AI->getArraySize()) && !AI->isUsedWithInAlloca(); in allocaWouldBeStaticInEntry() 2258 dyn_cast<ConstantInt>(AI->getArraySize())) { in InlineFunction()
|
| H A D | CloneFunction.cpp | 528 if (isa<ConstantInt>(AI->getArraySize())) in CloneBlock()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | APValue.h | 511 return getArrayInitializedElts() != getArraySize(); 525 unsigned getArraySize() const {
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CheckPlacementNew.cpp | 81 const Expr *SizeExpr = *NE->getArraySize(); in getExtentSizeOfNewTarget()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | MakeSmartPtrCheck.cpp | 286 if (const auto *ArraySize = New->getArraySize().value_or(nullptr)) { in replaceNew()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | SafeStack.cpp | 209 auto C = dyn_cast<ConstantInt>(AI->getArraySize()); in getStaticAllocaAllocationSize() 663 Value *ArraySize = AI->getArraySize(); in moveDynamicAllocasToUnsafeStack()
|
| H A D | StackProtector.cpp | 316 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in RequiresStackProtector()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | MemoryBuiltins.cpp | 790 Value *ArraySize = I.getArraySize(); in visitAllocaInst() 1136 I.getArraySize(), DL.getIntPtrType(I.getContext())); in visitAllocaInst()
|
| H A D | Lint.cpp | 582 if (isa<ConstantInt>(I.getArraySize())) in visitAllocaInst()
|
| H A D | StackSafetyAnalysis.cpp | 166 const auto *C = dyn_cast<ConstantInt>(AI.getArraySize()); in getStaticAllocaSizeRange()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | FunctionLoweringInfo.cpp | 155 const ConstantInt *CUI = cast<ConstantInt>(AI->getArraySize()); in set()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 720 ConstantEmitter(CGF).tryEmitAbstract(*e->getArraySize(), e->getType()); in EmitCXXNewAllocSize() 722 numElements = CGF.EmitScalarExpr(*e->getArraySize()); in EmitCXXNewAllocSize() 732 = (*e->getArraySize())->getType()->isSignedIntegerOrEnumerationType(); in EmitCXXNewAllocSize()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | TailRecursionElimination.cpp | 512 if (isa<ConstantInt>(AI->getArraySize())) in createTailRecurseLoopHeader()
|
| /llvm-project-15.0.7/polly/lib/CodeGen/ |
| H A D | PPCGCodeGeneration.cpp | 534 Value *getArraySize(gpu_array_info *Array); 799 Value *ArraySize = getArraySize(Array); in allocateDeviceArrays() 1115 Value *GPUNodeBuilder::getArraySize(gpu_array_info *Array) { in getArraySize() function in GPUNodeBuilder 1194 Value *Size = getArraySize(Array); in createDataTransfer()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngineCXX.cpp | 600 AILE->getArraySize().getLimitedValue()); in handleConstructor()
|
| H A D | ExprEngineCallAndReturn.cpp | 753 if (const Expr *SizeExpr = CNE->getArraySize().value_or(nullptr)) { in bindReturnValue()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroFrame.cpp | 458 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) in addFieldForAlloca() 1571 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in insertSpills()
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 8169 return Node.isArray() && *Node.getArraySize() && in AST_MATCHER_P() 8170 InnerMatcher.matches(**Node.getArraySize(), Finder, Builder); in AST_MATCHER_P()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | AsmWriter.cpp | 4254 if (!AI->getArraySize() || AI->isArrayAllocation() || in printInstruction() 4255 !AI->getArraySize()->getType()->isIntegerTy(32)) { in printInstruction() 4257 writeOperand(AI->getArraySize(), true); in printInstruction()
|