Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/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-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXAllocaHoisting.cpp48 if (allocaInst && isa<ConstantInt>(allocaInst->getArraySize())) { in runOnFunction()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp172 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 DAPValue.cpp353 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 DComputeDependence.cpp698 auto Size = E->getArraySize(); in computeDependence()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DMemoryTaggingSupport.cpp175 cast<ConstantInt>(Info.AI->getArraySize())->getZExtValue()) in alignAndPadAlloca()
H A DInlineFunction.cpp1506 return isa<Constant>(AI->getArraySize()) && !AI->isUsedWithInAlloca(); in allocaWouldBeStaticInEntry()
2258 dyn_cast<ConstantInt>(AI->getArraySize())) { in InlineFunction()
H A DCloneFunction.cpp528 if (isa<ConstantInt>(AI->getArraySize())) in CloneBlock()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DAPValue.h511 return getArrayInitializedElts() != getArraySize();
525 unsigned getArraySize() const {
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp81 const Expr *SizeExpr = *NE->getArraySize(); in getExtentSizeOfNewTarget()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DMakeSmartPtrCheck.cpp286 if (const auto *ArraySize = New->getArraySize().value_or(nullptr)) { in replaceNew()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DSafeStack.cpp209 auto C = dyn_cast<ConstantInt>(AI->getArraySize()); in getStaticAllocaAllocationSize()
663 Value *ArraySize = AI->getArraySize(); in moveDynamicAllocasToUnsafeStack()
H A DStackProtector.cpp316 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in RequiresStackProtector()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp790 Value *ArraySize = I.getArraySize(); in visitAllocaInst()
1136 I.getArraySize(), DL.getIntPtrType(I.getContext())); in visitAllocaInst()
H A DLint.cpp582 if (isa<ConstantInt>(I.getArraySize())) in visitAllocaInst()
H A DStackSafetyAnalysis.cpp166 const auto *C = dyn_cast<ConstantInt>(AI.getArraySize()); in getStaticAllocaSizeRange()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp155 const ConstantInt *CUI = cast<ConstantInt>(AI->getArraySize()); in set()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprCXX.cpp720 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 DTailRecursionElimination.cpp512 if (isa<ConstantInt>(AI->getArraySize())) in createTailRecurseLoopHeader()
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DPPCGCodeGeneration.cpp534 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 DExprEngineCXX.cpp600 AILE->getArraySize().getLimitedValue()); in handleConstructor()
H A DExprEngineCallAndReturn.cpp753 if (const Expr *SizeExpr = CNE->getArraySize().value_or(nullptr)) { in bindReturnValue()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp458 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 DASTMatchers.h8169 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 DAsmWriter.cpp4254 if (!AI->getArraySize() || AI->isArrayAllocation() || in printInstruction()
4255 !AI->getArraySize()->getType()->isIntegerTy(32)) { in printInstruction()
4257 writeOperand(AI->getArraySize(), true); in printInstruction()

123