Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAllocaHoisting.cpp48 if (allocaInst && isa<ConstantInt>(allocaInst->getArraySize())) { in runOnFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp175 if (AI.getArraySize()->getType()->isIntegerTy(32)) in simplifyAllocaArraySize()
183 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize())) { in simplifyAllocaArraySize()
220 if (isa<UndefValue>(AI.getArraySize())) in simplifyAllocaArraySize()
226 if (AI.getArraySize()->getType() != IntPtrTy) { in simplifyAllocaArraySize()
227 Value *V = IC.Builder.CreateIntCast(AI.getArraySize(), IntPtrTy, false); in simplifyAllocaArraySize()
379 ConstantInt::get(AI.getArraySize()->getType(), 1)); in visitAllocaInst()
788 ConstantInt *CS = dyn_cast<ConstantInt>(AI->getArraySize()); in isObjectSizeLessThanOrEq()
H A DInstCombineCasts.cpp149 Amt = ConstantInt::get(AI.getArraySize()->getType(), Scale); in PromoteCastOfAllocation()
155 Value *Off = ConstantInt::get(AI.getArraySize()->getType(), in PromoteCastOfAllocation()
/freebsd-13.1/contrib/llvm-project/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.cpp670 auto Size = E->getArraySize(); in computeDependence()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DAPValue.h511 return getArrayInitializedElts() != getArraySize();
525 unsigned getArraySize() const {
H A DPropertiesBase.td354 let Read = [{ node.getArraySize() }];
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp81 const Expr *SizeExpr = *NE->getArraySize(); in getExtentSizeOfNewTarget()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DSafeStack.cpp227 auto C = dyn_cast<ConstantInt>(AI->getArraySize()); in getStaticAllocaAllocationSize()
666 Value *ArraySize = AI->getArraySize(); in moveDynamicAllocasToUnsafeStack()
H A DStackProtector.cpp313 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in RequiresStackProtector()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp675 Value *ArraySize = I.getArraySize(); in visitAllocaInst()
963 I.getArraySize(), DL.getIntPtrType(I.getContext())); in visitAllocaInst()
H A DLint.cpp577 if (isa<ConstantInt>(I.getArraySize())) in visitAllocaInst()
H A DStackSafetyAnalysis.cpp158 const auto *C = dyn_cast<ConstantInt>(AI.getArraySize()); in getStaticAllocaSizeRange()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp962 const ConstantInt *CI = dyn_cast<ConstantInt>(AI.getArraySize()); in getAllocaSizeInBytes()
1395 cast<ConstantInt>(AI->getArraySize())->getZExtValue(); in sanitizeFunction()
1442 if (isa<ConstantInt>(AI->getArraySize())) in sanitizeFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp158 const ConstantInt *CUI = cast<ConstantInt>(AI->getArraySize()); in set()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprCXX.cpp719 ConstantEmitter(CGF).tryEmitAbstract(*e->getArraySize(), e->getType()); in EmitCXXNewAllocSize()
721 numElements = CGF.EmitScalarExpr(*e->getArraySize()); in EmitCXXNewAllocSize()
731 = (*e->getArraySize())->getType()->isSignedIntegerOrEnumerationType(); in EmitCXXNewAllocSize()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DTailRecursionElimination.cpp517 if (isa<ConstantInt>(AI->getArraySize())) in createTailRecurseLoopHeader()
H A DMemCpyOptimizer.cpp901 ConstantInt *srcArraySize = dyn_cast<ConstantInt>(srcAlloca->getArraySize()); in performCallSlotOptzn()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp505 cast<ConstantInt>(Info.AI->getArraySize())->getZExtValue()) in alignAndPadAlloca()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCloneFunction.cpp423 if (isa<ConstantInt>(AI->getArraySize())) in CloneBlock()
H A DInlineFunction.cpp1479 return isa<Constant>(AI->getArraySize()) && !AI->isUsedWithInAlloca(); in allocaWouldBeStaticInEntry()
2213 dyn_cast<ConstantInt>(AI->getArraySize())) { in InlineFunction()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCallAndReturn.cpp700 if (const Expr *SizeExpr = CNE->getArraySize().getValueOr(nullptr)) { in bindReturnValue()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp450 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) in addFieldForAlloca()
1536 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in insertSpills()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h7758 return Node.isArray() && *Node.getArraySize() && in AST_MATCHER_P()
7759 InnerMatcher.matches(**Node.getArraySize(), Finder, Builder); in AST_MATCHER_P()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DAsmWriter.cpp4263 if (!AI->getArraySize() || AI->isArrayAllocation() || in printInstruction()
4264 !AI->getArraySize()->getType()->isIntegerTy(32)) { in printInstruction()
4266 writeOperand(AI->getArraySize(), true); in printInstruction()

12