Home
last modified time | relevance | path

Searched refs:CastToCStr (Results 1 – 3 of 3) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp29 Value *llvm::CastToCStr(Value *V, IRBuilder<> &B) { in CastToCStr() function in llvm
51 CallInst *CI = B.CreateCall(StrLen, CastToCStr(Ptr, B), "strlen"); in EmitStrLen()
78 StrChr, {CastToCStr(Ptr, B), ConstantInt::get(I32Ty, C)}, "strchr"); in EmitStrChr()
102 StrNCmp, {CastToCStr(Ptr1, B), CastToCStr(Ptr2, B), Len}, "strncmp"); in EmitStrNCmp()
127 B.CreateCall(StrCpy, {CastToCStr(Dst, B), CastToCStr(Src, B)}, Name); in EmitStrCpy()
152 StrNCpy, {CastToCStr(Dst, B), CastToCStr(Src, B), Len}, "strncpy"); in EmitStrNCpy()
176 Dst = CastToCStr(Dst, B); in EmitMemCpyChk()
177 Src = CastToCStr(Src, B); in EmitMemCpyChk()
199 CallInst *CI = B.CreateCall(MemChr, {CastToCStr(Ptr, B), Val, Len}, "memchr"); in EmitMemChr()
225 MemCmp, {CastToCStr(Ptr1, B), CastToCStr(Ptr2, B), Len}, "memcmp"); in EmitMemCmp()
[all …]
DSimplifyLibCalls.cpp737 Value *Result = CastToCStr(CI->getArgOperand(0), B); in optimizeStrStr()
860 Value *LHSV = B.CreateZExt(B.CreateLoad(CastToCStr(LHS, B), "lhsc"), in optimizeMemCmp()
862 Value *RHSV = B.CreateZExt(B.CreateLoad(CastToCStr(RHS, B), "rhsc"), in optimizeMemCmp()
1879 Value *Ptr = CastToCStr(CI->getArgOperand(0), B); in optimizeSPrintFString()
2035 Value *Char = B.CreateLoad(CastToCStr(CI->getArgOperand(0), B), "char"); in optimizeFWrite()
/external/llvm/include/llvm/Transforms/Utils/
DBuildLibCalls.h26 Value *CastToCStr(Value *V, IRBuilder<> &B);