Skip to content

Commit

Permalink
Reland "[MLGO] Remove Python <3.8 from unsupported config (llvm#106132)"
Browse files Browse the repository at this point in the history
This reverts commit c3776c1.

This relands commit a959d70.

This was originally causing bot failures on Python version 3.8.
This relanding fixes that by adjusting the relevant type annotations
that are not supported in earlier versions.
  • Loading branch information
boomanaiden154 committed Aug 27, 2024
1 parent 8e901c2 commit 085587e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
3 changes: 2 additions & 1 deletion llvm/test/CodeGen/MLRegAlloc/Inputs/interactive_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
import interactive_host
import sys

from typing import Sequence

def main(args):
# this advisor just picks the first legal register to evict, which is
# identifiable by the "mask" feature
class Advisor:
to_return = False

def advice(self, tensor_values: list[log_reader.TensorValue]):
def advice(self, tensor_values: Sequence[log_reader.TensorValue]):
for tv in tensor_values:
if tv.spec().name != "mask":
continue
Expand Down
3 changes: 0 additions & 3 deletions llvm/test/CodeGen/MLRegAlloc/lit.local.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions llvm/test/Transforms/Inline/ML/lit.local.cfg

This file was deleted.

0 comments on commit 085587e

Please sign in to comment.