Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DMemoryBuiltins.cpp65 AllocType AllocTy; member
136 getAllocationDataForFunction(const Function *Callee, AllocType AllocTy, in getAllocationDataForFunction() argument
153 if ((FnData->AllocTy & AllocTy) != FnData->AllocTy) in getAllocationDataForFunction()
173 static Optional<AllocFnsTy> getAllocationData(const Value *V, AllocType AllocTy, in getAllocationData() argument
180 return getAllocationDataForFunction(Callee, AllocTy, TLI); in getAllocationData()
208 Result.AllocTy = MallocLike; in getAllocationSize()
591 if (FnData->AllocTy == StrDupLike) { in visitCallSite()
849 if (FnData->AllocTy == StrDupLike) { in visitCallSite()
DScalarEvolution.cpp304 Type *AllocTy; in print() local
305 if (U->isSizeOf(AllocTy)) { in print()
306 OS << "sizeof(" << *AllocTy << ")"; in print()
309 if (U->isAlignOf(AllocTy)) { in print()
310 OS << "alignof(" << *AllocTy << ")"; in print()
463 bool SCEVUnknown::isSizeOf(Type *&AllocTy) const { in isSizeOf()
472 AllocTy = cast<PointerType>(CE->getOperand(0)->getType()) in isSizeOf()
480 bool SCEVUnknown::isAlignOf(Type *&AllocTy) const { in isAlignOf()
496 AllocTy = STy->getElementType(1); in isAlignOf()
3729 const SCEV *ScalarEvolution::getSizeOfExpr(Type *IntTy, Type *AllocTy) { in getSizeOfExpr() argument
[all …]
/external/llvm/lib/Analysis/
DMemoryBuiltins.cpp45 AllocType AllocTy; member
101 static Optional<AllocFnsTy> getAllocationData(const Value *V, AllocType AllocTy, in getAllocationData() argument
118 if ((AllocTy & AllocSizeAllocTy) == AllocSizeAllocTy && in getAllocationData()
124 Result.AllocTy = AllocSizeAllocTy; in getAllocationData()
147 if ((FnData->AllocTy & AllocTy) != FnData->AllocTy) in getAllocationData()
485 if (FnData->AllocTy == StrDupLike) { in visitCallSite()
745 if (FnData->AllocTy == StrDupLike) { in visitCallSite()
DScalarEvolution.cpp217 Type *AllocTy; in print() local
218 if (U->isSizeOf(AllocTy)) { in print()
219 OS << "sizeof(" << *AllocTy << ")"; in print()
222 if (U->isAlignOf(AllocTy)) { in print()
223 OS << "alignof(" << *AllocTy << ")"; in print()
382 bool SCEVUnknown::isSizeOf(Type *&AllocTy) const { in isSizeOf()
391 AllocTy = cast<PointerType>(CE->getOperand(0)->getType()) in isSizeOf()
399 bool SCEVUnknown::isAlignOf(Type *&AllocTy) const { in isAlignOf()
415 AllocTy = STy->getElementType(1); in isAlignOf()
3237 const SCEV *ScalarEvolution::getSizeOfExpr(Type *IntTy, Type *AllocTy) { in getSizeOfExpr() argument
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DScalarEvolutionExpressions.h444 bool isSizeOf(Type *&AllocTy) const;
445 bool isAlignOf(Type *&AllocTy) const;
DScalarEvolution.h620 const SCEV *getSizeOfExpr(Type *AllocTy);
624 const SCEV *getAlignOfExpr(Type *AllocTy);
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp792 OptimizeGlobalAddressOfMalloc(GlobalVariable *GV, CallInst *CI, Type *AllocTy, in OptimizeGlobalAddressOfMalloc() argument
799 GlobalType = AllocTy; in OptimizeGlobalAddressOfMalloc()
802 GlobalType = ArrayType::get(AllocTy, NElements->getZExtValue()); in OptimizeGlobalAddressOfMalloc()
1420 Type *AllocTy, in tryToOptimizeStoreOfMallocToGlobal() argument
1425 if (!AllocTy->isSized()) in tryToOptimizeStoreOfMallocToGlobal()
1459 if (NElements->getZExtValue() * DL.getTypeAllocSize(AllocTy) < 2048) { in tryToOptimizeStoreOfMallocToGlobal()
1460 OptimizeGlobalAddressOfMalloc(GV, CI, AllocTy, NElements, DL, TLI); in tryToOptimizeStoreOfMallocToGlobal()
1474 if (ArrayType *AT = dyn_cast<ArrayType>(AllocTy)) in tryToOptimizeStoreOfMallocToGlobal()
1475 AllocTy = AT->getElementType(); in tryToOptimizeStoreOfMallocToGlobal()
1477 StructType *AllocSTy = dyn_cast<StructType>(AllocTy); in tryToOptimizeStoreOfMallocToGlobal()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp835 OptimizeGlobalAddressOfMalloc(GlobalVariable *GV, CallInst *CI, Type *AllocTy, in OptimizeGlobalAddressOfMalloc() argument
843 GlobalType = AllocTy; in OptimizeGlobalAddressOfMalloc()
846 GlobalType = ArrayType::get(AllocTy, NElements->getZExtValue()); in OptimizeGlobalAddressOfMalloc()
1464 Type *AllocTy, in tryToOptimizeStoreOfMallocToGlobal() argument
1469 if (!AllocTy->isSized()) in tryToOptimizeStoreOfMallocToGlobal()
1503 if (NElements->getZExtValue() * DL.getTypeAllocSize(AllocTy) < 2048) { in tryToOptimizeStoreOfMallocToGlobal()
1504 OptimizeGlobalAddressOfMalloc(GV, CI, AllocTy, NElements, DL, TLI); in tryToOptimizeStoreOfMallocToGlobal()
1518 if (ArrayType *AT = dyn_cast<ArrayType>(AllocTy)) in tryToOptimizeStoreOfMallocToGlobal()
1519 AllocTy = AT->getElementType(); in tryToOptimizeStoreOfMallocToGlobal()
1521 StructType *AllocSTy = dyn_cast<StructType>(AllocTy); in tryToOptimizeStoreOfMallocToGlobal()
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DGlobalOpt.cpp849 Type *AllocTy, in OptimizeGlobalAddressOfMalloc() argument
856 GlobalType = AllocTy; in OptimizeGlobalAddressOfMalloc()
859 GlobalType = ArrayType::get(AllocTy, NElements->getZExtValue()); in OptimizeGlobalAddressOfMalloc()
1484 Type *AllocTy, in TryToOptimizeStoreOfMallocToGlobal() argument
1491 if (!AllocTy->isSized()) in TryToOptimizeStoreOfMallocToGlobal()
1525 if (NElements->getZExtValue() * TD->getTypeAllocSize(AllocTy) < 2048) { in TryToOptimizeStoreOfMallocToGlobal()
1526 GVI = OptimizeGlobalAddressOfMalloc(GV, CI, AllocTy, NElements, TD); in TryToOptimizeStoreOfMallocToGlobal()
1537 if (ArrayType *AT = dyn_cast<ArrayType>(AllocTy)) in TryToOptimizeStoreOfMallocToGlobal()
1538 AllocTy = AT->getElementType(); in TryToOptimizeStoreOfMallocToGlobal()
1540 StructType *AllocSTy = dyn_cast<StructType>(AllocTy); in TryToOptimizeStoreOfMallocToGlobal()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp730 Type *AllocTy = in canReplaceGEPIdxWithZero() local
732 if (!AllocTy || !AllocTy->isSized()) in canReplaceGEPIdxWithZero()
735 uint64_t TyAllocSize = DL.getTypeAllocSize(AllocTy); in canReplaceGEPIdxWithZero()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DScalarEvolutionExpressions.h430 bool isSizeOf(Type *&AllocTy) const;
431 bool isAlignOf(Type *&AllocTy) const;
DScalarEvolution.h603 const SCEV *getSizeOfExpr(Type *IntTy, Type *AllocTy);
/external/llvm/include/llvm/Analysis/
DScalarEvolutionExpressions.h423 bool isSizeOf(Type *&AllocTy) const;
424 bool isAlignOf(Type *&AllocTy) const;
DScalarEvolution.h1261 const SCEV *getSizeOfExpr(Type *IntTy, Type *AllocTy);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp909 Type *AllocTy = in canReplaceGEPIdxWithZero() local
911 if (!AllocTy || !AllocTy->isSized()) in canReplaceGEPIdxWithZero()
914 uint64_t TyAllocSize = DL.getTypeAllocSize(AllocTy); in canReplaceGEPIdxWithZero()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DInstructions.cpp405 Type *AllocTy, Value *AllocSize, in createMalloc() argument
455 PointerType *AllocPtrType = PointerType::getUnqual(AllocTy); in createMalloc()
492 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
496 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
500 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
505 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
518 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
521 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
525 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
529 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
/external/llvm/lib/IR/
DInstructions.cpp443 Type *AllocTy, Value *AllocSize, in createMalloc() argument
493 PointerType *AllocPtrType = PointerType::getUnqual(AllocTy); in createMalloc()
529 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
533 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
537 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
542 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
556 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
559 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
563 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
567 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DScalarEvolution.cpp200 Type *AllocTy; in print() local
201 if (U->isSizeOf(AllocTy)) { in print()
202 OS << "sizeof(" << *AllocTy << ")"; in print()
205 if (U->isAlignOf(AllocTy)) { in print()
206 OS << "alignof(" << *AllocTy << ")"; in print()
357 bool SCEVUnknown::isSizeOf(Type *&AllocTy) const { in isSizeOf()
366 AllocTy = cast<PointerType>(CE->getOperand(0)->getType()) in isSizeOf()
374 bool SCEVUnknown::isAlignOf(Type *&AllocTy) const { in isAlignOf()
390 AllocTy = STy->getElementType(1); in isAlignOf()
2574 const SCEV *ScalarEvolution::getSizeOfExpr(Type *AllocTy) { in getSizeOfExpr() argument
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DInstructions.cpp355 Type *AllocTy, Value *AllocSize, in createMalloc() argument
404 PointerType *AllocPtrType = PointerType::getUnqual(AllocTy); in createMalloc()
439 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
443 return createMalloc(InsertBefore, NULL, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
456 Type *IntPtrTy, Type *AllocTy, in CreateMalloc() argument
459 return createMalloc(NULL, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
/external/llvm/lib/Transforms/Scalar/
DLoopRerollPass.cpp503 Type *AllocTy; in getIncrmentFactorSCEV() local
504 if (!Unknown->isSizeOf(AllocTy)) in getIncrmentFactorSCEV()
/external/llvm/include/llvm/IR/
DInstructions.h1475 Type *IntPtrTy, Type *AllocTy,
1480 Type *IntPtrTy, Type *AllocTy,
1485 Type *IntPtrTy, Type *AllocTy,
1491 Type *IntPtrTy, Type *AllocTy,
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DInstructions.h2011 Type *AllocTy, Value *AllocSize,
2016 Type *AllocTy, Value *AllocSize,
2021 Type *AllocTy, Value *AllocSize,
2027 Type *AllocTy, Value *AllocSize,
/external/swiftshader/third_party/LLVM/include/llvm/
DInstructions.h1198 Type *IntPtrTy, Type *AllocTy,
1203 Type *IntPtrTy, Type *AllocTy,