Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAllocaHoisting.cpp49 if (allocaInst && isa<ConstantInt>(allocaInst->getArraySize())) { in runOnFunction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp190 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 DAPValue.cpp354 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 DStmt.cpp522 Out.reserve(Res.getArraySize()); in ExtractStringFromGCCAsmStmtComponent()
523 for (unsigned I = 0; I < Res.getArraySize(); ++I) { in ExtractStringFromGCCAsmStmtComponent()
H A DComputeDependence.cpp769 auto Size = E->getArraySize(); in computeDependence()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DAPValue.h585 return getArrayInitializedElts() != getArraySize();
599 unsigned getArraySize() const {
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp81 const Expr *SizeExpr = *NE->getArraySize(); in getExtentSizeOfNewTarget()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMemoryTaggingSupport.cpp239 cast<ConstantInt>(Info.AI->getArraySize())->getZExtValue()) in alignAndPadAlloca()
H A DCloneFunction.cpp618 if (isa<ConstantInt>(AI->getArraySize())) in CloneBlock()
H A DInlineFunction.cpp1818 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 DSafeStack.cpp208 auto C = dyn_cast<ConstantInt>(AI->getArraySize()); in getStaticAllocaAllocationSize()
671 Value *ArraySize = AI->getArraySize(); in moveDynamicAllocasToUnsafeStack()
H A DStackProtector.cpp444 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in requiresStackProtector()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprCXX.cpp735 *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 DFunctionLoweringInfo.cpp144 const ConstantInt *CUI = cast<ConstantInt>(AI->getArraySize()); in set()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp905 Value *ArraySize = I.getArraySize(); in visitAllocaInst()
1289 I.getArraySize(), in visitAllocaInst()
H A DLint.cpp603 if (isa<ConstantInt>(I.getArraySize())) in visitAllocaInst()
H A DStackSafetyAnalysis.cpp166 const auto *C = dyn_cast<ConstantInt>(AI.getArraySize()); in getStaticAllocaSizeRange()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenExprConstant.cpp706 const unsigned numElements = value.getArraySize(); in tryEmitPrivate()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DTailRecursionElimination.cpp540 if (isa<ConstantInt>(AI->getArraySize())) in createTailRecurseLoopHeader()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DInstruction.h2218 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 DCoroFrame.cpp199 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 DTypeSanitizer.cpp824 IRB.CreateZExtOrTrunc(AI->getArraySize(), IntptrTy), in instrumentMemInst()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DInstruction.cpp1410 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 DExprEngineCallAndReturn.cpp804 if (const Expr *SizeExpr = CNE->getArraySize().value_or(nullptr)) { in bindReturnValue()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCallEvent.h1161 return getOriginExpr()->getArraySize(); in getArraySizeExpr()

123