From: Nicolas Vasilache Date: Mon, 3 Jan 2022 22:17:11 +0000 (-0500) Subject: [mlir] NFC - Format ExecutionEngine.cpp X-Git-Tag: upstream/15.0.7~21763 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f1f5a85af8be484c8d0d31bb643e10af0efd01d8;p=platform%2Fupstream%2Fllvm.git [mlir] NFC - Format ExecutionEngine.cpp --- diff --git a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp index d0556e1..ead1515 100644 --- a/mlir/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/mlir/lib/ExecutionEngine/ExecutionEngine.cpp @@ -180,10 +180,10 @@ static void packFunctionArguments(Module *module) { for (auto &indexedArg : llvm::enumerate(func.args())) { llvm::Value *argIndex = llvm::Constant::getIntegerValue( builder.getInt64Ty(), APInt(64, indexedArg.index())); - llvm::Value *argPtrPtr = builder.CreateGEP( - builder.getInt8PtrTy(), argList, argIndex); - llvm::Value *argPtr = builder.CreateLoad(builder.getInt8PtrTy(), - argPtrPtr); + llvm::Value *argPtrPtr = + builder.CreateGEP(builder.getInt8PtrTy(), argList, argIndex); + llvm::Value *argPtr = + builder.CreateLoad(builder.getInt8PtrTy(), argPtrPtr); llvm::Type *argTy = indexedArg.value().getType(); argPtr = builder.CreateBitCast(argPtr, argTy->getPointerTo()); llvm::Value *arg = builder.CreateLoad(argTy, argPtr); @@ -199,8 +199,8 @@ static void packFunctionArguments(Module *module) { builder.getInt64Ty(), APInt(64, llvm::size(func.args()))); llvm::Value *retPtrPtr = builder.CreateGEP(builder.getInt8PtrTy(), argList, retIndex); - llvm::Value *retPtr = builder.CreateLoad(builder.getInt8PtrTy(), - retPtrPtr); + llvm::Value *retPtr = + builder.CreateLoad(builder.getInt8PtrTy(), retPtrPtr); retPtr = builder.CreateBitCast(retPtr, result->getType()->getPointerTo()); builder.CreateStore(result, retPtr); }