/llvm-project/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/llvm/lib/Target/NVPTX/ |
H A D | NVPTXAllocaHoisting.cpp | 48 if (allocaInst && isa<ConstantInt>(allocaInst->getArraySize())) { in runOnFunction()
|
/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 191 if (AI.getArraySize()->getType()->isIntegerTy(32)) in isDereferenceableForAllocaSize() 199 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize())) { in simplifyAllocaArraySize() 212 if (isa<UndefValue>(AI.getArraySize())) in simplifyAllocaArraySize() 219 if (AI.getArraySize()->getType() != PtrIdxTy) { in simplifyAllocaArraySize() 220 Value *V = IC.Builder.CreateIntCast(AI.getArraySize(), PtrIdxTy, false); in simplifyAllocaArraySize() 461 ConstantInt::get(AI.getArraySize()->getType(), 1)); in visitAllocaInst() 823 ConstantInt *CS = dyn_cast<ConstantInt>(AI->getArraySize()); in isObjectSizeLessThanOrEq()
|
/llvm-project/clang/lib/AST/ |
H A D | APValue.cpp | 354 MakeArray(RHS.getArrayInitializedElts(), RHS.getArraySize()); in APValue() 525 if (getArraySize() == 0) in Profile() 541 unsigned NumFillers = getArraySize() - getArrayInitializedElts(); in Profile() 550 assert(NumFillers == getArraySize()); in Profile() 557 if (N != getArraySize()) { in Profile()
|
H A D | ComputeDependence.cpp | 770 auto Size = E->getArraySize(); in computeDependence()
|
/llvm-project/mlir/lib/Dialect/LLVMIR/IR/ |
H A D | LLVMInlining.cpp |
|
H A D | LLVMMemorySlot.cpp | 64 if (!mlir::matchPattern(getArraySize(), m_One())) in getDestructurableSlots() 94 getArraySize()); in destructure()
|
/llvm-project/clang/include/clang/AST/ |
H A D | APValue.h | 585 return getArrayInitializedElts() != getArraySize(); 599 unsigned getArraySize() const {
|
/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CheckPlacementNew.cpp | 81 const Expr *SizeExpr = *NE->getArraySize(); in getExtentSizeOfNewTarget()
|
/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
H A D | MakeSmartPtrCheck.cpp | 288 if (const auto *ArraySize = New->getArraySize().value_or(nullptr)) { in replaceNew()
|
/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | MemoryTaggingSupport.cpp | 241 cast<ConstantInt>(Info.AI->getArraySize())->getZExtValue()) in alignAndPadAlloca()
|
H A D | CloneFunction.cpp | 619 if (isa<ConstantInt>(AI->getArraySize())) in CloneBlock()
|
H A D | InlineFunction.cpp | 1809 return isa<Constant>(AI->getArraySize()) && !AI->isUsedWithInAlloca(); in fixupLineNumbers() 2971 dyn_cast<ConstantInt>(AI->getArraySize())) { in InlineFunction()
|
/llvm-project/llvm/lib/CodeGen/ |
H A D | SafeStack.cpp | 208 auto C = dyn_cast<ConstantInt>(AI->getArraySize()); in getStaticAllocaAllocationSize() 663 Value *ArraySize = AI->getArraySize(); in moveDynamicAllocasToUnsafeStack()
|
H A D | StackProtector.cpp | 421 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in requiresStackProtector()
|
/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | FunctionLoweringInfo.cpp | 144 const ConstantInt *CUI = cast<ConstantInt>(AI->getArraySize()); in set()
|
/llvm-project/llvm/lib/Analysis/ |
H A D | MemoryBuiltins.cpp | 902 Value *ArraySize = I.getArraySize(); in findLoadSizeOffset() 1286 I.getArraySize(),
|
H A D | Lint.cpp | 615 if (isa<ConstantInt>(I.getArraySize()))
|
H A D | StackSafetyAnalysis.cpp | 166 const auto *C = dyn_cast<ConstantInt>(AI.getArraySize()); in getStaticAllocaSizeRange()
|
/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprCXX.cpp | 736 *e->getArraySize(), (*e->getArraySize())->getType()); in EmitCXXNewAllocSize() 738 numElements = CGF.EmitScalarExpr(*e->getArraySize()); in EmitCXXNewAllocSize() 748 = (*e->getArraySize())->getType()->isSignedIntegerOrEnumerationType(); in EmitCXXNewAllocSize()
|
/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | TailRecursionElimination.cpp | 528 if (isa<ConstantInt>(AI->getArraySize())) in createTailRecurseLoopHeader()
|
/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | CallEvent.h | 1159 return getOriginExpr()->getArraySize(); in getArraySizeVal()
|
/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | ExprEngineCallAndReturn.cpp | 808 if (const Expr *SizeExpr = CNE->getArraySize().value_or(nullptr)) { in bindReturnValue()
|
/llvm-project/clang/lib/Analysis/ |
H A D | UnsafeBufferUsage.cpp | 392 if (auto Size = cast<CXXNewExpr>(Arg0)->getArraySize()) { in AST_MATCHER() 2855 if (const Expr *Ext = CxxNew->getArraySize().value_or(nullptr)) {
|
/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | CoroFrame.cpp | 200 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) in isDefinitionAcrossSuspend() 1024 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in solveDIType()
|