forked from OSchip/llvm-project
[MLGO] Don't run the 'release' mode tests in non-autogenerated cases
This commit is contained in:
parent
b6a7ae2c5d
commit
30c17e70a4
|
@ -19,6 +19,7 @@ llvm_canonicalize_cmake_booleans(
|
|||
LLVM_HAVE_TF_AOT
|
||||
LLVM_HAVE_TF_API
|
||||
LLVM_INLINER_MODEL_AUTOGENERATED
|
||||
LLVM_RAEVICT_MODEL_AUTOGENERATED
|
||||
LLVM_ENABLE_EXPENSIVE_CHECKS
|
||||
)
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
; REQUIRES: have_tf_api
|
||||
; REQUIRES: have_tf_aot
|
||||
; REQUIRES: llvm_raevict_model_autogenerated
|
||||
; REQUIRES: x86_64-linux
|
||||
;
|
||||
; Check that the same model (==the autogenerated one) produces the same output
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
; REQUIRES: have_tf_aot
|
||||
; REQUIRES: x86_64-linux
|
||||
; REQUIRES: llvm_raevict_model_autogenerated
|
||||
;
|
||||
; Check the code path for release mode is correctly taken. It is shared with
|
||||
; development mode, and we separately test the internals of that (logged
|
||||
|
|
|
@ -257,6 +257,9 @@ if config.have_tf_api:
|
|||
if config.llvm_inliner_model_autogenerated:
|
||||
config.available_features.add("llvm_inliner_model_autogenerated")
|
||||
|
||||
if config.llvm_raevict_model_autogenerated:
|
||||
config.available_features.add("llvm_raevict_model_autogenerated")
|
||||
|
||||
def have_cxx_shared_library():
|
||||
readobj_exe = lit.util.which('llvm-readobj', config.llvm_tools_dir)
|
||||
if not readobj_exe:
|
||||
|
|
|
@ -56,6 +56,7 @@ config.linked_bye_extension = @LLVM_BYE_LINK_INTO_TOOLS@
|
|||
config.have_tf_aot = @LLVM_HAVE_TF_AOT@
|
||||
config.have_tf_api = @LLVM_HAVE_TF_API@
|
||||
config.llvm_inliner_model_autogenerated = @LLVM_INLINER_MODEL_AUTOGENERATED@
|
||||
config.llvm_raevict_model_autogenerated = @LLVM_RAEVICT_MODEL_AUTOGENERATED@
|
||||
config.expensive_checks = @LLVM_ENABLE_EXPENSIVE_CHECKS@
|
||||
|
||||
# Support substitution of the tools_dir with user parameters. This is
|
||||
|
|
Loading…
Reference in New Issue