| /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXAllocaHoisting.cpp | 49 if (allocaInst && isa<ConstantInt>(allocaInst->getArraySize())) { in runOnFunction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 190 if (AI.getArraySize()->getType()->isIntegerTy(32)) in simplifyAllocaArraySize() 198 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize())) { in simplifyAllocaArraySize() 211 if (isa<UndefValue>(AI.getArraySize())) in simplifyAllocaArraySize() 218 if (AI.getArraySize()->getType() != PtrIdxTy) { in simplifyAllocaArraySize() 219 Value *V = IC.Builder.CreateIntCast(AI.getArraySize(), PtrIdxTy, false); in simplifyAllocaArraySize() 490 ConstantInt::get(AI.getArraySize()->getType(), 1)); in visitAllocaInst() 852 ConstantInt *CS = dyn_cast<ConstantInt>(AI->getArraySize()); in isObjectSizeLessThanOrEq()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | APValue.cpp | 354 MakeArray(RHS.getArrayInitializedElts(), RHS.getArraySize()); in APValue() 524 if (getArraySize() == 0) in Profile() 540 unsigned NumFillers = getArraySize() - getArrayInitializedElts(); in Profile() 549 assert(NumFillers == getArraySize()); in Profile() 556 if (N != getArraySize()) { in Profile()
|
| H A D | Stmt.cpp | 522 Out.reserve(Res.getArraySize()); in ExtractStringFromGCCAsmStmtComponent() 523 for (unsigned I = 0; I < Res.getArraySize(); ++I) { in ExtractStringFromGCCAsmStmtComponent()
|
| H A D | ComputeDependence.cpp | 769 auto Size = E->getArraySize(); in computeDependence()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | APValue.h | 585 return getArrayInitializedElts() != getArraySize(); 599 unsigned getArraySize() const {
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CheckPlacementNew.cpp | 81 const Expr *SizeExpr = *NE->getArraySize(); in getExtentSizeOfNewTarget()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | MemoryTaggingSupport.cpp | 239 cast<ConstantInt>(Info.AI->getArraySize())->getZExtValue()) in alignAndPadAlloca()
|
| H A D | CloneFunction.cpp | 618 if (isa<ConstantInt>(AI->getArraySize())) in CloneBlock()
|
| H A D | InlineFunction.cpp | 1818 return isa<Constant>(AI->getArraySize()) && !AI->isUsedWithInAlloca(); in allocaWouldBeStaticInEntry() 2986 dyn_cast<ConstantInt>(AI->getArraySize())) { in InlineFunction()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SafeStack.cpp | 208 auto C = dyn_cast<ConstantInt>(AI->getArraySize()); in getStaticAllocaAllocationSize() 671 Value *ArraySize = AI->getArraySize(); in moveDynamicAllocasToUnsafeStack()
|
| H A D | StackProtector.cpp | 444 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in requiresStackProtector()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 735 *e->getArraySize(), (*e->getArraySize())->getType()); in EmitCXXNewAllocSize() 737 numElements = CGF.EmitScalarExpr(*e->getArraySize()); in EmitCXXNewAllocSize() 747 = (*e->getArraySize())->getType()->isSignedIntegerOrEnumerationType(); in EmitCXXNewAllocSize()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | FunctionLoweringInfo.cpp | 144 const ConstantInt *CUI = cast<ConstantInt>(AI->getArraySize()); in set()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | MemoryBuiltins.cpp | 905 Value *ArraySize = I.getArraySize(); in visitAllocaInst() 1289 I.getArraySize(), in visitAllocaInst()
|
| H A D | Lint.cpp | 603 if (isa<ConstantInt>(I.getArraySize())) in visitAllocaInst()
|
| H A D | StackSafetyAnalysis.cpp | 166 const auto *C = dyn_cast<ConstantInt>(AI.getArraySize()); in getStaticAllocaSizeRange()
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/ |
| H A D | CIRGenExprConstant.cpp | 706 const unsigned numElements = value.getArraySize(); in tryEmitPrivate()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | TailRecursionElimination.cpp | 540 if (isa<ConstantInt>(AI->getArraySize())) in createTailRecurseLoopHeader()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Instruction.h | 2218 LLVM_ABI Value *getArraySize(); 2219 const Value *getArraySize() const { in getArraySize() function 2220 return const_cast<AllocaInst *>(this)->getArraySize(); in getArraySize()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroFrame.cpp | 199 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) in addFieldForAlloca() 1018 if (auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in insertSpills()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | TypeSanitizer.cpp | 824 IRB.CreateZExtOrTrunc(AI->getArraySize(), IntptrTy), in instrumentMemInst()
|
| /freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | Instruction.cpp | 1410 Value *AllocaInst::getArraySize() { in getArraySize() function in llvm::sandboxir::AllocaInst 1411 return Ctx.getValue(cast<llvm::AllocaInst>(Val)->getArraySize()); in getArraySize()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngineCallAndReturn.cpp | 804 if (const Expr *SizeExpr = CNE->getArraySize().value_or(nullptr)) { in bindReturnValue()
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | CallEvent.h | 1161 return getOriginExpr()->getArraySize(); in getArraySizeExpr()
|