[Mlir-commits] [mlir] [mlir][EmitC]Expand the MemRefToEmitC pass - Lowering `AllocOp` (PR #148257)

Paul Kirth llvmlistbot at llvm.org
Fri Jul 25 10:07:31 PDT 2025


================
@@ -26,11 +27,18 @@ namespace mlir {
 using namespace mlir;
 
 namespace {
+constexpr const char *kAlignedAllocFunctionName = "aligned_alloc";
+constexpr const char *kMallocFunctionName = "malloc";
----------------
ilovepi wrote:

I see these duplicated in the ConvertAlloc class. IMO these should have a common source of truth (e.g., via a common header or an API). 

https://github.com/llvm/llvm-project/pull/148257


More information about the Mlir-commits mailing list