Home
last modified time | relevance | path

Searched refs:getArraySize (Results 1 – 25 of 60) sorted by relevance

123

/llvm-project/clang/test/Analysis/
H A Dtest-variably-modified-types.c4 unsigned getArraySize(int *x) { in getArraySize() function
11 int mytype[getArraySize(x)]; in testVariablyModifiedTypes()
/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAllocaHoisting.cpp48 if (allocaInst && isa<ConstantInt>(allocaInst->getArraySize())) { in runOnFunction()
/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp191 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 DAPValue.cpp354 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 DComputeDependence.cpp770 auto Size = E->getArraySize(); in computeDependence()
/llvm-project/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMInlining.cpp
H A DLLVMMemorySlot.cpp64 if (!mlir::matchPattern(getArraySize(), m_One())) in getDestructurableSlots()
94 getArraySize()); in destructure()
/llvm-project/clang/include/clang/AST/
H A DAPValue.h585 return getArrayInitializedElts() != getArraySize();
599 unsigned getArraySize() const {
/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp81 const Expr *SizeExpr = *NE->getArraySize(); in getExtentSizeOfNewTarget()
/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DMakeSmartPtrCheck.cpp288 if (const auto *ArraySize = New->getArraySize().value_or(nullptr)) { in replaceNew()
/llvm-project/llvm/lib/Transforms/Utils/
H A DMemoryTaggingSupport.cpp241 cast<ConstantInt>(Info.AI->getArraySize())->getZExtValue()) in alignAndPadAlloca()
H A DCloneFunction.cpp619 if (isa<ConstantInt>(AI->getArraySize())) in CloneBlock()
H A DInlineFunction.cpp1809 return isa<Constant>(AI->getArraySize()) && !AI->isUsedWithInAlloca(); in fixupLineNumbers()
2971 dyn_cast<ConstantInt>(AI->getArraySize())) { in InlineFunction()
/llvm-project/llvm/lib/CodeGen/
H A DSafeStack.cpp208 auto C = dyn_cast<ConstantInt>(AI->getArraySize()); in getStaticAllocaAllocationSize()
663 Value *ArraySize = AI->getArraySize(); in moveDynamicAllocasToUnsafeStack()
H A DStackProtector.cpp421 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in requiresStackProtector()
/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp144 const ConstantInt *CUI = cast<ConstantInt>(AI->getArraySize()); in set()
/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp902 Value *ArraySize = I.getArraySize(); in findLoadSizeOffset()
1286 I.getArraySize(),
H A DLint.cpp615 if (isa<ConstantInt>(I.getArraySize()))
H A DStackSafetyAnalysis.cpp166 const auto *C = dyn_cast<ConstantInt>(AI.getArraySize()); in getStaticAllocaSizeRange()
/llvm-project/clang/lib/CodeGen/
H A DCGExprCXX.cpp736 *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 DTailRecursionElimination.cpp528 if (isa<ConstantInt>(AI->getArraySize())) in createTailRecurseLoopHeader()
/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCallEvent.h1159 return getOriginExpr()->getArraySize(); in getArraySizeVal()
/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCallAndReturn.cpp808 if (const Expr *SizeExpr = CNE->getArraySize().value_or(nullptr)) { in bindReturnValue()
/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp392 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 DCoroFrame.cpp200 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) in isDefinitionAcrossSuspend()
1024 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in solveDIType()

123