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

Mehdi Amini llvmlistbot at llvm.org
Wed Mar 13 19:33:21 PDT 2024


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

This can't belong the MLIRContext in any way: the context can be used in parallel for compiling to different targets.

This likely should be an attribute in the IR instead.

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


More information about the Mlir-commits mailing list