[Mlir-commits] [mlir] [mlir][gpu] Add a symbol table field to TargetOptions and adjust GpuM… (PR #65797)

Mehdi Amini llvmlistbot at llvm.org
Fri Sep 8 19:06:53 PDT 2023


================
@@ -100,6 +106,10 @@ class TargetOptions {
   /// Compilation process target representation.
   CompilationTarget compilationTarget;
 
+  /// Parent symbol table of all the GPU modules being serialized. By default
+  /// this member is null as it is not required by most targets.
+  SymbolTable *parentTable;
----------------
joker-eph wrote:

Can we make this a callback that would lazy initialize it on demand if the target wants it?
Then we don't need a pass option and we can remove this weird coupling where initializing the pass requires to know if the target wants a SymbolTable.

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


More information about the Mlir-commits mailing list