Lines Matching refs:AI
101 const AllocaInst *AI = nullptr; member
105 AllocaInfo(unsigned PointerSize, const AllocaInst *AI, uint64_t Size) in AllocaInfo()
106 : AI(AI), Size(Size), Use(PointerSize) {} in AllocaInfo()
108 StringRef getName() const { return AI->getName(); } in getName()
131 uint64_t getStaticAllocaAllocationSize(const AllocaInst *AI) { in getStaticAllocaAllocationSize() argument
132 const DataLayout &DL = AI->getModule()->getDataLayout(); in getStaticAllocaAllocationSize()
133 uint64_t Size = DL.getTypeAllocSize(AI->getAllocatedType()); in getStaticAllocaAllocationSize()
134 if (AI->isArrayAllocation()) { in getStaticAllocaAllocationSize()
135 auto C = dyn_cast<ConstantInt>(AI->getArraySize()); in getStaticAllocaAllocationSize()
375 if (auto AI = dyn_cast<AllocaInst>(&I)) { in run() local
376 Info.Allocas.emplace_back(PointerSize, AI, in run()
377 getStaticAllocaAllocationSize(AI)); in run()
379 analyzeAllUses(AI, AS.Use); in run()