[Mlir-commits] [mlir] [MLIR][LLVM] Add CG Profile module flags support (PR #137115)

Christian Ulmann llvmlistbot at llvm.org
Thu Apr 24 03:51:44 PDT 2025


================
@@ -6,7 +6,12 @@ module {
                      #llvm.mlir.module_flag<max, "PIE Level", 2 : i32>,
                      #llvm.mlir.module_flag<max, "uwtable", 2 : i32>,
                      #llvm.mlir.module_flag<max, "frame-pointer", 1 : i32>,
-                     #llvm.mlir.module_flag<override, "probe-stack", "inline-asm">]
+                     #llvm.mlir.module_flag<override, "probe-stack", "inline-asm">,
+                     #llvm.mlir.module_flag<append, "CG Profile", [
+                      #llvm.cgprofile_entry<from = @from, to = @to, count = 222>,
+                      #llvm.cgprofile_entry<from = @from, to = @from, count = 222>,
+                      #llvm.cgprofile_entry<from = @to, to = @from, count = 222>
----------------
Dinistro wrote:

```suggestion
                       #llvm.cgprofile_entry<from = @from, to = @to, count = 222>,
                       #llvm.cgprofile_entry<from = @from, to = @from, count = 222>,
                       #llvm.cgprofile_entry<from = @to, to = @from, count = 222>
```

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


More information about the Mlir-commits mailing list