Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXAllocaHoisting.cpp48 if (allocaInst && isa<ConstantInt>(allocaInst->getArraySize())) { in runOnFunction()
/netbsd-src/external/apache2/llvm/dist/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()
212 if (isa<UndefValue>(AI.getArraySize())) in simplifyAllocaArraySize()
218 if (AI.getArraySize()->getType() != IntPtrTy) { in simplifyAllocaArraySize()
219 Value *V = IC.Builder.CreateIntCast(AI.getArraySize(), IntPtrTy, false); in simplifyAllocaArraySize()
367 ConstantInt::get(AI.getArraySize()->getType(), 1)); in visitAllocaInst()
776 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()
/netbsd-src/external/apache2/llvm/dist/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.cpp666 auto Size = E->getArraySize(); in computeDependence()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DAPValue.h511 return getArrayInitializedElts() != getArraySize();
525 unsigned getArraySize() const {
H A DPropertiesBase.td354 let Read = [{ node.getArraySize() }];
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp81 const Expr *SizeExpr = *NE->getArraySize(); in getExtentSizeOfNewTarget()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DSafeStack.cpp227 auto C = dyn_cast<ConstantInt>(AI->getArraySize()); in getStaticAllocaAllocationSize()
663 Value *ArraySize = AI->getArraySize(); in moveDynamicAllocasToUnsafeStack()
H A DStackProtector.cpp313 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in RequiresStackProtector()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp883 const ConstantInt *CI = dyn_cast<ConstantInt>(AI.getArraySize()); in getAllocaSizeInBytes()
1296 cast<ConstantInt>(AI->getArraySize())->getZExtValue(); in sanitizeFunction()
1341 if (isa<ConstantInt>(AI->getArraySize())) in sanitizeFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp158 const ConstantInt *CUI = cast<ConstantInt>(AI->getArraySize()); in set()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGExprCXX.cpp716 ConstantEmitter(CGF).tryEmitAbstract(*e->getArraySize(), e->getType()); in EmitCXXNewAllocSize()
718 numElements = CGF.EmitScalarExpr(*e->getArraySize()); in EmitCXXNewAllocSize()
728 = (*e->getArraySize())->getType()->isSignedIntegerOrEnumerationType(); in EmitCXXNewAllocSize()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DTailRecursionElimination.cpp525 if (isa<ConstantInt>(AI->getArraySize())) in createTailRecurseLoopHeader()
H A DMemCpyOptimizer.cpp888 ConstantInt *srcArraySize = dyn_cast<ConstantInt>(srcAlloca->getArraySize()); in performCallSlotOptzn()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp503 cast<ConstantInt>(Info.AI->getArraySize())->getZExtValue()) in alignAndPadAlloca()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCallAndReturn.cpp700 if (const Expr *SizeExpr = CNE->getArraySize().getValueOr(nullptr)) { in bindReturnValue()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DCloneFunction.cpp422 if (isa<ConstantInt>(AI->getArraySize())) in CloneBlock()
H A DInlineFunction.cpp1478 return isa<Constant>(AI->getArraySize()) && !AI->isUsedWithInAlloca(); in allocaWouldBeStaticInEntry()
2206 dyn_cast<ConstantInt>(AI->getArraySize())) { in InlineFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp447 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) in addFieldForAlloca()
1514 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in insertSpills()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/ASTMatchers/
H A DASTMatchers.h7746 return Node.isArray() && *Node.getArraySize() && in AST_MATCHER_P()
7747 InnerMatcher.matches(**Node.getArraySize(), Finder, Builder); in AST_MATCHER_P()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DAsmWriter.cpp4276 if (!AI->getArraySize() || AI->isArrayAllocation() || in printInstruction()
4277 !AI->getArraySize()->getType()->isIntegerTy(32)) { in printInstruction()
4279 writeOperand(AI->getArraySize(), true); in printInstruction()

12