| /openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXAllocaHoisting.cpp | 48 if (allocaInst && isa<ConstantInt>(allocaInst->getArraySize())) { in runOnFunction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 195 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 D | InstCombineCasts.cpp | 155 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 D | APValue.cpp | 353 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 D | ComputeDependence.cpp | 698 auto Size = E->getArraySize(); in computeDependence()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | MemoryTaggingSupport.cpp | 195 cast<ConstantInt>(Info.AI->getArraySize())->getZExtValue()) in alignAndPadAlloca()
|
| H A D | InlineFunction.cpp | 1639 return isa<Constant>(AI->getArraySize()) && !AI->isUsedWithInAlloca(); in allocaWouldBeStaticInEntry() 2495 dyn_cast<ConstantInt>(AI->getArraySize())) { in InlineFunction()
|
| H A D | CloneFunction.cpp | 552 if (isa<ConstantInt>(AI->getArraySize())) in CloneBlock()
|
| /openbsd-src/gnu/llvm/clang/include/clang/AST/ |
| H A D | APValue.h | 511 return getArrayInitializedElts() != getArraySize(); 525 unsigned getArraySize() const {
|
| H A D | PropertiesBase.td | 358 let Read = [{ node.getArraySize() }];
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CheckPlacementNew.cpp | 81 const Expr *SizeExpr = *NE->getArraySize(); in getExtentSizeOfNewTarget()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | SafeStack.cpp | 210 auto C = dyn_cast<ConstantInt>(AI->getArraySize()); in getStaticAllocaAllocationSize() 664 Value *ArraySize = AI->getArraySize(); in moveDynamicAllocasToUnsafeStack()
|
| H A D | StackProtector.cpp | 323 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in RequiresStackProtector()
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | MemoryBuiltins.cpp | 757 Value *ArraySize = I.getArraySize(); in visitAllocaInst() 1105 I.getArraySize(), DL.getIntPtrType(I.getContext())); in visitAllocaInst()
|
| H A D | Lint.cpp | 582 if (isa<ConstantInt>(I.getArraySize())) in visitAllocaInst()
|
| H A D | StackSafetyAnalysis.cpp | 166 const auto *C = dyn_cast<ConstantInt>(AI.getArraySize()); in getStaticAllocaSizeRange()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | FunctionLoweringInfo.cpp | 151 const ConstantInt *CUI = cast<ConstantInt>(AI->getArraySize()); in set()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 723 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 D | TailRecursionElimination.cpp | 514 if (isa<ConstantInt>(AI->getArraySize())) in createTailRecurseLoopHeader()
|
| H A D | MemCpyOptimizer.cpp | 908 ConstantInt *srcArraySize = dyn_cast<ConstantInt>(srcAlloca->getArraySize()); in performCallSlotOptzn()
|
| /openbsd-src/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | CallEvent.h | 1040 return getOriginExpr()->getArraySize(); in getArraySizeExpr()
|
| /openbsd-src/gnu/llvm/clang/lib/AST/Interp/ |
| H A D | ByteCodeExprGen.cpp | 882 size_t Size = AILE->getArraySize().getZExtValue(); in visitArrayInitializer()
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngineCallAndReturn.cpp | 806 if (const Expr *SizeExpr = CNE->getArraySize().value_or(nullptr)) { in bindReturnValue()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroFrame.cpp | 479 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 D | ASTMatchers.h | 8190 return Node.isArray() && *Node.getArraySize() && in AST_MATCHER_P() 8191 InnerMatcher.matches(**Node.getArraySize(), Finder, Builder); in AST_MATCHER_P()
|