Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip -- emitFunctionProlog #1229

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

lanza
Copy link
Member

@lanza lanza commented Dec 12, 2024

No description provided.

Created using spr 1.3.5
Copy link

github-actions bot commented Dec 12, 2024

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

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.

Created using spr 1.3.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant