Home
last modified time | relevance | path

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

123

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAllocaHoisting.cpp48 if (allocaInst && isa<ConstantInt>(allocaInst->getArraySize())) { in runOnFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp202 if (AI.getArraySize()->getType()->isIntegerTy(32)) in simplifyAllocaArraySize()
210 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize())) { in simplifyAllocaArraySize()
223 if (isa<UndefValue>(AI.getArraySize())) in simplifyAllocaArraySize()
230 if (AI.getArraySize()->getType() != PtrIdxTy) { in simplifyAllocaArraySize()
231 Value *V = IC.Builder.CreateIntCast(AI.getArraySize(), PtrIdxTy, false); in simplifyAllocaArraySize()
476 ConstantInt::get(AI.getArraySize()->getType(), 1)); in visitAllocaInst()
845 ConstantInt *CS = dyn_cast<ConstantInt>(AI->getArraySize()); in isObjectSizeLessThanOrEq()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DAPValue.cpp353 MakeArray(RHS.getArrayInitializedElts(), RHS.getArraySize()); in APValue()
514 if (getArraySize() == 0) in Profile()
530 unsigned NumFillers = getArraySize() - getArrayInitializedElts(); in Profile()
539 assert(NumFillers == getArraySize()); in Profile()
546 if (N != getArraySize()) { in Profile()
H A DComputeDependence.cpp729 auto Size = E->getArraySize(); in computeDependence()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMemoryTaggingSupport.cpp195 cast<ConstantInt>(Info.AI->getArraySize())->getZExtValue()) in alignAndPadAlloca()
H A DCloneFunction.cpp580 if (isa<ConstantInt>(AI->getArraySize())) in CloneBlock()
H A DInlineFunction.cpp1630 return isa<Constant>(AI->getArraySize()) && !AI->isUsedWithInAlloca(); in allocaWouldBeStaticInEntry()
2555 dyn_cast<ConstantInt>(AI->getArraySize())) { in InlineFunction()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DAPValue.h519 return getArrayInitializedElts() != getArraySize();
533 unsigned getArraySize() const {
H A DPropertiesBase.td358 let Read = [{ node.getArraySize() }];
H A DExprCXX.h2337 std::optional<Expr *> getArraySize() { in getArraySize() function
2351 std::optional<const Expr *> getArraySize() const { in getArraySize() function
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp81 const Expr *SizeExpr = *NE->getArraySize(); in getExtentSizeOfNewTarget()
/freebsd-14.2/contrib/llvm-project/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.cpp421 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in requiresStackProtector()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp145 const ConstantInt *CUI = cast<ConstantInt>(AI->getArraySize()); in set()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp788 Value *ArraySize = I.getArraySize(); in visitAllocaInst()
1147 I.getArraySize(), in visitAllocaInst()
H A DLint.cpp584 if (isa<ConstantInt>(I.getArraySize())) in visitAllocaInst()
H A DStackSafetyAnalysis.cpp166 const auto *C = dyn_cast<ConstantInt>(AI.getArraySize()); in getStaticAllocaSizeRange()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprCXX.cpp727 ConstantEmitter(CGF).tryEmitAbstract(*e->getArraySize(), e->getType()); in EmitCXXNewAllocSize()
729 numElements = CGF.EmitScalarExpr(*e->getArraySize()); in EmitCXXNewAllocSize()
739 = (*e->getArraySize())->getType()->isSignedIntegerOrEnumerationType(); in EmitCXXNewAllocSize()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DTailRecursionElimination.cpp520 if (isa<ConstantInt>(AI->getArraySize())) in createTailRecurseLoopHeader()
H A DMemCpyOptimizer.cpp878 ConstantInt *srcArraySize = dyn_cast<ConstantInt>(srcAlloca->getArraySize()); in performCallSlotOptzn()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCallEvent.h1082 return getOriginExpr()->getArraySize(); in getArraySizeExpr()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCallAndReturn.cpp803 if (const Expr *SizeExpr = CNE->getArraySize().value_or(nullptr)) { in bindReturnValue()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp619 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) in addFieldForAlloca()
1745 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in insertSpills()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h8466 return Node.isArray() && *Node.getArraySize() && in AST_MATCHER_P()
8467 InnerMatcher.matches(**Node.getArraySize(), Finder, Builder); in AST_MATCHER_P()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DAsmWriter.cpp4452 if (!AI->getArraySize() || AI->isArrayAllocation() || in printInstruction()
4453 !AI->getArraySize()->getType()->isIntegerTy(32)) { in printInstruction()
4455 writeOperand(AI->getArraySize(), true); in printInstruction()

123