15 #ifndef LLVM_TRANSFORMS_UTILS_LOWERMEMINTRINSICS_H
16 #define LLVM_TRANSFORMS_UTILS_LOWERMEMINTRINSICS_H
25 class TargetTransformInfo;
30 void createMemCpyLoop(Instruction *InsertBefore, Value *SrcAddr, Value *DstAddr,
31 Value *CopyLen,
unsigned SrcAlign,
unsigned DestAlign,
32 bool SrcIsVolatile,
bool DstIsVolatile);
37 Value *DstAddr, Value *CopyLen,
38 unsigned SrcAlign,
unsigned DestAlign,
39 bool SrcIsVolatile,
bool DstIsVolatile,
40 const TargetTransformInfo &TTI);
45 Value *DstAddr, ConstantInt *CopyLen,
46 unsigned SrcAlign,
unsigned DestAlign,
47 bool SrcIsVolatile,
bool DstIsVolatile,
48 const TargetTransformInfo &TTI);
void expandMemMoveAsLoop(MemMoveInst *MemMove)
Expand MemMove as a loop. MemMove is not deleted.
void expandMemSetAsLoop(MemSetInst *MemSet)
Expand MemSet as a loop. MemSet is not deleted.
void createMemCpyLoop(Instruction *InsertBefore, Value *SrcAddr, Value *DstAddr, Value *CopyLen, unsigned SrcAlign, unsigned DestAlign, bool SrcIsVolatile, bool DstIsVolatile)
Emit a loop implementing the semantics of llvm.memcpy with the equivalent arguments at InsertBefore...
void createMemCpyLoopKnownSize(Instruction *InsertBefore, Value *SrcAddr, Value *DstAddr, ConstantInt *CopyLen, unsigned SrcAlign, unsigned DestAlign, bool SrcIsVolatile, bool DstIsVolatile, const TargetTransformInfo &TTI)
Emit a loop implementing the semantics of an llvm.memcpy whose size is a compile time constant...
void createMemCpyLoopUnknownSize(Instruction *InsertBefore, Value *SrcAddr, Value *DstAddr, Value *CopyLen, unsigned SrcAlign, unsigned DestAlign, bool SrcIsVolatile, bool DstIsVolatile, const TargetTransformInfo &TTI)
Emit a loop implementing the semantics of llvm.memcpy where the size is not a compile-time constant...
void expandMemCpyAsLoop(MemCpyInst *MemCpy, const TargetTransformInfo &TTI)
Expand MemCpy as a loop. MemCpy is not deleted.