================
@@ -78,16 +82,37 @@ class CIRGenModule : public CIRGenTypeCache {
 
   void emitTopLevelDecl(clang::Decl *decl);
 
+  /// Return the address of the given function. If funcType is non-null, then
+  /// this function will use the specified type if it has to create it.
+  // TODO: this is a bit weird as `GetAddr` given we give back a FuncOp?
----------------
andykaylor wrote:

Both the function name and the comment seem to be wrong. Both appear to be 
taken from the clang LLVM IR codegen. Should we fix this now? The LLVM IR 
codegen equivalent returns an `llvm::Constant*` which effectively an address. 
I'm not sure the same can be said for cir::FuncOp. On the other hand, renaming 
this will make it difficult to find for anyone porting code from the classic 
clang codegen.

https://github.com/llvm/llvm-project/pull/127674
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to