@@ -1912,8 +1912,8 @@ Value *llvm::emitPutS(Value *Str, IRBuilderBase &B,
19121912
19131913 Type *IntTy = getIntTy (B, TLI);
19141914 StringRef PutsName = TLI->getName (LibFunc_puts);
1915- FunctionCallee PutS = getOrInsertLibFunc (M, *TLI, LibFunc_puts, IntTy,
1916- B.getPtrTy ());
1915+ FunctionCallee PutS =
1916+ getOrInsertLibFunc (M, *TLI, LibFunc_puts, IntTy, B.getPtrTy ());
19171917 inferNonMandatoryLibFuncAttrs (M, PutsName, *TLI);
19181918 CallInst *CI = B.CreateCall (PutS, Str, PutsName);
19191919 if (const Function *F =
@@ -1970,9 +1970,9 @@ Value *llvm::emitFWrite(Value *Ptr, Value *Size, Value *File, IRBuilderBase &B,
19701970
19711971 Type *SizeTTy = getSizeTTy (B, TLI);
19721972 StringRef FWriteName = TLI->getName (LibFunc_fwrite);
1973- FunctionCallee F = getOrInsertLibFunc (M, *TLI, LibFunc_fwrite,
1974- SizeTTy, B.getPtrTy (), SizeTTy ,
1975- SizeTTy, File->getType ());
1973+ FunctionCallee F =
1974+ getOrInsertLibFunc (M, *TLI, LibFunc_fwrite, SizeTTy, B.getPtrTy (),
1975+ SizeTTy, SizeTTy, File->getType ());
19761976
19771977 if (File->getType ()->isPointerTy ())
19781978 inferNonMandatoryLibFuncAttrs (M, FWriteName, *TLI);
@@ -1994,8 +1994,8 @@ Value *llvm::emitMalloc(Value *Num, IRBuilderBase &B, const DataLayout &DL,
19941994
19951995 StringRef MallocName = TLI->getName (LibFunc_malloc);
19961996 Type *SizeTTy = getSizeTTy (B, TLI);
1997- FunctionCallee Malloc = getOrInsertLibFunc (M, *TLI, LibFunc_malloc,
1998- B.getPtrTy (), SizeTTy);
1997+ FunctionCallee Malloc =
1998+ getOrInsertLibFunc (M, *TLI, LibFunc_malloc, B.getPtrTy (), SizeTTy);
19991999 inferNonMandatoryLibFuncAttrs (M, MallocName, *TLI);
20002000 CallInst *CI = B.CreateCall (Malloc, Num, MallocName);
20012001
@@ -2084,8 +2084,8 @@ Value *llvm::emitHotColdNew(Value *Num, IRBuilderBase &B,
20842084 return nullptr ;
20852085
20862086 StringRef Name = TLI->getName (NewFunc);
2087- FunctionCallee Func = M-> getOrInsertFunction (Name, B. getPtrTy (),
2088- Num->getType (), B.getInt8Ty ());
2087+ FunctionCallee Func =
2088+ M-> getOrInsertFunction (Name, B. getPtrTy (), Num->getType (), B.getInt8Ty ());
20892089 inferNonMandatoryLibFuncAttrs (M, Name, *TLI);
20902090 CallInst *CI = B.CreateCall (Func, {Num, B.getInt8 (HotCold)}, Name);
20912091
@@ -2104,9 +2104,8 @@ Value *llvm::emitHotColdNewNoThrow(Value *Num, Value *NoThrow, IRBuilderBase &B,
21042104 return nullptr ;
21052105
21062106 StringRef Name = TLI->getName (NewFunc);
2107- FunctionCallee Func =
2108- M->getOrInsertFunction (Name, B.getPtrTy (), Num->getType (),
2109- NoThrow->getType (), B.getInt8Ty ());
2107+ FunctionCallee Func = M->getOrInsertFunction (
2108+ Name, B.getPtrTy (), Num->getType (), NoThrow->getType (), B.getInt8Ty ());
21102109 inferNonMandatoryLibFuncAttrs (M, Name, *TLI);
21112110 CallInst *CI = B.CreateCall (Func, {Num, NoThrow, B.getInt8 (HotCold)}, Name);
21122111
@@ -2147,8 +2146,8 @@ Value *llvm::emitHotColdNewAlignedNoThrow(Value *Num, Value *Align,
21472146
21482147 StringRef Name = TLI->getName (NewFunc);
21492148 FunctionCallee Func = M->getOrInsertFunction (
2150- Name, B.getPtrTy (), Num->getType (), Align->getType (),
2151- NoThrow-> getType (), B.getInt8Ty ());
2149+ Name, B.getPtrTy (), Num->getType (), Align->getType (), NoThrow-> getType (),
2150+ B.getInt8Ty ());
21522151 inferNonMandatoryLibFuncAttrs (M, Name, *TLI);
21532152 CallInst *CI =
21542153 B.CreateCall (Func, {Num, Align, NoThrow, B.getInt8 (HotCold)}, Name);
0 commit comments