[mlir][target][nvvm] Perf by stage and store into properties (#126178)

Implement the feature about perf by stage(llvm-ir -> isa, isa->binary).

The results will be stored into the properties, then users can use them
after using GpuModuleToBinary Pass.
This commit is contained in:
Zichen Lu
2025-02-11 19:58:58 +08:00
committed by GitHub
parent 8cf4c5576d
commit 2a5050aa5e
3 changed files with 67 additions and 7 deletions

View File

@@ -82,5 +82,5 @@ module attributes {gpu.container_module} {
print(gpu.CompilationTarget(o.format))
# CHECK: b'//\n// Generated by LLVM NVPTX Back-End{{.*}}'
print(o.object)
# CHECK: {O = 2 : i32}
# CHECK: {LLVMIRToISATimeInMs = {{[0-9]+}} : i64, O = 2 : i32}
print(o.properties)