Home
last modified time | relevance | path

Searched refs:AllocTy (Results 1 – 8 of 8) sorted by relevance

/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
DMemoryBuiltins.cpp65 AllocType AllocTy; member
142 getAllocationDataForFunction(const Function *Callee, AllocType AllocTy, in getAllocationDataForFunction() argument
158 if ((FnData->AllocTy & AllocTy) != FnData->AllocTy) in getAllocationDataForFunction()
178 static Optional<AllocFnsTy> getAllocationData(const Value *V, AllocType AllocTy, in getAllocationData() argument
185 return getAllocationDataForFunction(Callee, AllocTy, TLI); in getAllocationData()
190 getAllocationData(const Value *V, AllocType AllocTy, in getAllocationData() argument
198 Callee, AllocTy, &GetTLI(const_cast<Function &>(*Callee))); in getAllocationData()
226 Result.AllocTy = MallocLike; in getAllocationSize()
707 if (FnData->AllocTy == StrDupLike) { in visitCallBase()
979 if (FnData->AllocTy == StrDupLike) { in visitCallBase()
DScalarEvolution.cpp349 Type *AllocTy; in print() local
350 if (U->isSizeOf(AllocTy)) { in print()
351 OS << "sizeof(" << *AllocTy << ")"; in print()
354 if (U->isAlignOf(AllocTy)) { in print()
355 OS << "alignof(" << *AllocTy << ")"; in print()
527 bool SCEVUnknown::isSizeOf(Type *&AllocTy) const { in isSizeOf()
536 AllocTy = cast<GEPOperator>(CE)->getSourceElementType(); in isSizeOf()
543 bool SCEVUnknown::isAlignOf(Type *&AllocTy) const { in isAlignOf()
558 AllocTy = STy->getElementType(1); in isAlignOf()
3856 const SCEV *ScalarEvolution::getSizeOfExpr(Type *IntTy, Type *AllocTy) { in getSizeOfExpr() argument
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp897 OptimizeGlobalAddressOfMalloc(GlobalVariable *GV, CallInst *CI, Type *AllocTy, in OptimizeGlobalAddressOfMalloc() argument
905 GlobalType = AllocTy; in OptimizeGlobalAddressOfMalloc()
908 GlobalType = ArrayType::get(AllocTy, NElements->getZExtValue()); in OptimizeGlobalAddressOfMalloc()
1055 Type *AllocTy, in tryToOptimizeStoreOfMallocToGlobal() argument
1060 if (!AllocTy->isSized()) in tryToOptimizeStoreOfMallocToGlobal()
1092 if (NElements->getZExtValue() * DL.getTypeAllocSize(AllocTy) < 2048) { in tryToOptimizeStoreOfMallocToGlobal()
1093 OptimizeGlobalAddressOfMalloc(GV, CI, AllocTy, NElements, DL, TLI); in tryToOptimizeStoreOfMallocToGlobal()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp868 Type *AllocTy = GetElementPtrInst::getIndexedType(SourceElementType, Ops); in canReplaceGEPIdxWithZero() local
869 if (!AllocTy || !AllocTy->isSized()) in canReplaceGEPIdxWithZero()
872 uint64_t TyAllocSize = DL.getTypeAllocSize(AllocTy).getFixedSize(); in canReplaceGEPIdxWithZero()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
DScalarEvolutionExpressions.h560 bool isSizeOf(Type *&AllocTy) const;
561 bool isAlignOf(Type *&AllocTy) const;
DScalarEvolution.h620 const SCEV *getSizeOfExpr(Type *IntTy, Type *AllocTy);
/freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/
DInstructions.cpp632 Type *AllocTy, Value *AllocSize, in createMalloc() argument
682 PointerType *AllocPtrType = PointerType::getUnqual(AllocTy); in createMalloc()
719 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
723 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
727 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
732 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
745 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
748 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
752 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
756 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/
DInstructions.h1620 Type *AllocTy, Value *AllocSize,
1625 Type *AllocTy, Value *AllocSize,
1630 Type *AllocTy, Value *AllocSize,
1636 Type *AllocTy, Value *AllocSize,