Home
last modified time | relevance | path

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

123

/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXAllocaHoisting.cpp48 if (allocaInst && isa<ConstantInt>(allocaInst->getArraySize())) { in runOnFunction()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp195 if (AI.getArraySize()->getType()->isIntegerTy(32)) in simplifyAllocaArraySize()
203 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize())) { in simplifyAllocaArraySize()
235 if (isa<UndefValue>(AI.getArraySize())) in simplifyAllocaArraySize()
241 if (AI.getArraySize()->getType() != IntPtrTy) { in simplifyAllocaArraySize()
242 Value *V = IC.Builder.CreateIntCast(AI.getArraySize(), IntPtrTy, false); in simplifyAllocaArraySize()
460 ConstantInt::get(AI.getArraySize()->getType(), 1)); in visitAllocaInst()
861 ConstantInt *CS = dyn_cast<ConstantInt>(AI->getArraySize()); in isObjectSizeLessThanOrEq()
H A DInstCombineCasts.cpp155 Amt = ConstantInt::get(AI.getArraySize()->getType(), Scale); in PromoteCastOfAllocation()
161 Value *Off = ConstantInt::get(AI.getArraySize()->getType(), in PromoteCastOfAllocation()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DMemoryTaggingSupport.cpp195 cast<ConstantInt>(Info.AI->getArraySize())->getZExtValue()) in alignAndPadAlloca()
H A DInlineFunction.cpp1639 return isa<Constant>(AI->getArraySize()) && !AI->isUsedWithInAlloca(); in allocaWouldBeStaticInEntry()
2495 dyn_cast<ConstantInt>(AI->getArraySize())) { in InlineFunction()
H A DCloneFunction.cpp552 if (isa<ConstantInt>(AI->getArraySize())) in CloneBlock()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DAPValue.h511 return getArrayInitializedElts() != getArraySize();
525 unsigned getArraySize() const {
H A DPropertiesBase.td358 let Read = [{ node.getArraySize() }];
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp81 const Expr *SizeExpr = *NE->getArraySize(); in getExtentSizeOfNewTarget()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DSafeStack.cpp210 auto C = dyn_cast<ConstantInt>(AI->getArraySize()); in getStaticAllocaAllocationSize()
664 Value *ArraySize = AI->getArraySize(); in moveDynamicAllocasToUnsafeStack()
H A DStackProtector.cpp323 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in RequiresStackProtector()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp757 Value *ArraySize = I.getArraySize(); in visitAllocaInst()
1105 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()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp151 const ConstantInt *CUI = cast<ConstantInt>(AI->getArraySize()); in set()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGExprCXX.cpp723 ConstantEmitter(CGF).tryEmitAbstract(*e->getArraySize(), e->getType()); in EmitCXXNewAllocSize()
725 numElements = CGF.EmitScalarExpr(*e->getArraySize()); in EmitCXXNewAllocSize()
735 = (*e->getArraySize())->getType()->isSignedIntegerOrEnumerationType(); in EmitCXXNewAllocSize()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DTailRecursionElimination.cpp514 if (isa<ConstantInt>(AI->getArraySize())) in createTailRecurseLoopHeader()
H A DMemCpyOptimizer.cpp908 ConstantInt *srcArraySize = dyn_cast<ConstantInt>(srcAlloca->getArraySize()); in performCallSlotOptzn()
/openbsd-src/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCallEvent.h1040 return getOriginExpr()->getArraySize(); in getArraySizeExpr()
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DByteCodeExprGen.cpp882 size_t Size = AILE->getArraySize().getZExtValue(); in visitArrayInitializer()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCallAndReturn.cpp806 if (const Expr *SizeExpr = CNE->getArraySize().value_or(nullptr)) { in bindReturnValue()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp479 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) in addFieldForAlloca()
1606 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in insertSpills()
/openbsd-src/gnu/llvm/clang/include/clang/ASTMatchers/
H A DASTMatchers.h8190 return Node.isArray() && *Node.getArraySize() && in AST_MATCHER_P()
8191 InnerMatcher.matches(**Node.getArraySize(), Finder, Builder); in AST_MATCHER_P()

123