[PATCH] D134566: Make MLIR model URLs cache variables

Yi Kong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 23 14:22:32 PDT 2022


kongyi created this revision.
kongyi added reviewers: yundiqian, jacobhegna.
Herald added subscribers: bzcheeseman, rriddle, hiraditya.
Herald added a project: All.
kongyi requested review of this revision.
Herald added subscribers: llvm-commits, stephenneuendorffer.
Herald added a project: LLVM.

This allows us to directly use the models published on Github.


https://reviews.llvm.org/D134566

Files:
  llvm/lib/Analysis/CMakeLists.txt
  llvm/lib/CodeGen/CMakeLists.txt


Index: llvm/lib/CodeGen/CMakeLists.txt
===================================================================
--- llvm/lib/CodeGen/CMakeLists.txt
+++ llvm/lib/CodeGen/CMakeLists.txt
@@ -2,7 +2,7 @@
   include(TensorFlowCompile)
   set(LLVM_RAEVICT_MODEL_PATH_DEFAULT "models/regalloc-eviction")
 
-  set(LLVM_RAEVICT_MODEL_CURRENT_URL "<UNSPECIFIED>")
+  set(LLVM_RAEVICT_MODEL_CURRENT_URL "<UNSPECIFIED>" CACHE STRING "URL to download the LLVM register allocator eviction model")
 
   if (DEFINED LLVM_HAVE_TF_AOT)
     tf_find_and_compile(
Index: llvm/lib/Analysis/CMakeLists.txt
===================================================================
--- llvm/lib/Analysis/CMakeLists.txt
+++ llvm/lib/Analysis/CMakeLists.txt
@@ -2,7 +2,7 @@
   include(TensorFlowCompile)
   set(LLVM_INLINER_MODEL_PATH_DEFAULT "models/inliner-Oz")
 
-  set(LLVM_INLINER_MODEL_CURRENT_URL "<UNSPECIFIED>")
+  set(LLVM_INLINER_MODEL_CURRENT_URL "<UNSPECIFIED>" CACHE STRING "URL to download the LLVM inliner model")
 
   if (DEFINED LLVM_HAVE_TF_AOT)
     tf_find_and_compile(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134566.462590.patch
Type: text/x-patch
Size: 1054 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220923/e4e0ec22/attachment.bin>


More information about the llvm-commits mailing list