Home
last modified time | relevance | path

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

12

/minix3/external/bsd/llvm/dist/clang/test/Analysis/
H A Dtest-variably-modified-types.c4 unsigned getArraySize(int *x) { in getArraySize() function
11 int mytype[getArraySize(x)]; in testVariablyModifiedTypes()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXAllocaHoisting.cpp29 if (allocaInst && isa<ConstantInt>(allocaInst->getArraySize())) { in runOnFunction()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp171 if (AI.getArraySize()->getType() != IntPtrTy) { in visitAllocaInst()
172 Value *V = Builder->CreateIntCast(AI.getArraySize(), in visitAllocaInst()
181 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize())) { in visitAllocaInst()
208 } else if (isa<UndefValue>(AI.getArraySize())) { in visitAllocaInst()
226 AI.setOperand(0, ConstantInt::get(AI.getArraySize()->getType(), 1)); in visitAllocaInst()
H A DInstCombineCasts.cpp132 Amt = ConstantInt::get(AI.getArraySize()->getType(), Scale); in PromoteCastOfAllocation()
138 Value *Off = ConstantInt::get(AI.getArraySize()->getType(), in PromoteCastOfAllocation()
/minix3/external/bsd/llvm/dist/clang/lib/AST/
H A DAPValue.cpp160 MakeArray(RHS.getArrayInitializedElts(), RHS.getArraySize()); in APValue()
304 if (I != getArraySize() - 1) OS << ", "; in dump()
307 OS << getArraySize() - getArrayInitializedElts() << " x "; in dump()
H A DStmtPrinter.cpp1823 if (Expr *Size = E->getArraySize()) { in VisitCXXNewExpr()
/minix3/external/bsd/llvm/dist/clang/include/clang/AST/
H A DAPValue.h280 return getArrayInitializedElts() != getArraySize(); in hasArrayFiller()
294 unsigned getArraySize() const { in getArraySize() function
H A DExprCXX.h1701 Expr *getArraySize() { in getArraySize() function
1704 const Expr *getArraySize() const { in getArraySize() function
/minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/
H A DSjLjEHPrepare.cpp246 isa<ConstantInt>(cast<AllocaInst>(AfterAllocaInsPt)->getArraySize())) in lowerIncomingArguments()
288 if (isa<ConstantInt>(AI->getArraySize()) && BB == F.begin()) in lowerAcrossUnwindEdges()
H A DStackProtector.cpp224 if (const auto *CI = dyn_cast<ConstantInt>(AI->getArraySize())) { in RequiresStackProtector()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp866 if (isa<Constant>(AI->getArraySize())) in fixupLineNumbers()
1061 if (!isa<Constant>(AI->getArraySize())) in InlineFunction()
1070 isa<Constant>(cast<AllocaInst>(I)->getArraySize())) { in InlineFunction()
1138 dyn_cast<ConstantInt>(AI->getArraySize())) { in InlineFunction()
H A DCloneFunction.cpp58 if (isa<ConstantInt>(AI->getArraySize())) in CloneBasicBlock()
347 if (isa<ConstantInt>(AI->getArraySize())) in CloneBlock()
/minix3/external/bsd/llvm/dist/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp456 Value *ArraySize = I.getArraySize(); in visitAllocaInst()
688 Value *ArraySize = I.getArraySize(); in visitAllocaInst()
H A DLint.cpp573 if (isa<ConstantInt>(I.getArraySize())) in visitAllocaInst()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/
H A DMemCpyOptimizer.cpp612 ConstantInt *srcArraySize = dyn_cast<ConstantInt>(srcAlloca->getArraySize()); in performCallSlotOptzn()
627 ConstantInt *destArraySize = dyn_cast<ConstantInt>(A->getArraySize()); in performCallSlotOptzn()
H A DTailRecursionElimination.cpp714 if (isa<ConstantInt>(AI->getArraySize())) in EliminateRecursiveTailCall()
/minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp104 const ConstantInt *CUI = cast<ConstantInt>(AI->getArraySize()); in set()
/minix3/external/bsd/llvm/dist/clang/lib/CodeGen/
H A DCGExprCXX.cpp519 numElements = CGF.EmitScalarExpr(e->getArraySize()); in EmitCXXNewAllocSize()
529 = e->getArraySize()->getType()->isSignedIntegerOrEnumerationType(); in EmitCXXNewAllocSize()
H A DCGExprConstant.cpp1212 unsigned NumElements = Value.getArraySize(); in EmitConstantValue()
/minix3/external/bsd/llvm/dist/llvm/lib/Analysis/IPA/
H A DInlineCost.cpp281 if (Constant *Size = SimplifiedValues.lookup(I.getArraySize())) { in visitAlloca()
/minix3/external/bsd/llvm/dist/llvm/lib/IR/
H A DAsmWriter.cpp2321 if (!AI->getArraySize() || AI->isArrayAllocation()) { in printInstruction()
2323 writeOperand(AI->getArraySize(), true); in printInstruction()
H A DVerifier.cpp2042 Assert1(AI.getArraySize()->getType()->isIntegerTy(), in visitAllocaInst()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/
H A DInstructions.h104 const Value *getArraySize() const { return getOperand(0); } in getArraySize() function
105 Value *getArraySize() { return getOperand(0); } in getArraySize() function
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DAddressSanitizer.cpp1955 Value *OldSize = IRB.CreateMul(AI->getArraySize(), in handleDynamicAllocaCall()
/minix3/external/bsd/llvm/dist/clang/lib/Analysis/
H A DCFG.cpp3465 Block = Visit(NE->getArraySize()); in VisitCXXNewExpr()

12