From: Mircea Trofin Date: Sat, 4 Feb 2023 03:41:07 +0000 (-0800) Subject: [mlgo] Disable mlgo tests when python version is 6 X-Git-Tag: upstream/17.0.6~18611 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79f7a5e02bf6612af9da4f96c47d60d370dd84d0;p=platform%2Fupstream%2Fllvm.git [mlgo] Disable mlgo tests when python version is 6 Supporting 3.6 requires a bit too much of a change in the mlgo test python scripts. --- diff --git a/llvm/lib/Analysis/models/interactive_host.py b/llvm/lib/Analysis/models/interactive_host.py index 7b168e8..79c74ac 100644 --- a/llvm/lib/Analysis/models/interactive_host.py +++ b/llvm/lib/Analysis/models/interactive_host.py @@ -17,7 +17,7 @@ import io import math import os import subprocess -from typing import BinaryIO, Callable, Union +from typing import Callable, List, Union def send(f: io.BufferedWriter, value: Union[int, float], @@ -33,9 +33,9 @@ def send(f: io.BufferedWriter, value: Union[int, float], def run_interactive(temp_rootname: str, - make_response: Callable[[list[log_reader.TensorValue]], + make_response: Callable[[List[log_reader.TensorValue]], Union[int, float]], - process_and_args: list[str]): + process_and_args: List[str]): """Host the compiler. Args: temp_rootname: the base file name from which to construct the 2 pipes for diff --git a/llvm/test/CodeGen/MLRegalloc/lit.local.cfg b/llvm/test/CodeGen/MLRegalloc/lit.local.cfg new file mode 100644 index 0000000..cc7f7b8 --- /dev/null +++ b/llvm/test/CodeGen/MLRegalloc/lit.local.cfg @@ -0,0 +1,3 @@ +import sys + +config.unsupported = sys.version_info.minor <= 6 diff --git a/llvm/test/Transforms/Inline/ML/lit.local.cfg b/llvm/test/Transforms/Inline/ML/lit.local.cfg new file mode 100644 index 0000000..cc7f7b8 --- /dev/null +++ b/llvm/test/Transforms/Inline/ML/lit.local.cfg @@ -0,0 +1,3 @@ +import sys + +config.unsupported = sys.version_info.minor <= 6