[Mlir-commits] [mlir] [mlir] Target Description and Cost Model in MLIR (PR #85141)

Niranjan Hasabnis llvmlistbot at llvm.org
Fri Mar 15 08:05:45 PDT 2024


================
@@ -240,6 +241,9 @@ class MLIRContext {
   /// (attributes, operations, types, etc.).
   llvm::hash_code getRegistryHash();
 
+  /// Get context-specific system description
+  SystemDesc &getSystemDesc();
----------------
nhasabni wrote:

Also, another point that we thought of was not to increase size of static data by keeping `SystemDesc` as a global object. But if that is not a concern, then conceptually, a global `SystemDesc` seems right design. With that, any target can query properties of any other device/target, without being restrictive of the execution environment.

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


More information about the Mlir-commits mailing list