clangir icon indicating copy to clipboard operation
clangir copied to clipboard

wip -- emitFunctionProlog

Open lanza opened this issue 1 year ago • 1 comments

lanza avatar Dec 12 '24 06:12 lanza

:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

You can test this locally with the following command:
git-clang-format --diff 2b1a638ea07ca10c5727ea835bfbe17b881175cc 0ad87afcb32c2777af86f6b629e1306aa883b653 --extensions cpp,h -- clang/test/CIR/idk.cpp clang/include/clang/CIR/MissingFeatures.h clang/lib/CIR/CodeGen/CIRGenCall.cpp clang/lib/CIR/CodeGen/CIRGenDecl.cpp clang/lib/CIR/CodeGen/CIRGenFunction.cpp clang/lib/CIR/CodeGen/CIRGenFunction.h
View the diff from clang-format here.
diff --git a/clang/lib/CIR/CodeGen/CIRGenDecl.cpp b/clang/lib/CIR/CodeGen/CIRGenDecl.cpp
index 708a87a138..cd978481a6 100644
--- a/clang/lib/CIR/CodeGen/CIRGenDecl.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenDecl.cpp
@@ -1267,7 +1267,7 @@ void CIRGenFunction::pushDestroyAndDeferDeactivation(
 /// Emit an alloca (or GlobalValue depending on target)
 /// for the specified parameter and set up LocalDeclMap.
 void CIRGenFunction::emitParmDecl(const VarDecl &varDecl, ParamValue arg,
-                                   unsigned argNo) {
+                                  unsigned argNo) {
   bool noDebugInfo = false;
   // FIXME: Why isn't ImplicitParamDecl a ParmVarDecl?
   assert((isa<ParmVarDecl>(varDecl) || isa<ImplicitParamDecl>(varDecl)) &&
diff --git a/clang/lib/CIR/CodeGen/CIRGenFunction.h b/clang/lib/CIR/CodeGen/CIRGenFunction.h
index e0a7c58a0e..0beb0b9333 100644
--- a/clang/lib/CIR/CodeGen/CIRGenFunction.h
+++ b/clang/lib/CIR/CodeGen/CIRGenFunction.h
@@ -975,12 +975,11 @@ public:
 
   void emitInvariantStart(CharUnits Size);
 
-
   /// emitFunctionProlog - Emit the target specific CIR code to load the
   /// arguments for the given function. This is also responsible for naming the
   /// MLIR function arguments.
   void emitFunctionProlog(const CIRGenFunctionInfo &functionInfo,
-                           cir::FuncOp fn, const FunctionArgList &args);
+                          cir::FuncOp fn, const FunctionArgList &args);
 
   /// Create a check for a function parameter that may potentially be
   /// declared as non-null.

github-actions[bot] avatar Dec 12 '24 06:12 github-actions[bot]