diff --git a/llvm/test/Analysis/CostModel/AArch64/lit.local.cfg b/llvm/test/Analysis/CostModel/AArch64/lit.local.cfg --- a/llvm/test/Analysis/CostModel/AArch64/lit.local.cfg +++ b/llvm/test/Analysis/CostModel/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Analysis/CostModel/AMDGPU/lit.local.cfg b/llvm/test/Analysis/CostModel/AMDGPU/lit.local.cfg --- a/llvm/test/Analysis/CostModel/AMDGPU/lit.local.cfg +++ b/llvm/test/Analysis/CostModel/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Analysis/CostModel/ARM/lit.local.cfg b/llvm/test/Analysis/CostModel/ARM/lit.local.cfg --- a/llvm/test/Analysis/CostModel/ARM/lit.local.cfg +++ b/llvm/test/Analysis/CostModel/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Analysis/CostModel/PowerPC/lit.local.cfg b/llvm/test/Analysis/CostModel/PowerPC/lit.local.cfg --- a/llvm/test/Analysis/CostModel/PowerPC/lit.local.cfg +++ b/llvm/test/Analysis/CostModel/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Analysis/CostModel/RISCV/lit.local.cfg b/llvm/test/Analysis/CostModel/RISCV/lit.local.cfg --- a/llvm/test/Analysis/CostModel/RISCV/lit.local.cfg +++ b/llvm/test/Analysis/CostModel/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Analysis/CostModel/SystemZ/lit.local.cfg b/llvm/test/Analysis/CostModel/SystemZ/lit.local.cfg --- a/llvm/test/Analysis/CostModel/SystemZ/lit.local.cfg +++ b/llvm/test/Analysis/CostModel/SystemZ/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'SystemZ' in config.root.targets: +if not "SystemZ" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Analysis/CostModel/X86/lit.local.cfg b/llvm/test/Analysis/CostModel/X86/lit.local.cfg --- a/llvm/test/Analysis/CostModel/X86/lit.local.cfg +++ b/llvm/test/Analysis/CostModel/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Analysis/Delinearization/lit.local.cfg b/llvm/test/Analysis/Delinearization/lit.local.cfg --- a/llvm/test/Analysis/Delinearization/lit.local.cfg +++ b/llvm/test/Analysis/Delinearization/lit.local.cfg @@ -1 +1 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] diff --git a/llvm/test/Analysis/DotMachineCFG/AMDGPU/lit.local.cfg b/llvm/test/Analysis/DotMachineCFG/AMDGPU/lit.local.cfg --- a/llvm/test/Analysis/DotMachineCFG/AMDGPU/lit.local.cfg +++ b/llvm/test/Analysis/DotMachineCFG/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Analysis/Lint/lit.local.cfg b/llvm/test/Analysis/Lint/lit.local.cfg --- a/llvm/test/Analysis/Lint/lit.local.cfg +++ b/llvm/test/Analysis/Lint/lit.local.cfg @@ -1 +1 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] diff --git a/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/lit.local.cfg b/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/lit.local.cfg --- a/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/lit.local.cfg +++ b/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Analysis/UniformityAnalysis/AMDGPU/lit.local.cfg b/llvm/test/Analysis/UniformityAnalysis/AMDGPU/lit.local.cfg --- a/llvm/test/Analysis/UniformityAnalysis/AMDGPU/lit.local.cfg +++ b/llvm/test/Analysis/UniformityAnalysis/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Analysis/UniformityAnalysis/NVPTX/lit.local.cfg b/llvm/test/Analysis/UniformityAnalysis/NVPTX/lit.local.cfg --- a/llvm/test/Analysis/UniformityAnalysis/NVPTX/lit.local.cfg +++ b/llvm/test/Analysis/UniformityAnalysis/NVPTX/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'NVPTX' in config.root.targets: +if not "NVPTX" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Bindings/OCaml/Utils/lit.local.cfg b/llvm/test/Bindings/OCaml/Utils/lit.local.cfg --- a/llvm/test/Bindings/OCaml/Utils/lit.local.cfg +++ b/llvm/test/Bindings/OCaml/Utils/lit.local.cfg @@ -1,2 +1,2 @@ # This is a directory for utility functions. No test here. -config.suffixes = ['.dummy'] +config.suffixes = [".dummy"] diff --git a/llvm/test/Bindings/OCaml/lit.local.cfg b/llvm/test/Bindings/OCaml/lit.local.cfg --- a/llvm/test/Bindings/OCaml/lit.local.cfg +++ b/llvm/test/Bindings/OCaml/lit.local.cfg @@ -1,4 +1,4 @@ -config.suffixes = ['.ml'] +config.suffixes = [".ml"] -if not 'ocaml' in config.root.llvm_bindings: +if not "ocaml" in config.root.llvm_bindings: config.unsupported = True diff --git a/llvm/test/CodeGen/AArch64/lit.local.cfg b/llvm/test/CodeGen/AArch64/lit.local.cfg --- a/llvm/test/CodeGen/AArch64/lit.local.cfg +++ b/llvm/test/CodeGen/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/AMDGPU/lit.local.cfg b/llvm/test/CodeGen/AMDGPU/lit.local.cfg --- a/llvm/test/CodeGen/AMDGPU/lit.local.cfg +++ b/llvm/test/CodeGen/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/ARC/lit.local.cfg b/llvm/test/CodeGen/ARC/lit.local.cfg --- a/llvm/test/CodeGen/ARC/lit.local.cfg +++ b/llvm/test/CodeGen/ARC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARC' in config.root.targets: +if not "ARC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/ARM/lit.local.cfg b/llvm/test/CodeGen/ARM/lit.local.cfg --- a/llvm/test/CodeGen/ARM/lit.local.cfg +++ b/llvm/test/CodeGen/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/AVR/lit.local.cfg b/llvm/test/CodeGen/AVR/lit.local.cfg --- a/llvm/test/CodeGen/AVR/lit.local.cfg +++ b/llvm/test/CodeGen/AVR/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AVR' in config.root.targets: +if not "AVR" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/BPF/lit.local.cfg b/llvm/test/CodeGen/BPF/lit.local.cfg --- a/llvm/test/CodeGen/BPF/lit.local.cfg +++ b/llvm/test/CodeGen/BPF/lit.local.cfg @@ -1,4 +1,4 @@ -if not 'BPF' in config.root.targets: +if not "BPF" in config.root.targets: config.unsupported = True -if 'system-aix' in config.available_features: +if "system-aix" in config.available_features: config.unsupported = True diff --git a/llvm/test/CodeGen/CSKY/fpu/lit.local.cfg b/llvm/test/CodeGen/CSKY/fpu/lit.local.cfg --- a/llvm/test/CodeGen/CSKY/fpu/lit.local.cfg +++ b/llvm/test/CodeGen/CSKY/fpu/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'CSKY' in config.root.targets: +if not "CSKY" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/CSKY/lit.local.cfg b/llvm/test/CodeGen/CSKY/lit.local.cfg --- a/llvm/test/CodeGen/CSKY/lit.local.cfg +++ b/llvm/test/CodeGen/CSKY/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'CSKY' in config.root.targets: +if not "CSKY" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/DirectX/lit.local.cfg b/llvm/test/CodeGen/DirectX/lit.local.cfg --- a/llvm/test/CodeGen/DirectX/lit.local.cfg +++ b/llvm/test/CodeGen/DirectX/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'DirectX' in config.root.targets: - config.unsupported = True +if not "DirectX" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/CodeGen/Hexagon/lit.local.cfg b/llvm/test/CodeGen/Hexagon/lit.local.cfg --- a/llvm/test/CodeGen/Hexagon/lit.local.cfg +++ b/llvm/test/CodeGen/Hexagon/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Hexagon' in config.root.targets: +if not "Hexagon" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/Lanai/lit.local.cfg b/llvm/test/CodeGen/Lanai/lit.local.cfg --- a/llvm/test/CodeGen/Lanai/lit.local.cfg +++ b/llvm/test/CodeGen/Lanai/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Lanai' in config.root.targets: +if not "Lanai" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/LoongArch/lit.local.cfg b/llvm/test/CodeGen/LoongArch/lit.local.cfg --- a/llvm/test/CodeGen/LoongArch/lit.local.cfg +++ b/llvm/test/CodeGen/LoongArch/lit.local.cfg @@ -1,13 +1,16 @@ import os -config.suffixes = ['.ll', '.mir', '.test', '.txt'] +config.suffixes = [".ll", ".mir", ".test", ".txt"] -extract_section_path = os.path.join(config.llvm_src_root, - 'utils', 'extract-section.py') +extract_section_path = os.path.join(config.llvm_src_root, "utils", "extract-section.py") -config.substitutions.append(('extract-section', - "'%s' %s %s" % (config.python_executable, - extract_section_path, '--bits-endian little'))) +config.substitutions.append( + ( + "extract-section", + "'%s' %s %s" + % (config.python_executable, extract_section_path, "--bits-endian little"), + ) +) -if not 'LoongArch' in config.root.targets: +if not "LoongArch" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/M68k/lit.local.cfg b/llvm/test/CodeGen/M68k/lit.local.cfg --- a/llvm/test/CodeGen/M68k/lit.local.cfg +++ b/llvm/test/CodeGen/M68k/lit.local.cfg @@ -1,14 +1,20 @@ import os -config.suffixes = ['.ll', '.mir', '.test', '.txt'] +config.suffixes = [".ll", ".mir", ".test", ".txt"] -extract_section_path = os.path.join(config.llvm_src_root, - 'utils', 'extract-section.py') +extract_section_path = os.path.join(config.llvm_src_root, "utils", "extract-section.py") -config.substitutions.append(('extract-section', - "'%s' %s %s" % (config.python_executable, - extract_section_path, '--byte-indicator --hex-width=2'))) +config.substitutions.append( + ( + "extract-section", + "'%s' %s %s" + % ( + config.python_executable, + extract_section_path, + "--byte-indicator --hex-width=2", + ), + ) +) -if not 'M68k' in config.root.targets: +if not "M68k" in config.root.targets: config.unsupported = True - diff --git a/llvm/test/CodeGen/MIR/AArch64/lit.local.cfg b/llvm/test/CodeGen/MIR/AArch64/lit.local.cfg --- a/llvm/test/CodeGen/MIR/AArch64/lit.local.cfg +++ b/llvm/test/CodeGen/MIR/AArch64/lit.local.cfg @@ -1,8 +1,8 @@ import re -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True # For now we don't test arm64-win32. -if re.search(r'cygwin|mingw32|win32|windows-gnu|windows-msvc', config.target_triple): +if re.search(r"cygwin|mingw32|win32|windows-gnu|windows-msvc", config.target_triple): config.unsupported = True diff --git a/llvm/test/CodeGen/MIR/AMDGPU/lit.local.cfg b/llvm/test/CodeGen/MIR/AMDGPU/lit.local.cfg --- a/llvm/test/CodeGen/MIR/AMDGPU/lit.local.cfg +++ b/llvm/test/CodeGen/MIR/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/MIR/ARM/lit.local.cfg b/llvm/test/CodeGen/MIR/ARM/lit.local.cfg --- a/llvm/test/CodeGen/MIR/ARM/lit.local.cfg +++ b/llvm/test/CodeGen/MIR/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/MIR/Generic/lit.local.cfg b/llvm/test/CodeGen/MIR/Generic/lit.local.cfg --- a/llvm/test/CodeGen/MIR/Generic/lit.local.cfg +++ b/llvm/test/CodeGen/MIR/Generic/lit.local.cfg @@ -1,2 +1,2 @@ -if 'native' not in config.available_features: +if "native" not in config.available_features: config.unsupported = True diff --git a/llvm/test/CodeGen/MIR/Hexagon/lit.local.cfg b/llvm/test/CodeGen/MIR/Hexagon/lit.local.cfg --- a/llvm/test/CodeGen/MIR/Hexagon/lit.local.cfg +++ b/llvm/test/CodeGen/MIR/Hexagon/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Hexagon' in config.root.targets: +if not "Hexagon" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/MIR/Mips/lit.local.cfg b/llvm/test/CodeGen/MIR/Mips/lit.local.cfg --- a/llvm/test/CodeGen/MIR/Mips/lit.local.cfg +++ b/llvm/test/CodeGen/MIR/Mips/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Mips' in config.root.targets: +if not "Mips" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/MIR/NVPTX/lit.local.cfg b/llvm/test/CodeGen/MIR/NVPTX/lit.local.cfg --- a/llvm/test/CodeGen/MIR/NVPTX/lit.local.cfg +++ b/llvm/test/CodeGen/MIR/NVPTX/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'NVPTX' in config.root.targets: +if not "NVPTX" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/MIR/PowerPC/lit.local.cfg b/llvm/test/CodeGen/MIR/PowerPC/lit.local.cfg --- a/llvm/test/CodeGen/MIR/PowerPC/lit.local.cfg +++ b/llvm/test/CodeGen/MIR/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/MIR/RISCV/lit.local.cfg b/llvm/test/CodeGen/MIR/RISCV/lit.local.cfg --- a/llvm/test/CodeGen/MIR/RISCV/lit.local.cfg +++ b/llvm/test/CodeGen/MIR/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/MIR/WebAssembly/lit.local.cfg b/llvm/test/CodeGen/MIR/WebAssembly/lit.local.cfg --- a/llvm/test/CodeGen/MIR/WebAssembly/lit.local.cfg +++ b/llvm/test/CodeGen/MIR/WebAssembly/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'WebAssembly' in config.root.targets: +if not "WebAssembly" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/MIR/X86/lit.local.cfg b/llvm/test/CodeGen/MIR/X86/lit.local.cfg --- a/llvm/test/CodeGen/MIR/X86/lit.local.cfg +++ b/llvm/test/CodeGen/MIR/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/MSP430/lit.local.cfg b/llvm/test/CodeGen/MSP430/lit.local.cfg --- a/llvm/test/CodeGen/MSP430/lit.local.cfg +++ b/llvm/test/CodeGen/MSP430/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'MSP430' in config.root.targets: +if not "MSP430" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/Mips/lit.local.cfg b/llvm/test/CodeGen/Mips/lit.local.cfg --- a/llvm/test/CodeGen/Mips/lit.local.cfg +++ b/llvm/test/CodeGen/Mips/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Mips' in config.root.targets: +if not "Mips" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/NVPTX/lit.local.cfg b/llvm/test/CodeGen/NVPTX/lit.local.cfg --- a/llvm/test/CodeGen/NVPTX/lit.local.cfg +++ b/llvm/test/CodeGen/NVPTX/lit.local.cfg @@ -1,3 +1,3 @@ -if not 'NVPTX' in config.root.targets: +if not "NVPTX" in config.root.targets: config.unsupported = True -config.suffixes.add('.py') +config.suffixes.add(".py") diff --git a/llvm/test/CodeGen/PowerPC/lit.local.cfg b/llvm/test/CodeGen/PowerPC/lit.local.cfg --- a/llvm/test/CodeGen/PowerPC/lit.local.cfg +++ b/llvm/test/CodeGen/PowerPC/lit.local.cfg @@ -1,4 +1,4 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True -config.suffixes.add('.py') +config.suffixes.add(".py") diff --git a/llvm/test/CodeGen/RISCV/lit.local.cfg b/llvm/test/CodeGen/RISCV/lit.local.cfg --- a/llvm/test/CodeGen/RISCV/lit.local.cfg +++ b/llvm/test/CodeGen/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/SPARC/lit.local.cfg b/llvm/test/CodeGen/SPARC/lit.local.cfg --- a/llvm/test/CodeGen/SPARC/lit.local.cfg +++ b/llvm/test/CodeGen/SPARC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Sparc' in config.root.targets: +if not "Sparc" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/SPIRV/lit.local.cfg b/llvm/test/CodeGen/SPIRV/lit.local.cfg --- a/llvm/test/CodeGen/SPIRV/lit.local.cfg +++ b/llvm/test/CodeGen/SPIRV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'SPIRV' in config.root.targets: +if not "SPIRV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/SystemZ/Large/lit.local.cfg b/llvm/test/CodeGen/SystemZ/Large/lit.local.cfg --- a/llvm/test/CodeGen/SystemZ/Large/lit.local.cfg +++ b/llvm/test/CodeGen/SystemZ/Large/lit.local.cfg @@ -1,9 +1,9 @@ -config.suffixes = [ '.ll', '.py' ] +config.suffixes = [".ll", ".py"] # These tests take on the order of seconds to run, so skip them unless # we're running long tests. -if 'long_tests' not in config.available_features: +if "long_tests" not in config.available_features: config.unsupported = True -if not 'SystemZ' in config.root.targets: +if not "SystemZ" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/SystemZ/lit.local.cfg b/llvm/test/CodeGen/SystemZ/lit.local.cfg --- a/llvm/test/CodeGen/SystemZ/lit.local.cfg +++ b/llvm/test/CodeGen/SystemZ/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'SystemZ' in config.root.targets: +if not "SystemZ" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/Thumb/lit.local.cfg b/llvm/test/CodeGen/Thumb/lit.local.cfg --- a/llvm/test/CodeGen/Thumb/lit.local.cfg +++ b/llvm/test/CodeGen/Thumb/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/Thumb2/lit.local.cfg b/llvm/test/CodeGen/Thumb2/lit.local.cfg --- a/llvm/test/CodeGen/Thumb2/lit.local.cfg +++ b/llvm/test/CodeGen/Thumb2/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/VE/VELIntrinsics/lit.local.cfg b/llvm/test/CodeGen/VE/VELIntrinsics/lit.local.cfg --- a/llvm/test/CodeGen/VE/VELIntrinsics/lit.local.cfg +++ b/llvm/test/CodeGen/VE/VELIntrinsics/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'VE' in config.root.targets: +if not "VE" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/VE/lit.local.cfg b/llvm/test/CodeGen/VE/lit.local.cfg --- a/llvm/test/CodeGen/VE/lit.local.cfg +++ b/llvm/test/CodeGen/VE/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'VE' in config.root.targets: +if not "VE" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/WebAssembly/lit.local.cfg b/llvm/test/CodeGen/WebAssembly/lit.local.cfg --- a/llvm/test/CodeGen/WebAssembly/lit.local.cfg +++ b/llvm/test/CodeGen/WebAssembly/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'WebAssembly' in config.root.targets: +if not "WebAssembly" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/WinCFGuard/lit.local.cfg b/llvm/test/CodeGen/WinCFGuard/lit.local.cfg --- a/llvm/test/CodeGen/WinCFGuard/lit.local.cfg +++ b/llvm/test/CodeGen/WinCFGuard/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/WinEH/lit.local.cfg b/llvm/test/CodeGen/WinEH/lit.local.cfg --- a/llvm/test/CodeGen/WinEH/lit.local.cfg +++ b/llvm/test/CodeGen/WinEH/lit.local.cfg @@ -4,8 +4,8 @@ # # It should be possible to remove this override once all the bots have cycled # cleanly. -config.suffixes = ['.ll', '.test', '.txt'] +config.suffixes = [".ll", ".test", ".txt"] # FIXME: Add Windows on ARM support to these tests. -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/X86/GC/lit.local.cfg b/llvm/test/CodeGen/X86/GC/lit.local.cfg --- a/llvm/test/CodeGen/X86/GC/lit.local.cfg +++ b/llvm/test/CodeGen/X86/GC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/X86/lit.local.cfg b/llvm/test/CodeGen/X86/lit.local.cfg --- a/llvm/test/CodeGen/X86/lit.local.cfg +++ b/llvm/test/CodeGen/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/CodeGen/XCore/lit.local.cfg b/llvm/test/CodeGen/XCore/lit.local.cfg --- a/llvm/test/CodeGen/XCore/lit.local.cfg +++ b/llvm/test/CodeGen/XCore/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'XCore' in config.root.targets: +if not "XCore" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/AArch64/lit.local.cfg b/llvm/test/DebugInfo/AArch64/lit.local.cfg --- a/llvm/test/DebugInfo/AArch64/lit.local.cfg +++ b/llvm/test/DebugInfo/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/AMDGPU/lit.local.cfg b/llvm/test/DebugInfo/AMDGPU/lit.local.cfg --- a/llvm/test/DebugInfo/AMDGPU/lit.local.cfg +++ b/llvm/test/DebugInfo/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/ARM/lit.local.cfg b/llvm/test/DebugInfo/ARM/lit.local.cfg --- a/llvm/test/DebugInfo/ARM/lit.local.cfg +++ b/llvm/test/DebugInfo/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/BPF/lit.local.cfg b/llvm/test/DebugInfo/BPF/lit.local.cfg --- a/llvm/test/DebugInfo/BPF/lit.local.cfg +++ b/llvm/test/DebugInfo/BPF/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'BPF' in config.root.targets: +if not "BPF" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/COFF/AArch64/lit.local.cfg b/llvm/test/DebugInfo/COFF/AArch64/lit.local.cfg --- a/llvm/test/DebugInfo/COFF/AArch64/lit.local.cfg +++ b/llvm/test/DebugInfo/COFF/AArch64/lit.local.cfg @@ -1,3 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True - diff --git a/llvm/test/DebugInfo/COFF/ARMNT/lit.local.cfg b/llvm/test/DebugInfo/COFF/ARMNT/lit.local.cfg --- a/llvm/test/DebugInfo/COFF/ARMNT/lit.local.cfg +++ b/llvm/test/DebugInfo/COFF/ARMNT/lit.local.cfg @@ -1,3 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True - diff --git a/llvm/test/DebugInfo/COFF/lit.local.cfg b/llvm/test/DebugInfo/COFF/lit.local.cfg --- a/llvm/test/DebugInfo/COFF/lit.local.cfg +++ b/llvm/test/DebugInfo/COFF/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/CSKY/lit.local.cfg b/llvm/test/DebugInfo/CSKY/lit.local.cfg --- a/llvm/test/DebugInfo/CSKY/lit.local.cfg +++ b/llvm/test/DebugInfo/CSKY/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'CSKY' in config.root.targets: +if not "CSKY" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/Lanai/lit.local.cfg b/llvm/test/DebugInfo/Lanai/lit.local.cfg --- a/llvm/test/DebugInfo/Lanai/lit.local.cfg +++ b/llvm/test/DebugInfo/Lanai/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Lanai' in config.root.targets: +if not "Lanai" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/MIR/AArch64/lit.local.cfg b/llvm/test/DebugInfo/MIR/AArch64/lit.local.cfg --- a/llvm/test/DebugInfo/MIR/AArch64/lit.local.cfg +++ b/llvm/test/DebugInfo/MIR/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/MIR/ARM/lit.local.cfg b/llvm/test/DebugInfo/MIR/ARM/lit.local.cfg --- a/llvm/test/DebugInfo/MIR/ARM/lit.local.cfg +++ b/llvm/test/DebugInfo/MIR/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/MIR/Hexagon/lit.local.cfg b/llvm/test/DebugInfo/MIR/Hexagon/lit.local.cfg --- a/llvm/test/DebugInfo/MIR/Hexagon/lit.local.cfg +++ b/llvm/test/DebugInfo/MIR/Hexagon/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Hexagon' in config.root.targets: +if not "Hexagon" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/MIR/InstrRef/lit.local.cfg b/llvm/test/DebugInfo/MIR/InstrRef/lit.local.cfg --- a/llvm/test/DebugInfo/MIR/InstrRef/lit.local.cfg +++ b/llvm/test/DebugInfo/MIR/InstrRef/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/MIR/Mips/lit.local.cfg b/llvm/test/DebugInfo/MIR/Mips/lit.local.cfg --- a/llvm/test/DebugInfo/MIR/Mips/lit.local.cfg +++ b/llvm/test/DebugInfo/MIR/Mips/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Mips' in config.root.targets: +if not "Mips" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/MIR/SystemZ/lit.local.cfg b/llvm/test/DebugInfo/MIR/SystemZ/lit.local.cfg --- a/llvm/test/DebugInfo/MIR/SystemZ/lit.local.cfg +++ b/llvm/test/DebugInfo/MIR/SystemZ/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'SystemZ' in config.root.targets: +if not "SystemZ" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/MIR/X86/lit.local.cfg b/llvm/test/DebugInfo/MIR/X86/lit.local.cfg --- a/llvm/test/DebugInfo/MIR/X86/lit.local.cfg +++ b/llvm/test/DebugInfo/MIR/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/MIR/lit.local.cfg b/llvm/test/DebugInfo/MIR/lit.local.cfg --- a/llvm/test/DebugInfo/MIR/lit.local.cfg +++ b/llvm/test/DebugInfo/MIR/lit.local.cfg @@ -1 +1 @@ -config.suffixes = ['.mir'] +config.suffixes = [".mir"] diff --git a/llvm/test/DebugInfo/MSP430/lit.local.cfg b/llvm/test/DebugInfo/MSP430/lit.local.cfg --- a/llvm/test/DebugInfo/MSP430/lit.local.cfg +++ b/llvm/test/DebugInfo/MSP430/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'MSP430' in config.root.targets: +if not "MSP430" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/Mips/lit.local.cfg b/llvm/test/DebugInfo/Mips/lit.local.cfg --- a/llvm/test/DebugInfo/Mips/lit.local.cfg +++ b/llvm/test/DebugInfo/Mips/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Mips' in config.root.targets: +if not "Mips" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/NVPTX/lit.local.cfg b/llvm/test/DebugInfo/NVPTX/lit.local.cfg --- a/llvm/test/DebugInfo/NVPTX/lit.local.cfg +++ b/llvm/test/DebugInfo/NVPTX/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'NVPTX' in config.root.targets: +if not "NVPTX" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/PowerPC/lit.local.cfg b/llvm/test/DebugInfo/PowerPC/lit.local.cfg --- a/llvm/test/DebugInfo/PowerPC/lit.local.cfg +++ b/llvm/test/DebugInfo/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/RISCV/lit.local.cfg b/llvm/test/DebugInfo/RISCV/lit.local.cfg --- a/llvm/test/DebugInfo/RISCV/lit.local.cfg +++ b/llvm/test/DebugInfo/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/Sparc/lit.local.cfg b/llvm/test/DebugInfo/Sparc/lit.local.cfg --- a/llvm/test/DebugInfo/Sparc/lit.local.cfg +++ b/llvm/test/DebugInfo/Sparc/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Sparc' in config.root.targets: +if not "Sparc" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/SystemZ/lit.local.cfg b/llvm/test/DebugInfo/SystemZ/lit.local.cfg --- a/llvm/test/DebugInfo/SystemZ/lit.local.cfg +++ b/llvm/test/DebugInfo/SystemZ/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'SystemZ' in config.root.targets: +if not "SystemZ" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/WebAssembly/lit.local.cfg b/llvm/test/DebugInfo/WebAssembly/lit.local.cfg --- a/llvm/test/DebugInfo/WebAssembly/lit.local.cfg +++ b/llvm/test/DebugInfo/WebAssembly/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'WebAssembly' in config.root.targets: +if not "WebAssembly" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/X86/lit.local.cfg b/llvm/test/DebugInfo/X86/lit.local.cfg --- a/llvm/test/DebugInfo/X86/lit.local.cfg +++ b/llvm/test/DebugInfo/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/XCOFF/lit.local.cfg b/llvm/test/DebugInfo/XCOFF/lit.local.cfg --- a/llvm/test/DebugInfo/XCOFF/lit.local.cfg +++ b/llvm/test/DebugInfo/XCOFF/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/XCore/lit.local.cfg b/llvm/test/DebugInfo/XCore/lit.local.cfg --- a/llvm/test/DebugInfo/XCore/lit.local.cfg +++ b/llvm/test/DebugInfo/XCore/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'XCore' in config.root.targets: +if not "XCore" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/assignment-tracking/AArch64/lit.local.cfg b/llvm/test/DebugInfo/assignment-tracking/AArch64/lit.local.cfg --- a/llvm/test/DebugInfo/assignment-tracking/AArch64/lit.local.cfg +++ b/llvm/test/DebugInfo/assignment-tracking/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/DebugInfo/assignment-tracking/X86/lit.local.cfg b/llvm/test/DebugInfo/assignment-tracking/X86/lit.local.cfg --- a/llvm/test/DebugInfo/assignment-tracking/X86/lit.local.cfg +++ b/llvm/test/DebugInfo/assignment-tracking/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Examples/lit.local.cfg b/llvm/test/Examples/lit.local.cfg --- a/llvm/test/Examples/lit.local.cfg +++ b/llvm/test/Examples/lit.local.cfg @@ -1,5 +1,5 @@ -if not config.build_examples or sys.platform in ['win32']: - config.unsupported = True +if not config.build_examples or sys.platform in ["win32"]: + config.unsupported = True # Test discovery should ignore subdirectories that contain test inputs. -config.excludes = ['Inputs'] +config.excludes = ["Inputs"] diff --git a/llvm/test/ExecutionEngine/JITLink/AArch32/lit.local.cfg b/llvm/test/ExecutionEngine/JITLink/AArch32/lit.local.cfg --- a/llvm/test/ExecutionEngine/JITLink/AArch32/lit.local.cfg +++ b/llvm/test/ExecutionEngine/JITLink/AArch32/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: - config.unsupported = True +if not "ARM" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/ExecutionEngine/JITLink/AArch64/lit.local.cfg b/llvm/test/ExecutionEngine/JITLink/AArch64/lit.local.cfg --- a/llvm/test/ExecutionEngine/JITLink/AArch64/lit.local.cfg +++ b/llvm/test/ExecutionEngine/JITLink/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: - config.unsupported = True +if not "AArch64" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/ExecutionEngine/JITLink/LoongArch/lit.local.cfg b/llvm/test/ExecutionEngine/JITLink/LoongArch/lit.local.cfg --- a/llvm/test/ExecutionEngine/JITLink/LoongArch/lit.local.cfg +++ b/llvm/test/ExecutionEngine/JITLink/LoongArch/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'LoongArch' in config.root.targets: - config.unsupported = True +if not "LoongArch" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/ExecutionEngine/JITLink/RISCV/lit.local.cfg b/llvm/test/ExecutionEngine/JITLink/RISCV/lit.local.cfg --- a/llvm/test/ExecutionEngine/JITLink/RISCV/lit.local.cfg +++ b/llvm/test/ExecutionEngine/JITLink/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/ExecutionEngine/JITLink/i386/lit.local.cfg b/llvm/test/ExecutionEngine/JITLink/i386/lit.local.cfg --- a/llvm/test/ExecutionEngine/JITLink/i386/lit.local.cfg +++ b/llvm/test/ExecutionEngine/JITLink/i386/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: - config.unsupported = True +if not "X86" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/ExecutionEngine/JITLink/x86-64/lit.local.cfg b/llvm/test/ExecutionEngine/JITLink/x86-64/lit.local.cfg --- a/llvm/test/ExecutionEngine/JITLink/x86-64/lit.local.cfg +++ b/llvm/test/ExecutionEngine/JITLink/x86-64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/ExecutionEngine/MCJIT/lit.local.cfg b/llvm/test/ExecutionEngine/MCJIT/lit.local.cfg --- a/llvm/test/ExecutionEngine/MCJIT/lit.local.cfg +++ b/llvm/test/ExecutionEngine/MCJIT/lit.local.cfg @@ -1,27 +1,43 @@ root = config.root targets = root.targets -if ('X86' in targets) | ('AArch64' in targets) | ('ARM' in targets) | \ - ('Mips' in targets) | ('PowerPC' in targets) | ('SystemZ' in targets): +if ( + ("X86" in targets) + | ("AArch64" in targets) + | ("ARM" in targets) + | ("Mips" in targets) + | ("PowerPC" in targets) + | ("SystemZ" in targets) +): config.unsupported = False else: config.unsupported = True # FIXME: autoconf and cmake produce different arch names. We should normalize # them before getting here. -if root.host_arch not in ['i386', 'x86', 'x86_64', 'AMD64', - 'AArch64', 'ARM', 'Mips', - 'PowerPC', 'ppc64', 'ppc64le', 'SystemZ']: +if root.host_arch not in [ + "i386", + "x86", + "x86_64", + "AMD64", + "AArch64", + "ARM", + "Mips", + "PowerPC", + "ppc64", + "ppc64le", + "SystemZ", +]: config.unsupported = True -if 'armv7' in root.host_arch: +if "armv7" in root.host_arch: config.unsupported = False -if 'i386-apple-darwin' in root.target_triple: +if "i386-apple-darwin" in root.target_triple: config.unsupported = True -if 'powerpc' in root.target_triple and not 'powerpc64' in root.target_triple: +if "powerpc" in root.target_triple and not "powerpc64" in root.target_triple: config.unsupported = True # ExecutionEngine tests are not expected to pass in a cross-compilation setup. -if 'native' not in config.available_features: +if "native" not in config.available_features: config.unsupported = True diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/lit.local.cfg b/llvm/test/ExecutionEngine/MCJIT/remote/lit.local.cfg --- a/llvm/test/ExecutionEngine/MCJIT/remote/lit.local.cfg +++ b/llvm/test/ExecutionEngine/MCJIT/remote/lit.local.cfg @@ -1,8 +1,7 @@ -if 'armv4' in config.root.target_triple or \ - 'armv5' in config.root.target_triple: +if "armv4" in config.root.target_triple or "armv5" in config.root.target_triple: config.unsupported = True # This is temporary, until Remote MCJIT works on ARM # See http://llvm.org/bugs/show_bug.cgi?id=18057 -#if 'armv7' in config.root.target_triple: +# if 'armv7' in config.root.target_triple: # config.unsupported = True diff --git a/llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg b/llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg --- a/llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg +++ b/llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg @@ -1,10 +1,18 @@ import sys -if config.root.host_arch not in ['i386', 'x86', 'x86_64', 'AMD64', - 'mips', 'mipsel', 'mips64', 'mips64el', - 'loongarch64']: +if config.root.host_arch not in [ + "i386", + "x86", + "x86_64", + "AMD64", + "mips", + "mipsel", + "mips64", + "mips64el", + "loongarch64", +]: config.unsupported = True # FIXME: These tests don't pass with the COFF rtld. -if sys.platform == 'win32': +if sys.platform == "win32": config.unsupported = True diff --git a/llvm/test/ExecutionEngine/RuntimeDyld/AArch64/lit.local.cfg b/llvm/test/ExecutionEngine/RuntimeDyld/AArch64/lit.local.cfg --- a/llvm/test/ExecutionEngine/RuntimeDyld/AArch64/lit.local.cfg +++ b/llvm/test/ExecutionEngine/RuntimeDyld/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/ExecutionEngine/RuntimeDyld/ARM/lit.local.cfg b/llvm/test/ExecutionEngine/RuntimeDyld/ARM/lit.local.cfg --- a/llvm/test/ExecutionEngine/RuntimeDyld/ARM/lit.local.cfg +++ b/llvm/test/ExecutionEngine/RuntimeDyld/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/ExecutionEngine/RuntimeDyld/BPF/lit.local.cfg b/llvm/test/ExecutionEngine/RuntimeDyld/BPF/lit.local.cfg --- a/llvm/test/ExecutionEngine/RuntimeDyld/BPF/lit.local.cfg +++ b/llvm/test/ExecutionEngine/RuntimeDyld/BPF/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'BPF' in config.root.targets: +if not "BPF" in config.root.targets: config.unsupported = True diff --git a/llvm/test/ExecutionEngine/RuntimeDyld/Mips/lit.local.cfg b/llvm/test/ExecutionEngine/RuntimeDyld/Mips/lit.local.cfg --- a/llvm/test/ExecutionEngine/RuntimeDyld/Mips/lit.local.cfg +++ b/llvm/test/ExecutionEngine/RuntimeDyld/Mips/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Mips' in config.root.targets: +if not "Mips" in config.root.targets: config.unsupported = True diff --git a/llvm/test/ExecutionEngine/RuntimeDyld/PowerPC/lit.local.cfg b/llvm/test/ExecutionEngine/RuntimeDyld/PowerPC/lit.local.cfg --- a/llvm/test/ExecutionEngine/RuntimeDyld/PowerPC/lit.local.cfg +++ b/llvm/test/ExecutionEngine/RuntimeDyld/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/ExecutionEngine/RuntimeDyld/SystemZ/lit.local.cfg b/llvm/test/ExecutionEngine/RuntimeDyld/SystemZ/lit.local.cfg --- a/llvm/test/ExecutionEngine/RuntimeDyld/SystemZ/lit.local.cfg +++ b/llvm/test/ExecutionEngine/RuntimeDyld/SystemZ/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'SystemZ' in config.root.targets: +if not "SystemZ" in config.root.targets: config.unsupported = True diff --git a/llvm/test/ExecutionEngine/RuntimeDyld/X86/lit.local.cfg b/llvm/test/ExecutionEngine/RuntimeDyld/X86/lit.local.cfg --- a/llvm/test/ExecutionEngine/RuntimeDyld/X86/lit.local.cfg +++ b/llvm/test/ExecutionEngine/RuntimeDyld/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/ExecutionEngine/lit.local.cfg b/llvm/test/ExecutionEngine/lit.local.cfg --- a/llvm/test/ExecutionEngine/lit.local.cfg +++ b/llvm/test/ExecutionEngine/lit.local.cfg @@ -1,6 +1,6 @@ -if config.root.native_target in ['Sparc', 'PowerPC', 'SystemZ', 'Hexagon', 'RISCV']: +if config.root.native_target in ["Sparc", "PowerPC", "SystemZ", "Hexagon", "RISCV"]: config.unsupported = True # ExecutionEngine tests are not expected to pass in a cross-compilation setup. -if 'native' not in config.available_features: +if "native" not in config.available_features: config.unsupported = True diff --git a/llvm/test/FileCheck/lit.local.cfg b/llvm/test/FileCheck/lit.local.cfg --- a/llvm/test/FileCheck/lit.local.cfg +++ b/llvm/test/FileCheck/lit.local.cfg @@ -52,5 +52,4 @@ # debugging tests. If a developer sets values that affect FileCheck's exit # status (e.g., FILECHECK_OPTS=-strict-whitespace), he shouldn't be surprised # that test results throughout all test suites are affected. -config.substitutions.append(('%ProtectFileCheckOutput', - 'env -u FILECHECK_OPTS')) +config.substitutions.append(("%ProtectFileCheckOutput", "env -u FILECHECK_OPTS")) diff --git a/llvm/test/Instrumentation/AddressSanitizer/AMDGPU/lit.local.cfg b/llvm/test/Instrumentation/AddressSanitizer/AMDGPU/lit.local.cfg --- a/llvm/test/Instrumentation/AddressSanitizer/AMDGPU/lit.local.cfg +++ b/llvm/test/Instrumentation/AddressSanitizer/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Instrumentation/AddressSanitizer/X86/lit.local.cfg b/llvm/test/Instrumentation/AddressSanitizer/X86/lit.local.cfg --- a/llvm/test/Instrumentation/AddressSanitizer/X86/lit.local.cfg +++ b/llvm/test/Instrumentation/AddressSanitizer/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Instrumentation/InstrProfiling/X86/lit.local.cfg b/llvm/test/Instrumentation/InstrProfiling/X86/lit.local.cfg --- a/llvm/test/Instrumentation/InstrProfiling/X86/lit.local.cfg +++ b/llvm/test/Instrumentation/InstrProfiling/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/JitListener/lit.local.cfg b/llvm/test/JitListener/lit.local.cfg --- a/llvm/test/JitListener/lit.local.cfg +++ b/llvm/test/JitListener/lit.local.cfg @@ -1,3 +1,3 @@ if not config.root.llvm_use_intel_jitevents: config.unsupported = True -config.environment['INTEL_JIT_BACKWARD_COMPATIBILITY'] = '1' +config.environment["INTEL_JIT_BACKWARD_COMPATIBILITY"] = "1" diff --git a/llvm/test/LTO/AArch64/lit.local.cfg b/llvm/test/LTO/AArch64/lit.local.cfg --- a/llvm/test/LTO/AArch64/lit.local.cfg +++ b/llvm/test/LTO/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: - config.unsupported = True +if not "AArch64" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/LTO/ARM/lit.local.cfg b/llvm/test/LTO/ARM/lit.local.cfg --- a/llvm/test/LTO/ARM/lit.local.cfg +++ b/llvm/test/LTO/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: - config.unsupported = True +if not "ARM" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/LTO/PowerPC/lit.local.cfg b/llvm/test/LTO/PowerPC/lit.local.cfg --- a/llvm/test/LTO/PowerPC/lit.local.cfg +++ b/llvm/test/LTO/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: - config.unsupported = True +if not "PowerPC" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/LTO/Resolution/X86/lit.local.cfg b/llvm/test/LTO/Resolution/X86/lit.local.cfg --- a/llvm/test/LTO/Resolution/X86/lit.local.cfg +++ b/llvm/test/LTO/Resolution/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: - config.unsupported = True +if not "X86" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/LTO/X86/lit.local.cfg b/llvm/test/LTO/X86/lit.local.cfg --- a/llvm/test/LTO/X86/lit.local.cfg +++ b/llvm/test/LTO/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: - config.unsupported = True +if not "X86" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/MC/AArch64/lit.local.cfg b/llvm/test/MC/AArch64/lit.local.cfg --- a/llvm/test/MC/AArch64/lit.local.cfg +++ b/llvm/test/MC/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if 'AArch64' not in config.root.targets: +if "AArch64" not in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/AMDGPU/lit.local.cfg b/llvm/test/MC/AMDGPU/lit.local.cfg --- a/llvm/test/MC/AMDGPU/lit.local.cfg +++ b/llvm/test/MC/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/AMDGPU/regression/lit.local.cfg b/llvm/test/MC/AMDGPU/regression/lit.local.cfg --- a/llvm/test/MC/AMDGPU/regression/lit.local.cfg +++ b/llvm/test/MC/AMDGPU/regression/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/ARM/AlignedBundling/lit.local.cfg b/llvm/test/MC/ARM/AlignedBundling/lit.local.cfg --- a/llvm/test/MC/ARM/AlignedBundling/lit.local.cfg +++ b/llvm/test/MC/ARM/AlignedBundling/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/ARM/lit.local.cfg b/llvm/test/MC/ARM/lit.local.cfg --- a/llvm/test/MC/ARM/lit.local.cfg +++ b/llvm/test/MC/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/AVR/lit.local.cfg b/llvm/test/MC/AVR/lit.local.cfg --- a/llvm/test/MC/AVR/lit.local.cfg +++ b/llvm/test/MC/AVR/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AVR' in config.root.targets: +if not "AVR" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/AsmParser/AArch64/lit.local.cfg b/llvm/test/MC/AsmParser/AArch64/lit.local.cfg --- a/llvm/test/MC/AsmParser/AArch64/lit.local.cfg +++ b/llvm/test/MC/AsmParser/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if 'AArch64' not in config.root.targets: +if "AArch64" not in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/AsmParser/lit.local.cfg b/llvm/test/MC/AsmParser/lit.local.cfg --- a/llvm/test/MC/AsmParser/lit.local.cfg +++ b/llvm/test/MC/AsmParser/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/BPF/lit.local.cfg b/llvm/test/MC/BPF/lit.local.cfg --- a/llvm/test/MC/BPF/lit.local.cfg +++ b/llvm/test/MC/BPF/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'BPF' in config.root.targets: +if not "BPF" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/COFF/ARM/lit.local.cfg b/llvm/test/MC/COFF/ARM/lit.local.cfg --- a/llvm/test/MC/COFF/ARM/lit.local.cfg +++ b/llvm/test/MC/COFF/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/COFF/lit.local.cfg b/llvm/test/MC/COFF/lit.local.cfg --- a/llvm/test/MC/COFF/lit.local.cfg +++ b/llvm/test/MC/COFF/lit.local.cfg @@ -1,4 +1,4 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True -config.suffixes.add('.py') +config.suffixes.add(".py") diff --git a/llvm/test/MC/CSKY/lit.local.cfg b/llvm/test/MC/CSKY/lit.local.cfg --- a/llvm/test/MC/CSKY/lit.local.cfg +++ b/llvm/test/MC/CSKY/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'CSKY' in config.root.targets: +if not "CSKY" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Disassembler/AArch64/lit.local.cfg b/llvm/test/MC/Disassembler/AArch64/lit.local.cfg --- a/llvm/test/MC/Disassembler/AArch64/lit.local.cfg +++ b/llvm/test/MC/Disassembler/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if 'AArch64' not in config.root.targets: +if "AArch64" not in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Disassembler/AMDGPU/lit.local.cfg b/llvm/test/MC/Disassembler/AMDGPU/lit.local.cfg --- a/llvm/test/MC/Disassembler/AMDGPU/lit.local.cfg +++ b/llvm/test/MC/Disassembler/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Disassembler/ARC/lit.local.cfg b/llvm/test/MC/Disassembler/ARC/lit.local.cfg --- a/llvm/test/MC/Disassembler/ARC/lit.local.cfg +++ b/llvm/test/MC/Disassembler/ARC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARC' in config.root.targets: +if not "ARC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Disassembler/ARM/lit.local.cfg b/llvm/test/MC/Disassembler/ARM/lit.local.cfg --- a/llvm/test/MC/Disassembler/ARM/lit.local.cfg +++ b/llvm/test/MC/Disassembler/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Disassembler/Hexagon/lit.local.cfg b/llvm/test/MC/Disassembler/Hexagon/lit.local.cfg --- a/llvm/test/MC/Disassembler/Hexagon/lit.local.cfg +++ b/llvm/test/MC/Disassembler/Hexagon/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Hexagon' in config.root.targets: +if not "Hexagon" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Disassembler/Lanai/lit.local.cfg b/llvm/test/MC/Disassembler/Lanai/lit.local.cfg --- a/llvm/test/MC/Disassembler/Lanai/lit.local.cfg +++ b/llvm/test/MC/Disassembler/Lanai/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Lanai' in config.root.targets: +if not "Lanai" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Disassembler/M68k/lit.local.cfg b/llvm/test/MC/Disassembler/M68k/lit.local.cfg --- a/llvm/test/MC/Disassembler/M68k/lit.local.cfg +++ b/llvm/test/MC/Disassembler/M68k/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'M68k' in config.root.targets: +if not "M68k" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Disassembler/MSP430/lit.local.cfg b/llvm/test/MC/Disassembler/MSP430/lit.local.cfg --- a/llvm/test/MC/Disassembler/MSP430/lit.local.cfg +++ b/llvm/test/MC/Disassembler/MSP430/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'MSP430' in config.root.targets: +if not "MSP430" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Disassembler/Mips/lit.local.cfg b/llvm/test/MC/Disassembler/Mips/lit.local.cfg --- a/llvm/test/MC/Disassembler/Mips/lit.local.cfg +++ b/llvm/test/MC/Disassembler/Mips/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Mips' in config.root.targets: +if not "Mips" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Disassembler/PowerPC/lit.local.cfg b/llvm/test/MC/Disassembler/PowerPC/lit.local.cfg --- a/llvm/test/MC/Disassembler/PowerPC/lit.local.cfg +++ b/llvm/test/MC/Disassembler/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Disassembler/RISCV/lit.local.cfg b/llvm/test/MC/Disassembler/RISCV/lit.local.cfg --- a/llvm/test/MC/Disassembler/RISCV/lit.local.cfg +++ b/llvm/test/MC/Disassembler/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Disassembler/Sparc/lit.local.cfg b/llvm/test/MC/Disassembler/Sparc/lit.local.cfg --- a/llvm/test/MC/Disassembler/Sparc/lit.local.cfg +++ b/llvm/test/MC/Disassembler/Sparc/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Sparc' in config.root.targets: +if not "Sparc" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Disassembler/SystemZ/lit.local.cfg b/llvm/test/MC/Disassembler/SystemZ/lit.local.cfg --- a/llvm/test/MC/Disassembler/SystemZ/lit.local.cfg +++ b/llvm/test/MC/Disassembler/SystemZ/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'SystemZ' in config.root.targets: +if not "SystemZ" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Disassembler/WebAssembly/lit.local.cfg b/llvm/test/MC/Disassembler/WebAssembly/lit.local.cfg --- a/llvm/test/MC/Disassembler/WebAssembly/lit.local.cfg +++ b/llvm/test/MC/Disassembler/WebAssembly/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'WebAssembly' in config.root.targets: +if not "WebAssembly" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Disassembler/X86/lit.local.cfg b/llvm/test/MC/Disassembler/X86/lit.local.cfg --- a/llvm/test/MC/Disassembler/X86/lit.local.cfg +++ b/llvm/test/MC/Disassembler/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Disassembler/XCore/lit.local.cfg b/llvm/test/MC/Disassembler/XCore/lit.local.cfg --- a/llvm/test/MC/Disassembler/XCore/lit.local.cfg +++ b/llvm/test/MC/Disassembler/XCore/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'XCore' in config.root.targets: +if not "XCore" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/ELF/AArch64/lit.local.cfg b/llvm/test/MC/ELF/AArch64/lit.local.cfg --- a/llvm/test/MC/ELF/AArch64/lit.local.cfg +++ b/llvm/test/MC/ELF/AArch64/lit.local.cfg @@ -1,3 +1,3 @@ # We have to reset config.unsupported here because the parent directory is # predicated on 'X86'. -config.unsupported = 'AArch64' not in config.root.targets +config.unsupported = "AArch64" not in config.root.targets diff --git a/llvm/test/MC/ELF/AMDGPU/lit.local.cfg b/llvm/test/MC/ELF/AMDGPU/lit.local.cfg --- a/llvm/test/MC/ELF/AMDGPU/lit.local.cfg +++ b/llvm/test/MC/ELF/AMDGPU/lit.local.cfg @@ -1,3 +1,3 @@ # We have to reset config.unsupported here because the parent directory is # predicated on 'X86'. -config.unsupported = 'AMDGPU' not in config.root.targets +config.unsupported = "AMDGPU" not in config.root.targets diff --git a/llvm/test/MC/ELF/ARM/lit.local.cfg b/llvm/test/MC/ELF/ARM/lit.local.cfg --- a/llvm/test/MC/ELF/ARM/lit.local.cfg +++ b/llvm/test/MC/ELF/ARM/lit.local.cfg @@ -1,3 +1,3 @@ # We have to reset config.unsupported here because the parent directory is # predicated on 'X86'. -config.unsupported = not 'ARM' in config.root.targets +config.unsupported = not "ARM" in config.root.targets diff --git a/llvm/test/MC/ELF/RISCV/lit.local.cfg b/llvm/test/MC/ELF/RISCV/lit.local.cfg --- a/llvm/test/MC/ELF/RISCV/lit.local.cfg +++ b/llvm/test/MC/ELF/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if 'RISCV' not in config.root.targets: +if "RISCV" not in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/ELF/lit.local.cfg b/llvm/test/MC/ELF/lit.local.cfg --- a/llvm/test/MC/ELF/lit.local.cfg +++ b/llvm/test/MC/ELF/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Hexagon/lit.local.cfg b/llvm/test/MC/Hexagon/lit.local.cfg --- a/llvm/test/MC/Hexagon/lit.local.cfg +++ b/llvm/test/MC/Hexagon/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Hexagon' in config.root.targets: +if not "Hexagon" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Lanai/lit.local.cfg b/llvm/test/MC/Lanai/lit.local.cfg --- a/llvm/test/MC/Lanai/lit.local.cfg +++ b/llvm/test/MC/Lanai/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Lanai' in config.root.targets: +if not "Lanai" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/LoongArch/lit.local.cfg b/llvm/test/MC/LoongArch/lit.local.cfg --- a/llvm/test/MC/LoongArch/lit.local.cfg +++ b/llvm/test/MC/LoongArch/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'LoongArch' in config.root.targets: +if not "LoongArch" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/M68k/lit.local.cfg b/llvm/test/MC/M68k/lit.local.cfg --- a/llvm/test/MC/M68k/lit.local.cfg +++ b/llvm/test/MC/M68k/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'M68k' in config.root.targets: +if not "M68k" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/MSP430/lit.local.cfg b/llvm/test/MC/MSP430/lit.local.cfg --- a/llvm/test/MC/MSP430/lit.local.cfg +++ b/llvm/test/MC/MSP430/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'MSP430' in config.root.targets: +if not "MSP430" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/MachO/AArch64/lit.local.cfg b/llvm/test/MC/MachO/AArch64/lit.local.cfg --- a/llvm/test/MC/MachO/AArch64/lit.local.cfg +++ b/llvm/test/MC/MachO/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/MachO/ARM/lit.local.cfg b/llvm/test/MC/MachO/ARM/lit.local.cfg --- a/llvm/test/MC/MachO/ARM/lit.local.cfg +++ b/llvm/test/MC/MachO/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/MachO/lit.local.cfg b/llvm/test/MC/MachO/lit.local.cfg --- a/llvm/test/MC/MachO/lit.local.cfg +++ b/llvm/test/MC/MachO/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Mips/lit.local.cfg b/llvm/test/MC/Mips/lit.local.cfg --- a/llvm/test/MC/Mips/lit.local.cfg +++ b/llvm/test/MC/Mips/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Mips' in config.root.targets: +if not "Mips" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/PowerPC/lit.local.cfg b/llvm/test/MC/PowerPC/lit.local.cfg --- a/llvm/test/MC/PowerPC/lit.local.cfg +++ b/llvm/test/MC/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/RISCV/lit.local.cfg b/llvm/test/MC/RISCV/lit.local.cfg --- a/llvm/test/MC/RISCV/lit.local.cfg +++ b/llvm/test/MC/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Sparc/lit.local.cfg b/llvm/test/MC/Sparc/lit.local.cfg --- a/llvm/test/MC/Sparc/lit.local.cfg +++ b/llvm/test/MC/Sparc/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Sparc' in config.root.targets: +if not "Sparc" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/SystemZ/lit.local.cfg b/llvm/test/MC/SystemZ/lit.local.cfg --- a/llvm/test/MC/SystemZ/lit.local.cfg +++ b/llvm/test/MC/SystemZ/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'SystemZ' in config.root.targets: +if not "SystemZ" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/VE/lit.local.cfg b/llvm/test/MC/VE/lit.local.cfg --- a/llvm/test/MC/VE/lit.local.cfg +++ b/llvm/test/MC/VE/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'VE' in config.root.targets: +if not "VE" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/WebAssembly/lit.local.cfg b/llvm/test/MC/WebAssembly/lit.local.cfg --- a/llvm/test/MC/WebAssembly/lit.local.cfg +++ b/llvm/test/MC/WebAssembly/lit.local.cfg @@ -1,2 +1,2 @@ -if 'WebAssembly' not in config.root.targets: +if "WebAssembly" not in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/X86/AlignedBundling/lit.local.cfg b/llvm/test/MC/X86/AlignedBundling/lit.local.cfg --- a/llvm/test/MC/X86/AlignedBundling/lit.local.cfg +++ b/llvm/test/MC/X86/AlignedBundling/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/X86/lit.local.cfg b/llvm/test/MC/X86/lit.local.cfg --- a/llvm/test/MC/X86/lit.local.cfg +++ b/llvm/test/MC/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/XCOFF/lit.local.cfg b/llvm/test/MC/XCOFF/lit.local.cfg --- a/llvm/test/MC/XCOFF/lit.local.cfg +++ b/llvm/test/MC/XCOFF/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/MC/Xtensa/lit.local.cfg b/llvm/test/MC/Xtensa/lit.local.cfg --- a/llvm/test/MC/Xtensa/lit.local.cfg +++ b/llvm/test/MC/Xtensa/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Xtensa' in config.root.targets: +if not "Xtensa" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Object/AMDGPU/lit.local.cfg b/llvm/test/Object/AMDGPU/lit.local.cfg --- a/llvm/test/Object/AMDGPU/lit.local.cfg +++ b/llvm/test/Object/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Object/ARM/lit.local.cfg b/llvm/test/Object/ARM/lit.local.cfg --- a/llvm/test/Object/ARM/lit.local.cfg +++ b/llvm/test/Object/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Object/BPF/lit.local.cfg b/llvm/test/Object/BPF/lit.local.cfg --- a/llvm/test/Object/BPF/lit.local.cfg +++ b/llvm/test/Object/BPF/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'BPF' in config.root.targets: +if not "BPF" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Object/Lanai/lit.local.cfg b/llvm/test/Object/Lanai/lit.local.cfg --- a/llvm/test/Object/Lanai/lit.local.cfg +++ b/llvm/test/Object/Lanai/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Lanai' in config.root.targets: +if not "Lanai" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Object/Mips/lit.local.cfg b/llvm/test/Object/Mips/lit.local.cfg --- a/llvm/test/Object/Mips/lit.local.cfg +++ b/llvm/test/Object/Mips/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Mips' in config.root.targets: +if not "Mips" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Object/RISCV/lit.local.cfg b/llvm/test/Object/RISCV/lit.local.cfg --- a/llvm/test/Object/RISCV/lit.local.cfg +++ b/llvm/test/Object/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Object/X86/lit.local.cfg b/llvm/test/Object/X86/lit.local.cfg --- a/llvm/test/Object/X86/lit.local.cfg +++ b/llvm/test/Object/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Other/ChangePrinters/DotCfg/lit.local.cfg b/llvm/test/Other/ChangePrinters/DotCfg/lit.local.cfg --- a/llvm/test/Other/ChangePrinters/DotCfg/lit.local.cfg +++ b/llvm/test/Other/ChangePrinters/DotCfg/lit.local.cfg @@ -1,20 +1,22 @@ import os import subprocess + def have_needed_dot_support(): - if not os.path.exists('/usr/bin/dot'): - return False + if not os.path.exists("/usr/bin/dot"): + return False + + try: + ld_cmd = subprocess.Popen( + ["/usr/bin/dot", "-T?"], stdout=subprocess.PIPE, stderr=subprocess.PIPE + ) + ld_err = ld_cmd.stderr.read().decode() + ld_cmd.wait() + except: + return False - try: - ld_cmd = subprocess.Popen(['/usr/bin/dot', '-T?'], - stdout=subprocess.PIPE, - stderr=subprocess.PIPE) - ld_err = ld_cmd.stderr.read().decode() - ld_cmd.wait() - except: - return False + return "pdf" in ld_err - return 'pdf' in ld_err if not have_needed_dot_support(): - config.unsupported = True + config.unsupported = True diff --git a/llvm/test/Other/ChangePrinters/lit.local.cfg b/llvm/test/Other/ChangePrinters/lit.local.cfg --- a/llvm/test/Other/ChangePrinters/lit.local.cfg +++ b/llvm/test/Other/ChangePrinters/lit.local.cfg @@ -1,17 +1,22 @@ import os import subprocess + def have_needed_diff_support(): - if not os.path.exists('/usr/bin/diff'): + if not os.path.exists("/usr/bin/diff"): return False ld_cmd = subprocess.Popen( - ['/usr/bin/diff', '--help'], stdout=subprocess.PIPE, - stderr=subprocess.STDOUT, env={'LANG': 'C'}) + ["/usr/bin/diff", "--help"], + stdout=subprocess.PIPE, + stderr=subprocess.STDOUT, + env={"LANG": "C"}, + ) ld_out = ld_cmd.stdout.read().decode() ld_cmd.wait() - return '-line-format' in ld_out + return "-line-format" in ld_out + if not have_needed_diff_support(): - config.unsupported = True + config.unsupported = True diff --git a/llvm/test/Other/ChangeTesters/lit.local.cfg b/llvm/test/Other/ChangeTesters/lit.local.cfg --- a/llvm/test/Other/ChangeTesters/lit.local.cfg +++ b/llvm/test/Other/ChangeTesters/lit.local.cfg @@ -1,2 +1,2 @@ -if not os.path.exists('/bin/cat'): - config.unsupported = True +if not os.path.exists("/bin/cat"): + config.unsupported = True diff --git a/llvm/test/Other/X86/lit.local.cfg b/llvm/test/Other/X86/lit.local.cfg --- a/llvm/test/Other/X86/lit.local.cfg +++ b/llvm/test/Other/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/TableGen/lit.local.cfg b/llvm/test/TableGen/lit.local.cfg --- a/llvm/test/TableGen/lit.local.cfg +++ b/llvm/test/TableGen/lit.local.cfg @@ -1,2 +1,2 @@ -config.suffixes = ['.td'] -config.excludes = ['Common'] +config.suffixes = [".td"] +config.excludes = ["Common"] diff --git a/llvm/test/ThinLTO/X86/lit.local.cfg b/llvm/test/ThinLTO/X86/lit.local.cfg --- a/llvm/test/ThinLTO/X86/lit.local.cfg +++ b/llvm/test/ThinLTO/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: - config.unsupported = True +if not "X86" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/Transforms/AggressiveInstCombine/AArch64/lit.local.cfg b/llvm/test/Transforms/AggressiveInstCombine/AArch64/lit.local.cfg --- a/llvm/test/Transforms/AggressiveInstCombine/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/AggressiveInstCombine/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/AggressiveInstCombine/ARM/lit.local.cfg b/llvm/test/Transforms/AggressiveInstCombine/ARM/lit.local.cfg --- a/llvm/test/Transforms/AggressiveInstCombine/ARM/lit.local.cfg +++ b/llvm/test/Transforms/AggressiveInstCombine/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/AggressiveInstCombine/X86/lit.local.cfg b/llvm/test/Transforms/AggressiveInstCombine/X86/lit.local.cfg --- a/llvm/test/Transforms/AggressiveInstCombine/X86/lit.local.cfg +++ b/llvm/test/Transforms/AggressiveInstCombine/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/ArgumentPromotion/BPF/lit.local.cfg b/llvm/test/Transforms/ArgumentPromotion/BPF/lit.local.cfg --- a/llvm/test/Transforms/ArgumentPromotion/BPF/lit.local.cfg +++ b/llvm/test/Transforms/ArgumentPromotion/BPF/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'BPF' in config.root.targets: +if not "BPF" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/ArgumentPromotion/X86/lit.local.cfg b/llvm/test/Transforms/ArgumentPromotion/X86/lit.local.cfg --- a/llvm/test/Transforms/ArgumentPromotion/X86/lit.local.cfg +++ b/llvm/test/Transforms/ArgumentPromotion/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/AtomicExpand/AArch64/lit.local.cfg b/llvm/test/Transforms/AtomicExpand/AArch64/lit.local.cfg --- a/llvm/test/Transforms/AtomicExpand/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/AtomicExpand/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/AtomicExpand/AMDGPU/lit.local.cfg b/llvm/test/Transforms/AtomicExpand/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/AtomicExpand/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/AtomicExpand/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: - config.unsupported = True +if not "AMDGPU" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/Transforms/AtomicExpand/ARM/lit.local.cfg b/llvm/test/Transforms/AtomicExpand/ARM/lit.local.cfg --- a/llvm/test/Transforms/AtomicExpand/ARM/lit.local.cfg +++ b/llvm/test/Transforms/AtomicExpand/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/AtomicExpand/Hexagon/lit.local.cfg b/llvm/test/Transforms/AtomicExpand/Hexagon/lit.local.cfg --- a/llvm/test/Transforms/AtomicExpand/Hexagon/lit.local.cfg +++ b/llvm/test/Transforms/AtomicExpand/Hexagon/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Hexagon' in config.root.targets: +if not "Hexagon" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/AtomicExpand/LoongArch/lit.local.cfg b/llvm/test/Transforms/AtomicExpand/LoongArch/lit.local.cfg --- a/llvm/test/Transforms/AtomicExpand/LoongArch/lit.local.cfg +++ b/llvm/test/Transforms/AtomicExpand/LoongArch/lit.local.cfg @@ -1,5 +1,5 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] targets = set(config.root.targets_to_build.split()) -if not 'LoongArch' in targets: +if not "LoongArch" in targets: config.unsupported = True diff --git a/llvm/test/Transforms/AtomicExpand/Mips/lit.local.cfg b/llvm/test/Transforms/AtomicExpand/Mips/lit.local.cfg --- a/llvm/test/Transforms/AtomicExpand/Mips/lit.local.cfg +++ b/llvm/test/Transforms/AtomicExpand/Mips/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Mips' in config.root.targets: +if not "Mips" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/AtomicExpand/PowerPC/lit.local.cfg b/llvm/test/Transforms/AtomicExpand/PowerPC/lit.local.cfg --- a/llvm/test/Transforms/AtomicExpand/PowerPC/lit.local.cfg +++ b/llvm/test/Transforms/AtomicExpand/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/AtomicExpand/RISCV/lit.local.cfg b/llvm/test/Transforms/AtomicExpand/RISCV/lit.local.cfg --- a/llvm/test/Transforms/AtomicExpand/RISCV/lit.local.cfg +++ b/llvm/test/Transforms/AtomicExpand/RISCV/lit.local.cfg @@ -1,5 +1,5 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] targets = set(config.root.targets_to_build.split()) -if not 'RISCV' in targets: +if not "RISCV" in targets: config.unsupported = True diff --git a/llvm/test/Transforms/AtomicExpand/SPARC/lit.local.cfg b/llvm/test/Transforms/AtomicExpand/SPARC/lit.local.cfg --- a/llvm/test/Transforms/AtomicExpand/SPARC/lit.local.cfg +++ b/llvm/test/Transforms/AtomicExpand/SPARC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Sparc' in config.root.targets: - config.unsupported = True +if not "Sparc" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/Transforms/AtomicExpand/X86/lit.local.cfg b/llvm/test/Transforms/AtomicExpand/X86/lit.local.cfg --- a/llvm/test/Transforms/AtomicExpand/X86/lit.local.cfg +++ b/llvm/test/Transforms/AtomicExpand/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: - config.unsupported = True +if not "X86" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/Transforms/Attributor/ArgumentPromotion/X86/lit.local.cfg b/llvm/test/Transforms/Attributor/ArgumentPromotion/X86/lit.local.cfg --- a/llvm/test/Transforms/Attributor/ArgumentPromotion/X86/lit.local.cfg +++ b/llvm/test/Transforms/Attributor/ArgumentPromotion/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/Attributor/lit.local.cfg b/llvm/test/Transforms/Attributor/lit.local.cfg --- a/llvm/test/Transforms/Attributor/lit.local.cfg +++ b/llvm/test/Transforms/Attributor/lit.local.cfg @@ -1,5 +1,5 @@ # -*- Python -*- vim: set ft=python ts=4 sw=4 expandtab tw=79: from lit.llvm.subst import ToolSubst -fc = ToolSubst('FileCheck', unresolved='fatal') -config.substitutions.insert(0, (fc.regex, 'FileCheck --allow-unused-prefixes')) +fc = ToolSubst("FileCheck", unresolved="fatal") +config.substitutions.insert(0, (fc.regex, "FileCheck --allow-unused-prefixes")) diff --git a/llvm/test/Transforms/CodeExtractor/X86/lit.local.cfg b/llvm/test/Transforms/CodeExtractor/X86/lit.local.cfg --- a/llvm/test/Transforms/CodeExtractor/X86/lit.local.cfg +++ b/llvm/test/Transforms/CodeExtractor/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/CodeGenPrepare/AArch64/lit.local.cfg b/llvm/test/Transforms/CodeGenPrepare/AArch64/lit.local.cfg --- a/llvm/test/Transforms/CodeGenPrepare/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/CodeGenPrepare/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/CodeGenPrepare/AMDGPU/lit.local.cfg b/llvm/test/Transforms/CodeGenPrepare/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/CodeGenPrepare/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/CodeGenPrepare/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/CodeGenPrepare/ARM/lit.local.cfg b/llvm/test/Transforms/CodeGenPrepare/ARM/lit.local.cfg --- a/llvm/test/Transforms/CodeGenPrepare/ARM/lit.local.cfg +++ b/llvm/test/Transforms/CodeGenPrepare/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/CodeGenPrepare/Mips/lit.local.cfg b/llvm/test/Transforms/CodeGenPrepare/Mips/lit.local.cfg --- a/llvm/test/Transforms/CodeGenPrepare/Mips/lit.local.cfg +++ b/llvm/test/Transforms/CodeGenPrepare/Mips/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Mips' in config.root.targets: +if not "Mips" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/CodeGenPrepare/NVPTX/lit.local.cfg b/llvm/test/Transforms/CodeGenPrepare/NVPTX/lit.local.cfg --- a/llvm/test/Transforms/CodeGenPrepare/NVPTX/lit.local.cfg +++ b/llvm/test/Transforms/CodeGenPrepare/NVPTX/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'NVPTX' in config.root.targets: +if not "NVPTX" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/CodeGenPrepare/PowerPC/lit.local.cfg b/llvm/test/Transforms/CodeGenPrepare/PowerPC/lit.local.cfg --- a/llvm/test/Transforms/CodeGenPrepare/PowerPC/lit.local.cfg +++ b/llvm/test/Transforms/CodeGenPrepare/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/CodeGenPrepare/RISCV/lit.local.cfg b/llvm/test/Transforms/CodeGenPrepare/RISCV/lit.local.cfg --- a/llvm/test/Transforms/CodeGenPrepare/RISCV/lit.local.cfg +++ b/llvm/test/Transforms/CodeGenPrepare/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/CodeGenPrepare/SPARC/lit.local.cfg b/llvm/test/Transforms/CodeGenPrepare/SPARC/lit.local.cfg --- a/llvm/test/Transforms/CodeGenPrepare/SPARC/lit.local.cfg +++ b/llvm/test/Transforms/CodeGenPrepare/SPARC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Sparc' in config.root.targets: +if not "Sparc" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/CodeGenPrepare/X86/lit.local.cfg b/llvm/test/Transforms/CodeGenPrepare/X86/lit.local.cfg --- a/llvm/test/Transforms/CodeGenPrepare/X86/lit.local.cfg +++ b/llvm/test/Transforms/CodeGenPrepare/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/ConstantHoisting/AArch64/lit.local.cfg b/llvm/test/Transforms/ConstantHoisting/AArch64/lit.local.cfg --- a/llvm/test/Transforms/ConstantHoisting/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/ConstantHoisting/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/ConstantHoisting/ARM/lit.local.cfg b/llvm/test/Transforms/ConstantHoisting/ARM/lit.local.cfg --- a/llvm/test/Transforms/ConstantHoisting/ARM/lit.local.cfg +++ b/llvm/test/Transforms/ConstantHoisting/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/ConstantHoisting/PowerPC/lit.local.cfg b/llvm/test/Transforms/ConstantHoisting/PowerPC/lit.local.cfg --- a/llvm/test/Transforms/ConstantHoisting/PowerPC/lit.local.cfg +++ b/llvm/test/Transforms/ConstantHoisting/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/ConstantHoisting/RISCV/lit.local.cfg b/llvm/test/Transforms/ConstantHoisting/RISCV/lit.local.cfg --- a/llvm/test/Transforms/ConstantHoisting/RISCV/lit.local.cfg +++ b/llvm/test/Transforms/ConstantHoisting/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: - config.unsupported = True \ No newline at end of file +if not "RISCV" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/Transforms/ConstantHoisting/X86/lit.local.cfg b/llvm/test/Transforms/ConstantHoisting/X86/lit.local.cfg --- a/llvm/test/Transforms/ConstantHoisting/X86/lit.local.cfg +++ b/llvm/test/Transforms/ConstantHoisting/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/DivRemPairs/Mips/lit.local.cfg b/llvm/test/Transforms/DivRemPairs/Mips/lit.local.cfg --- a/llvm/test/Transforms/DivRemPairs/Mips/lit.local.cfg +++ b/llvm/test/Transforms/DivRemPairs/Mips/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Mips' in config.root.targets: +if not "Mips" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/DivRemPairs/PowerPC/lit.local.cfg b/llvm/test/Transforms/DivRemPairs/PowerPC/lit.local.cfg --- a/llvm/test/Transforms/DivRemPairs/PowerPC/lit.local.cfg +++ b/llvm/test/Transforms/DivRemPairs/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/DivRemPairs/X86/lit.local.cfg b/llvm/test/Transforms/DivRemPairs/X86/lit.local.cfg --- a/llvm/test/Transforms/DivRemPairs/X86/lit.local.cfg +++ b/llvm/test/Transforms/DivRemPairs/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/EarlyCSE/AArch64/lit.local.cfg b/llvm/test/Transforms/EarlyCSE/AArch64/lit.local.cfg --- a/llvm/test/Transforms/EarlyCSE/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/EarlyCSE/AArch64/lit.local.cfg @@ -1,5 +1,5 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] targets = set(config.root.targets_to_build.split()) -if not 'AArch64' in targets: +if not "AArch64" in targets: config.unsupported = True diff --git a/llvm/test/Transforms/EarlyCSE/AMDGPU/lit.local.cfg b/llvm/test/Transforms/EarlyCSE/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/EarlyCSE/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/EarlyCSE/AMDGPU/lit.local.cfg @@ -1,5 +1,5 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] targets = set(config.root.targets_to_build.split()) -if not 'AMDGPU' in targets: +if not "AMDGPU" in targets: config.unsupported = True diff --git a/llvm/test/Transforms/EarlyCSE/DirectX/lit.local.cfg b/llvm/test/Transforms/EarlyCSE/DirectX/lit.local.cfg --- a/llvm/test/Transforms/EarlyCSE/DirectX/lit.local.cfg +++ b/llvm/test/Transforms/EarlyCSE/DirectX/lit.local.cfg @@ -1,4 +1,4 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] -if not 'DirectX' in config.root.targets: +if not "DirectX" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/EarlyCSE/PowerPC/lit.local.cfg b/llvm/test/Transforms/EarlyCSE/PowerPC/lit.local.cfg --- a/llvm/test/Transforms/EarlyCSE/PowerPC/lit.local.cfg +++ b/llvm/test/Transforms/EarlyCSE/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/EarlyCSE/X86/lit.local.cfg b/llvm/test/Transforms/EarlyCSE/X86/lit.local.cfg --- a/llvm/test/Transforms/EarlyCSE/X86/lit.local.cfg +++ b/llvm/test/Transforms/EarlyCSE/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/ExpandMemCmp/AArch64/lit.local.cfg b/llvm/test/Transforms/ExpandMemCmp/AArch64/lit.local.cfg --- a/llvm/test/Transforms/ExpandMemCmp/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/ExpandMemCmp/AArch64/lit.local.cfg @@ -1,3 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True - diff --git a/llvm/test/Transforms/ExpandMemCmp/X86/lit.local.cfg b/llvm/test/Transforms/ExpandMemCmp/X86/lit.local.cfg --- a/llvm/test/Transforms/ExpandMemCmp/X86/lit.local.cfg +++ b/llvm/test/Transforms/ExpandMemCmp/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/GlobalOpt/PowerPC/lit.local.cfg b/llvm/test/Transforms/GlobalOpt/PowerPC/lit.local.cfg --- a/llvm/test/Transforms/GlobalOpt/PowerPC/lit.local.cfg +++ b/llvm/test/Transforms/GlobalOpt/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/HardwareLoops/ARM/lit.local.cfg b/llvm/test/Transforms/HardwareLoops/ARM/lit.local.cfg --- a/llvm/test/Transforms/HardwareLoops/ARM/lit.local.cfg +++ b/llvm/test/Transforms/HardwareLoops/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/HotColdSplit/X86/lit.local.cfg b/llvm/test/Transforms/HotColdSplit/X86/lit.local.cfg --- a/llvm/test/Transforms/HotColdSplit/X86/lit.local.cfg +++ b/llvm/test/Transforms/HotColdSplit/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/IndVarSimplify/AArch64/lit.local.cfg b/llvm/test/Transforms/IndVarSimplify/AArch64/lit.local.cfg --- a/llvm/test/Transforms/IndVarSimplify/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/IndVarSimplify/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/IndVarSimplify/AMDGPU/lit.local.cfg b/llvm/test/Transforms/IndVarSimplify/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/IndVarSimplify/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/IndVarSimplify/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/IndVarSimplify/ARM/lit.local.cfg b/llvm/test/Transforms/IndVarSimplify/ARM/lit.local.cfg --- a/llvm/test/Transforms/IndVarSimplify/ARM/lit.local.cfg +++ b/llvm/test/Transforms/IndVarSimplify/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/IndVarSimplify/NVPTX/lit.local.cfg b/llvm/test/Transforms/IndVarSimplify/NVPTX/lit.local.cfg --- a/llvm/test/Transforms/IndVarSimplify/NVPTX/lit.local.cfg +++ b/llvm/test/Transforms/IndVarSimplify/NVPTX/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'NVPTX' in config.root.targets: +if not "NVPTX" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/IndVarSimplify/X86/lit.local.cfg b/llvm/test/Transforms/IndVarSimplify/X86/lit.local.cfg --- a/llvm/test/Transforms/IndVarSimplify/X86/lit.local.cfg +++ b/llvm/test/Transforms/IndVarSimplify/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/InferAddressSpaces/AMDGPU/lit.local.cfg b/llvm/test/Transforms/InferAddressSpaces/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/InferAddressSpaces/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/InferAddressSpaces/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/InferAddressSpaces/NVPTX/lit.local.cfg b/llvm/test/Transforms/InferAddressSpaces/NVPTX/lit.local.cfg --- a/llvm/test/Transforms/InferAddressSpaces/NVPTX/lit.local.cfg +++ b/llvm/test/Transforms/InferAddressSpaces/NVPTX/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'NVPTX' in config.root.targets: +if not "NVPTX" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/Inline/AArch64/lit.local.cfg b/llvm/test/Transforms/Inline/AArch64/lit.local.cfg --- a/llvm/test/Transforms/Inline/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/Inline/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/Inline/AMDGPU/lit.local.cfg b/llvm/test/Transforms/Inline/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/Inline/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/Inline/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/Inline/ARM/lit.local.cfg b/llvm/test/Transforms/Inline/ARM/lit.local.cfg --- a/llvm/test/Transforms/Inline/ARM/lit.local.cfg +++ b/llvm/test/Transforms/Inline/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/Inline/ML/lit.local.cfg b/llvm/test/Transforms/Inline/ML/lit.local.cfg --- a/llvm/test/Transforms/Inline/ML/lit.local.cfg +++ b/llvm/test/Transforms/Inline/ML/lit.local.cfg @@ -1,3 +1,3 @@ import sys -config.unsupported = sys.version_info.minor <= 8 +config.unsupported = sys.version_info.minor <= 8 diff --git a/llvm/test/Transforms/Inline/PowerPC/lit.local.cfg b/llvm/test/Transforms/Inline/PowerPC/lit.local.cfg --- a/llvm/test/Transforms/Inline/PowerPC/lit.local.cfg +++ b/llvm/test/Transforms/Inline/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/Inline/WebAssembly/lit.local.cfg b/llvm/test/Transforms/Inline/WebAssembly/lit.local.cfg --- a/llvm/test/Transforms/Inline/WebAssembly/lit.local.cfg +++ b/llvm/test/Transforms/Inline/WebAssembly/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'WebAssembly' in config.root.targets: +if not "WebAssembly" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/Inline/X86/lit.local.cfg b/llvm/test/Transforms/Inline/X86/lit.local.cfg --- a/llvm/test/Transforms/Inline/X86/lit.local.cfg +++ b/llvm/test/Transforms/Inline/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/InstCombine/AArch64/lit.local.cfg b/llvm/test/Transforms/InstCombine/AArch64/lit.local.cfg --- a/llvm/test/Transforms/InstCombine/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/InstCombine/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/InstCombine/AMDGPU/lit.local.cfg b/llvm/test/Transforms/InstCombine/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/InstCombine/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/InstCombine/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/InstCombine/ARM/lit.local.cfg b/llvm/test/Transforms/InstCombine/ARM/lit.local.cfg --- a/llvm/test/Transforms/InstCombine/ARM/lit.local.cfg +++ b/llvm/test/Transforms/InstCombine/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/InstCombine/Hexagon/lit.local.cfg b/llvm/test/Transforms/InstCombine/Hexagon/lit.local.cfg --- a/llvm/test/Transforms/InstCombine/Hexagon/lit.local.cfg +++ b/llvm/test/Transforms/InstCombine/Hexagon/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Hexagon' in config.root.targets: +if not "Hexagon" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/InstCombine/NVPTX/lit.local.cfg b/llvm/test/Transforms/InstCombine/NVPTX/lit.local.cfg --- a/llvm/test/Transforms/InstCombine/NVPTX/lit.local.cfg +++ b/llvm/test/Transforms/InstCombine/NVPTX/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'NVPTX' in config.root.targets: +if not "NVPTX" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/InstCombine/PowerPC/lit.local.cfg b/llvm/test/Transforms/InstCombine/PowerPC/lit.local.cfg --- a/llvm/test/Transforms/InstCombine/PowerPC/lit.local.cfg +++ b/llvm/test/Transforms/InstCombine/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/InstCombine/RISCV/lit.local.cfg b/llvm/test/Transforms/InstCombine/RISCV/lit.local.cfg --- a/llvm/test/Transforms/InstCombine/RISCV/lit.local.cfg +++ b/llvm/test/Transforms/InstCombine/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/InstCombine/X86/lit.local.cfg b/llvm/test/Transforms/InstCombine/X86/lit.local.cfg --- a/llvm/test/Transforms/InstCombine/X86/lit.local.cfg +++ b/llvm/test/Transforms/InstCombine/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/InstSimplify/ConstProp/AArch64/lit.local.cfg b/llvm/test/Transforms/InstSimplify/ConstProp/AArch64/lit.local.cfg --- a/llvm/test/Transforms/InstSimplify/ConstProp/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/InstSimplify/ConstProp/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/InstSimplify/ConstProp/AMDGPU/lit.local.cfg b/llvm/test/Transforms/InstSimplify/ConstProp/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/InstSimplify/ConstProp/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/InstSimplify/ConstProp/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/InstSimplify/ConstProp/ARM/lit.local.cfg b/llvm/test/Transforms/InstSimplify/ConstProp/ARM/lit.local.cfg --- a/llvm/test/Transforms/InstSimplify/ConstProp/ARM/lit.local.cfg +++ b/llvm/test/Transforms/InstSimplify/ConstProp/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/InterleavedAccess/AArch64/lit.local.cfg b/llvm/test/Transforms/InterleavedAccess/AArch64/lit.local.cfg --- a/llvm/test/Transforms/InterleavedAccess/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/InterleavedAccess/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: - config.unsupported = True +if not "AArch64" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/Transforms/InterleavedAccess/ARM/lit.local.cfg b/llvm/test/Transforms/InterleavedAccess/ARM/lit.local.cfg --- a/llvm/test/Transforms/InterleavedAccess/ARM/lit.local.cfg +++ b/llvm/test/Transforms/InterleavedAccess/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: - config.unsupported = True +if not "ARM" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/Transforms/InterleavedAccess/RISCV/lit.local.cfg b/llvm/test/Transforms/InterleavedAccess/RISCV/lit.local.cfg --- a/llvm/test/Transforms/InterleavedAccess/RISCV/lit.local.cfg +++ b/llvm/test/Transforms/InterleavedAccess/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: - config.unsupported = True \ No newline at end of file +if not "RISCV" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/Transforms/InterleavedAccess/X86/lit.local.cfg b/llvm/test/Transforms/InterleavedAccess/X86/lit.local.cfg --- a/llvm/test/Transforms/InterleavedAccess/X86/lit.local.cfg +++ b/llvm/test/Transforms/InterleavedAccess/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: - config.unsupported = True +if not "X86" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/Transforms/LICM/AArch64/lit.local.cfg b/llvm/test/Transforms/LICM/AArch64/lit.local.cfg --- a/llvm/test/Transforms/LICM/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/LICM/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LICM/AMDGPU/lit.local.cfg b/llvm/test/Transforms/LICM/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/LICM/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/LICM/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/lit.local.cfg b/llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoadStoreVectorizer/NVPTX/lit.local.cfg b/llvm/test/Transforms/LoadStoreVectorizer/NVPTX/lit.local.cfg --- a/llvm/test/Transforms/LoadStoreVectorizer/NVPTX/lit.local.cfg +++ b/llvm/test/Transforms/LoadStoreVectorizer/NVPTX/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'NVPTX' in config.root.targets: +if not "NVPTX" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoadStoreVectorizer/X86/lit.local.cfg b/llvm/test/Transforms/LoadStoreVectorizer/X86/lit.local.cfg --- a/llvm/test/Transforms/LoadStoreVectorizer/X86/lit.local.cfg +++ b/llvm/test/Transforms/LoadStoreVectorizer/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopDataPrefetch/AArch64/lit.local.cfg b/llvm/test/Transforms/LoopDataPrefetch/AArch64/lit.local.cfg --- a/llvm/test/Transforms/LoopDataPrefetch/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/LoopDataPrefetch/AArch64/lit.local.cfg @@ -1,4 +1,4 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopDataPrefetch/LoongArch/lit.local.cfg b/llvm/test/Transforms/LoopDataPrefetch/LoongArch/lit.local.cfg --- a/llvm/test/Transforms/LoopDataPrefetch/LoongArch/lit.local.cfg +++ b/llvm/test/Transforms/LoopDataPrefetch/LoongArch/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'LoongArch' in config.root.targets: +if not "LoongArch" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopDataPrefetch/PowerPC/lit.local.cfg b/llvm/test/Transforms/LoopDataPrefetch/PowerPC/lit.local.cfg --- a/llvm/test/Transforms/LoopDataPrefetch/PowerPC/lit.local.cfg +++ b/llvm/test/Transforms/LoopDataPrefetch/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopIdiom/AMDGPU/lit.local.cfg b/llvm/test/Transforms/LoopIdiom/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/LoopIdiom/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/LoopIdiom/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopIdiom/RISCV/lit.local.cfg b/llvm/test/Transforms/LoopIdiom/RISCV/lit.local.cfg --- a/llvm/test/Transforms/LoopIdiom/RISCV/lit.local.cfg +++ b/llvm/test/Transforms/LoopIdiom/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopIdiom/X86/lit.local.cfg b/llvm/test/Transforms/LoopIdiom/X86/lit.local.cfg --- a/llvm/test/Transforms/LoopIdiom/X86/lit.local.cfg +++ b/llvm/test/Transforms/LoopIdiom/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopRotate/RISCV/lit.local.cfg b/llvm/test/Transforms/LoopRotate/RISCV/lit.local.cfg --- a/llvm/test/Transforms/LoopRotate/RISCV/lit.local.cfg +++ b/llvm/test/Transforms/LoopRotate/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopStrengthReduce/AArch64/lit.local.cfg b/llvm/test/Transforms/LoopStrengthReduce/AArch64/lit.local.cfg --- a/llvm/test/Transforms/LoopStrengthReduce/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/LoopStrengthReduce/AArch64/lit.local.cfg @@ -1,4 +1,4 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopStrengthReduce/AMDGPU/lit.local.cfg b/llvm/test/Transforms/LoopStrengthReduce/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/LoopStrengthReduce/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/LoopStrengthReduce/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopStrengthReduce/ARM/lit.local.cfg b/llvm/test/Transforms/LoopStrengthReduce/ARM/lit.local.cfg --- a/llvm/test/Transforms/LoopStrengthReduce/ARM/lit.local.cfg +++ b/llvm/test/Transforms/LoopStrengthReduce/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopStrengthReduce/NVPTX/lit.local.cfg b/llvm/test/Transforms/LoopStrengthReduce/NVPTX/lit.local.cfg --- a/llvm/test/Transforms/LoopStrengthReduce/NVPTX/lit.local.cfg +++ b/llvm/test/Transforms/LoopStrengthReduce/NVPTX/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'NVPTX' in config.root.targets: +if not "NVPTX" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopStrengthReduce/Power/lit.local.cfg b/llvm/test/Transforms/LoopStrengthReduce/Power/lit.local.cfg --- a/llvm/test/Transforms/LoopStrengthReduce/Power/lit.local.cfg +++ b/llvm/test/Transforms/LoopStrengthReduce/Power/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopStrengthReduce/RISCV/lit.local.cfg b/llvm/test/Transforms/LoopStrengthReduce/RISCV/lit.local.cfg --- a/llvm/test/Transforms/LoopStrengthReduce/RISCV/lit.local.cfg +++ b/llvm/test/Transforms/LoopStrengthReduce/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopStrengthReduce/X86/lit.local.cfg b/llvm/test/Transforms/LoopStrengthReduce/X86/lit.local.cfg --- a/llvm/test/Transforms/LoopStrengthReduce/X86/lit.local.cfg +++ b/llvm/test/Transforms/LoopStrengthReduce/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopUnroll/AArch64/lit.local.cfg b/llvm/test/Transforms/LoopUnroll/AArch64/lit.local.cfg --- a/llvm/test/Transforms/LoopUnroll/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/LoopUnroll/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopUnroll/AMDGPU/lit.local.cfg b/llvm/test/Transforms/LoopUnroll/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/LoopUnroll/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/LoopUnroll/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopUnroll/ARM/lit.local.cfg b/llvm/test/Transforms/LoopUnroll/ARM/lit.local.cfg --- a/llvm/test/Transforms/LoopUnroll/ARM/lit.local.cfg +++ b/llvm/test/Transforms/LoopUnroll/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopUnroll/Hexagon/lit.local.cfg b/llvm/test/Transforms/LoopUnroll/Hexagon/lit.local.cfg --- a/llvm/test/Transforms/LoopUnroll/Hexagon/lit.local.cfg +++ b/llvm/test/Transforms/LoopUnroll/Hexagon/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Hexagon' in config.root.targets: +if not "Hexagon" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopUnroll/PowerPC/lit.local.cfg b/llvm/test/Transforms/LoopUnroll/PowerPC/lit.local.cfg --- a/llvm/test/Transforms/LoopUnroll/PowerPC/lit.local.cfg +++ b/llvm/test/Transforms/LoopUnroll/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopUnroll/RISCV/lit.local.cfg b/llvm/test/Transforms/LoopUnroll/RISCV/lit.local.cfg --- a/llvm/test/Transforms/LoopUnroll/RISCV/lit.local.cfg +++ b/llvm/test/Transforms/LoopUnroll/RISCV/lit.local.cfg @@ -1,5 +1,5 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] targets = set(config.root.targets_to_build.split()) -if not 'RISCV' in targets: +if not "RISCV" in targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopUnroll/WebAssembly/lit.local.cfg b/llvm/test/Transforms/LoopUnroll/WebAssembly/lit.local.cfg --- a/llvm/test/Transforms/LoopUnroll/WebAssembly/lit.local.cfg +++ b/llvm/test/Transforms/LoopUnroll/WebAssembly/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'WebAssembly' in config.root.targets: +if not "WebAssembly" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopUnroll/X86/lit.local.cfg b/llvm/test/Transforms/LoopUnroll/X86/lit.local.cfg --- a/llvm/test/Transforms/LoopUnroll/X86/lit.local.cfg +++ b/llvm/test/Transforms/LoopUnroll/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopVectorize/AArch64/lit.local.cfg b/llvm/test/Transforms/LoopVectorize/AArch64/lit.local.cfg --- a/llvm/test/Transforms/LoopVectorize/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/LoopVectorize/AArch64/lit.local.cfg @@ -1,4 +1,4 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopVectorize/AMDGPU/lit.local.cfg b/llvm/test/Transforms/LoopVectorize/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/LoopVectorize/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/LoopVectorize/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopVectorize/ARM/lit.local.cfg b/llvm/test/Transforms/LoopVectorize/ARM/lit.local.cfg --- a/llvm/test/Transforms/LoopVectorize/ARM/lit.local.cfg +++ b/llvm/test/Transforms/LoopVectorize/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopVectorize/Hexagon/lit.local.cfg b/llvm/test/Transforms/LoopVectorize/Hexagon/lit.local.cfg --- a/llvm/test/Transforms/LoopVectorize/Hexagon/lit.local.cfg +++ b/llvm/test/Transforms/LoopVectorize/Hexagon/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Hexagon' in config.root.targets: +if not "Hexagon" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopVectorize/PowerPC/lit.local.cfg b/llvm/test/Transforms/LoopVectorize/PowerPC/lit.local.cfg --- a/llvm/test/Transforms/LoopVectorize/PowerPC/lit.local.cfg +++ b/llvm/test/Transforms/LoopVectorize/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopVectorize/RISCV/lit.local.cfg b/llvm/test/Transforms/LoopVectorize/RISCV/lit.local.cfg --- a/llvm/test/Transforms/LoopVectorize/RISCV/lit.local.cfg +++ b/llvm/test/Transforms/LoopVectorize/RISCV/lit.local.cfg @@ -1,4 +1,4 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopVectorize/SystemZ/lit.local.cfg b/llvm/test/Transforms/LoopVectorize/SystemZ/lit.local.cfg --- a/llvm/test/Transforms/LoopVectorize/SystemZ/lit.local.cfg +++ b/llvm/test/Transforms/LoopVectorize/SystemZ/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'SystemZ' in config.root.targets: +if not "SystemZ" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopVectorize/VE/lit.local.cfg b/llvm/test/Transforms/LoopVectorize/VE/lit.local.cfg --- a/llvm/test/Transforms/LoopVectorize/VE/lit.local.cfg +++ b/llvm/test/Transforms/LoopVectorize/VE/lit.local.cfg @@ -1,4 +1,4 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True -if not 'VE' in config.root.targets: +if not "VE" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopVectorize/X86/lit.local.cfg b/llvm/test/Transforms/LoopVectorize/X86/lit.local.cfg --- a/llvm/test/Transforms/LoopVectorize/X86/lit.local.cfg +++ b/llvm/test/Transforms/LoopVectorize/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/LoopVectorize/XCore/lit.local.cfg b/llvm/test/Transforms/LoopVectorize/XCore/lit.local.cfg --- a/llvm/test/Transforms/LoopVectorize/XCore/lit.local.cfg +++ b/llvm/test/Transforms/LoopVectorize/XCore/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'XCore' in config.root.targets: +if not "XCore" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/MergeICmps/X86/lit.local.cfg b/llvm/test/Transforms/MergeICmps/X86/lit.local.cfg --- a/llvm/test/Transforms/MergeICmps/X86/lit.local.cfg +++ b/llvm/test/Transforms/MergeICmps/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/NaryReassociate/NVPTX/lit.local.cfg b/llvm/test/Transforms/NaryReassociate/NVPTX/lit.local.cfg --- a/llvm/test/Transforms/NaryReassociate/NVPTX/lit.local.cfg +++ b/llvm/test/Transforms/NaryReassociate/NVPTX/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'NVPTX' in config.root.targets: +if not "NVPTX" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/PGOProfile/X86/lit.local.cfg b/llvm/test/Transforms/PGOProfile/X86/lit.local.cfg --- a/llvm/test/Transforms/PGOProfile/X86/lit.local.cfg +++ b/llvm/test/Transforms/PGOProfile/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/PartiallyInlineLibCalls/X86/lit.local.cfg b/llvm/test/Transforms/PartiallyInlineLibCalls/X86/lit.local.cfg --- a/llvm/test/Transforms/PartiallyInlineLibCalls/X86/lit.local.cfg +++ b/llvm/test/Transforms/PartiallyInlineLibCalls/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: - config.unsupported = True +if not "X86" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/Transforms/PhaseOrdering/AArch64/lit.local.cfg b/llvm/test/Transforms/PhaseOrdering/AArch64/lit.local.cfg --- a/llvm/test/Transforms/PhaseOrdering/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/PhaseOrdering/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/PhaseOrdering/ARM/lit.local.cfg b/llvm/test/Transforms/PhaseOrdering/ARM/lit.local.cfg --- a/llvm/test/Transforms/PhaseOrdering/ARM/lit.local.cfg +++ b/llvm/test/Transforms/PhaseOrdering/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/PhaseOrdering/SystemZ/lit.local.cfg b/llvm/test/Transforms/PhaseOrdering/SystemZ/lit.local.cfg --- a/llvm/test/Transforms/PhaseOrdering/SystemZ/lit.local.cfg +++ b/llvm/test/Transforms/PhaseOrdering/SystemZ/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'SystemZ' in config.root.targets: +if not "SystemZ" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/PhaseOrdering/X86/lit.local.cfg b/llvm/test/Transforms/PhaseOrdering/X86/lit.local.cfg --- a/llvm/test/Transforms/PhaseOrdering/X86/lit.local.cfg +++ b/llvm/test/Transforms/PhaseOrdering/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/RewriteStatepointsForGC/X86/lit.local.cfg b/llvm/test/Transforms/RewriteStatepointsForGC/X86/lit.local.cfg --- a/llvm/test/Transforms/RewriteStatepointsForGC/X86/lit.local.cfg +++ b/llvm/test/Transforms/RewriteStatepointsForGC/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SLPVectorizer/AArch64/lit.local.cfg b/llvm/test/Transforms/SLPVectorizer/AArch64/lit.local.cfg --- a/llvm/test/Transforms/SLPVectorizer/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/SLPVectorizer/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SLPVectorizer/AMDGPU/lit.local.cfg b/llvm/test/Transforms/SLPVectorizer/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/SLPVectorizer/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/SLPVectorizer/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SLPVectorizer/ARM/lit.local.cfg b/llvm/test/Transforms/SLPVectorizer/ARM/lit.local.cfg --- a/llvm/test/Transforms/SLPVectorizer/ARM/lit.local.cfg +++ b/llvm/test/Transforms/SLPVectorizer/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SLPVectorizer/NVPTX/lit.local.cfg b/llvm/test/Transforms/SLPVectorizer/NVPTX/lit.local.cfg --- a/llvm/test/Transforms/SLPVectorizer/NVPTX/lit.local.cfg +++ b/llvm/test/Transforms/SLPVectorizer/NVPTX/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'NVPTX' in config.root.targets: +if not "NVPTX" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SLPVectorizer/PowerPC/lit.local.cfg b/llvm/test/Transforms/SLPVectorizer/PowerPC/lit.local.cfg --- a/llvm/test/Transforms/SLPVectorizer/PowerPC/lit.local.cfg +++ b/llvm/test/Transforms/SLPVectorizer/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SLPVectorizer/RISCV/lit.local.cfg b/llvm/test/Transforms/SLPVectorizer/RISCV/lit.local.cfg --- a/llvm/test/Transforms/SLPVectorizer/RISCV/lit.local.cfg +++ b/llvm/test/Transforms/SLPVectorizer/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SLPVectorizer/SystemZ/lit.local.cfg b/llvm/test/Transforms/SLPVectorizer/SystemZ/lit.local.cfg --- a/llvm/test/Transforms/SLPVectorizer/SystemZ/lit.local.cfg +++ b/llvm/test/Transforms/SLPVectorizer/SystemZ/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'SystemZ' in config.root.targets: +if not "SystemZ" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SLPVectorizer/VE/lit.local.cfg b/llvm/test/Transforms/SLPVectorizer/VE/lit.local.cfg --- a/llvm/test/Transforms/SLPVectorizer/VE/lit.local.cfg +++ b/llvm/test/Transforms/SLPVectorizer/VE/lit.local.cfg @@ -1,4 +1,4 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True -if not 'VE' in config.root.targets: +if not "VE" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SLPVectorizer/WebAssembly/lit.local.cfg b/llvm/test/Transforms/SLPVectorizer/WebAssembly/lit.local.cfg --- a/llvm/test/Transforms/SLPVectorizer/WebAssembly/lit.local.cfg +++ b/llvm/test/Transforms/SLPVectorizer/WebAssembly/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'WebAssembly' in config.root.targets: +if not "WebAssembly" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SLPVectorizer/X86/lit.local.cfg b/llvm/test/Transforms/SLPVectorizer/X86/lit.local.cfg --- a/llvm/test/Transforms/SLPVectorizer/X86/lit.local.cfg +++ b/llvm/test/Transforms/SLPVectorizer/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SLPVectorizer/XCore/lit.local.cfg b/llvm/test/Transforms/SLPVectorizer/XCore/lit.local.cfg --- a/llvm/test/Transforms/SLPVectorizer/XCore/lit.local.cfg +++ b/llvm/test/Transforms/SLPVectorizer/XCore/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'XCore' in config.root.targets: +if not "XCore" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SafeStack/AArch64/lit.local.cfg b/llvm/test/Transforms/SafeStack/AArch64/lit.local.cfg --- a/llvm/test/Transforms/SafeStack/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/SafeStack/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SafeStack/ARM/lit.local.cfg b/llvm/test/Transforms/SafeStack/ARM/lit.local.cfg --- a/llvm/test/Transforms/SafeStack/ARM/lit.local.cfg +++ b/llvm/test/Transforms/SafeStack/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SafeStack/X86/lit.local.cfg b/llvm/test/Transforms/SafeStack/X86/lit.local.cfg --- a/llvm/test/Transforms/SafeStack/X86/lit.local.cfg +++ b/llvm/test/Transforms/SafeStack/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SeparateConstOffsetFromGEP/AArch64/lit.local.cfg b/llvm/test/Transforms/SeparateConstOffsetFromGEP/AArch64/lit.local.cfg --- a/llvm/test/Transforms/SeparateConstOffsetFromGEP/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/SeparateConstOffsetFromGEP/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SeparateConstOffsetFromGEP/AMDGPU/lit.local.cfg b/llvm/test/Transforms/SeparateConstOffsetFromGEP/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/SeparateConstOffsetFromGEP/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/SeparateConstOffsetFromGEP/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SeparateConstOffsetFromGEP/NVPTX/lit.local.cfg b/llvm/test/Transforms/SeparateConstOffsetFromGEP/NVPTX/lit.local.cfg --- a/llvm/test/Transforms/SeparateConstOffsetFromGEP/NVPTX/lit.local.cfg +++ b/llvm/test/Transforms/SeparateConstOffsetFromGEP/NVPTX/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'NVPTX' in config.root.targets: +if not "NVPTX" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SeparateConstOffsetFromGEP/RISCV/lit.local.cfg b/llvm/test/Transforms/SeparateConstOffsetFromGEP/RISCV/lit.local.cfg --- a/llvm/test/Transforms/SeparateConstOffsetFromGEP/RISCV/lit.local.cfg +++ b/llvm/test/Transforms/SeparateConstOffsetFromGEP/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SimpleLoopUnswitch/ARM/lit.local.cfg b/llvm/test/Transforms/SimpleLoopUnswitch/ARM/lit.local.cfg --- a/llvm/test/Transforms/SimpleLoopUnswitch/ARM/lit.local.cfg +++ b/llvm/test/Transforms/SimpleLoopUnswitch/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SimplifyCFG/AArch64/lit.local.cfg b/llvm/test/Transforms/SimplifyCFG/AArch64/lit.local.cfg --- a/llvm/test/Transforms/SimplifyCFG/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/SimplifyCFG/AArch64/lit.local.cfg @@ -1,5 +1,5 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] targets = set(config.root.targets_to_build.split()) -if not 'AArch64' in targets: +if not "AArch64" in targets: config.unsupported = True diff --git a/llvm/test/Transforms/SimplifyCFG/AMDGPU/lit.local.cfg b/llvm/test/Transforms/SimplifyCFG/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/SimplifyCFG/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/SimplifyCFG/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SimplifyCFG/ARM/lit.local.cfg b/llvm/test/Transforms/SimplifyCFG/ARM/lit.local.cfg --- a/llvm/test/Transforms/SimplifyCFG/ARM/lit.local.cfg +++ b/llvm/test/Transforms/SimplifyCFG/ARM/lit.local.cfg @@ -1,5 +1,5 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] targets = set(config.root.targets_to_build.split()) -if not 'ARM' in targets: +if not "ARM" in targets: config.unsupported = True diff --git a/llvm/test/Transforms/SimplifyCFG/Hexagon/lit.local.cfg b/llvm/test/Transforms/SimplifyCFG/Hexagon/lit.local.cfg --- a/llvm/test/Transforms/SimplifyCFG/Hexagon/lit.local.cfg +++ b/llvm/test/Transforms/SimplifyCFG/Hexagon/lit.local.cfg @@ -1,5 +1,5 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] targets = set(config.root.targets_to_build.split()) -if not 'Hexagon' in targets: +if not "Hexagon" in targets: config.unsupported = True diff --git a/llvm/test/Transforms/SimplifyCFG/Mips/lit.local.cfg b/llvm/test/Transforms/SimplifyCFG/Mips/lit.local.cfg --- a/llvm/test/Transforms/SimplifyCFG/Mips/lit.local.cfg +++ b/llvm/test/Transforms/SimplifyCFG/Mips/lit.local.cfg @@ -1,5 +1,5 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] targets = set(config.root.targets_to_build.split()) -if not 'Mips' in targets: +if not "Mips" in targets: config.unsupported = True diff --git a/llvm/test/Transforms/SimplifyCFG/PowerPC/lit.local.cfg b/llvm/test/Transforms/SimplifyCFG/PowerPC/lit.local.cfg --- a/llvm/test/Transforms/SimplifyCFG/PowerPC/lit.local.cfg +++ b/llvm/test/Transforms/SimplifyCFG/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SimplifyCFG/RISCV/lit.local.cfg b/llvm/test/Transforms/SimplifyCFG/RISCV/lit.local.cfg --- a/llvm/test/Transforms/SimplifyCFG/RISCV/lit.local.cfg +++ b/llvm/test/Transforms/SimplifyCFG/RISCV/lit.local.cfg @@ -1,5 +1,5 @@ -config.suffixes = ['.ll'] +config.suffixes = [".ll"] targets = set(config.root.targets_to_build.split()) -if not 'RISCV' in targets: +if not "RISCV" in targets: config.unsupported = True diff --git a/llvm/test/Transforms/SimplifyCFG/SPARC/lit.local.cfg b/llvm/test/Transforms/SimplifyCFG/SPARC/lit.local.cfg --- a/llvm/test/Transforms/SimplifyCFG/SPARC/lit.local.cfg +++ b/llvm/test/Transforms/SimplifyCFG/SPARC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Sparc' in config.root.targets: +if not "Sparc" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/SimplifyCFG/X86/lit.local.cfg b/llvm/test/Transforms/SimplifyCFG/X86/lit.local.cfg --- a/llvm/test/Transforms/SimplifyCFG/X86/lit.local.cfg +++ b/llvm/test/Transforms/SimplifyCFG/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/lit.local.cfg b/llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/StraightLineStrengthReduce/NVPTX/lit.local.cfg b/llvm/test/Transforms/StraightLineStrengthReduce/NVPTX/lit.local.cfg --- a/llvm/test/Transforms/StraightLineStrengthReduce/NVPTX/lit.local.cfg +++ b/llvm/test/Transforms/StraightLineStrengthReduce/NVPTX/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'NVPTX' in config.root.targets: +if not "NVPTX" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/StraightLineStrengthReduce/X86/lit.local.cfg b/llvm/test/Transforms/StraightLineStrengthReduce/X86/lit.local.cfg --- a/llvm/test/Transforms/StraightLineStrengthReduce/X86/lit.local.cfg +++ b/llvm/test/Transforms/StraightLineStrengthReduce/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/StructurizeCFG/AMDGPU/lit.local.cfg b/llvm/test/Transforms/StructurizeCFG/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/StructurizeCFG/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/StructurizeCFG/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/ThinLTOBitcodeWriter/x86/lit.local.cfg b/llvm/test/Transforms/ThinLTOBitcodeWriter/x86/lit.local.cfg --- a/llvm/test/Transforms/ThinLTOBitcodeWriter/x86/lit.local.cfg +++ b/llvm/test/Transforms/ThinLTOBitcodeWriter/x86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: - config.unsupported = True +if not "X86" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/Transforms/TypePromotion/AArch64/lit.local.cfg b/llvm/test/Transforms/TypePromotion/AArch64/lit.local.cfg --- a/llvm/test/Transforms/TypePromotion/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/TypePromotion/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/TypePromotion/ARM/lit.local.cfg b/llvm/test/Transforms/TypePromotion/ARM/lit.local.cfg --- a/llvm/test/Transforms/TypePromotion/ARM/lit.local.cfg +++ b/llvm/test/Transforms/TypePromotion/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/VectorCombine/AArch64/lit.local.cfg b/llvm/test/Transforms/VectorCombine/AArch64/lit.local.cfg --- a/llvm/test/Transforms/VectorCombine/AArch64/lit.local.cfg +++ b/llvm/test/Transforms/VectorCombine/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/VectorCombine/AMDGPU/lit.local.cfg b/llvm/test/Transforms/VectorCombine/AMDGPU/lit.local.cfg --- a/llvm/test/Transforms/VectorCombine/AMDGPU/lit.local.cfg +++ b/llvm/test/Transforms/VectorCombine/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/VectorCombine/Hexagon/lit.local.cfg b/llvm/test/Transforms/VectorCombine/Hexagon/lit.local.cfg --- a/llvm/test/Transforms/VectorCombine/Hexagon/lit.local.cfg +++ b/llvm/test/Transforms/VectorCombine/Hexagon/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Hexagon' in config.root.targets: +if not "Hexagon" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Transforms/VectorCombine/X86/lit.local.cfg b/llvm/test/Transforms/VectorCombine/X86/lit.local.cfg --- a/llvm/test/Transforms/VectorCombine/X86/lit.local.cfg +++ b/llvm/test/Transforms/VectorCombine/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Verifier/AMDGPU/lit.local.cfg b/llvm/test/Verifier/AMDGPU/lit.local.cfg --- a/llvm/test/Verifier/AMDGPU/lit.local.cfg +++ b/llvm/test/Verifier/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Verifier/ARM/lit.local.cfg b/llvm/test/Verifier/ARM/lit.local.cfg --- a/llvm/test/Verifier/ARM/lit.local.cfg +++ b/llvm/test/Verifier/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Verifier/LoongArch/lit.local.cfg b/llvm/test/Verifier/LoongArch/lit.local.cfg --- a/llvm/test/Verifier/LoongArch/lit.local.cfg +++ b/llvm/test/Verifier/LoongArch/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'LoongArch' in config.root.targets: +if not "LoongArch" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Verifier/Mips/lit.local.cfg b/llvm/test/Verifier/Mips/lit.local.cfg --- a/llvm/test/Verifier/Mips/lit.local.cfg +++ b/llvm/test/Verifier/Mips/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Mips' in config.root.targets: +if not "Mips" in config.root.targets: config.unsupported = True diff --git a/llvm/test/Verifier/SystemZ/lit.local.cfg b/llvm/test/Verifier/SystemZ/lit.local.cfg --- a/llvm/test/Verifier/SystemZ/lit.local.cfg +++ b/llvm/test/Verifier/SystemZ/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'SystemZ' in config.root.targets: +if not "SystemZ" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/UpdateTestChecks/lit.local.cfg b/llvm/test/tools/UpdateTestChecks/lit.local.cfg --- a/llvm/test/tools/UpdateTestChecks/lit.local.cfg +++ b/llvm/test/tools/UpdateTestChecks/lit.local.cfg @@ -10,39 +10,40 @@ from pipes import quote as shell_quote -def add_update_script_substition(name, python_exe=config.python_executable, - extra_args=''): - assert name.startswith('%') - script_path = os.path.join(config.llvm_src_root, 'utils', name[1:] + '.py') +def add_update_script_substition( + name, python_exe=config.python_executable, extra_args="" +): + assert name.startswith("%") + script_path = os.path.join(config.llvm_src_root, "utils", name[1:] + ".py") assert os.path.isfile(script_path) # Specify an explicit default version in UTC tests, so that the --version # embedded in UTC_ARGS does not change in all test expectations every time # the default is bumped. - extra_args += ' --version=1' + extra_args += " --version=1" config.substitutions.append( - (name, "'%s' %s %s" % (python_exe, script_path, extra_args))) + (name, "'%s' %s %s" % (python_exe, script_path, extra_args)) + ) config.test_format = lit.formats.ShTest(execute_external=False) -config.suffixes = ['.test'] +config.suffixes = [".test"] -llc_path = os.path.join(config.llvm_tools_dir, 'llc') +llc_path = os.path.join(config.llvm_tools_dir, "llc") if os.path.isfile(llc_path): - config.available_features.add('llc-binary') - llc_arg = '--llc-binary ' + shell_quote(llc_path) - add_update_script_substition('%update_llc_test_checks', extra_args=llc_arg) - add_update_script_substition('%update_mir_test_checks', extra_args=llc_arg) + config.available_features.add("llc-binary") + llc_arg = "--llc-binary " + shell_quote(llc_path) + add_update_script_substition("%update_llc_test_checks", extra_args=llc_arg) + add_update_script_substition("%update_mir_test_checks", extra_args=llc_arg) -opt_path = os.path.join(config.llvm_tools_dir, 'opt') +opt_path = os.path.join(config.llvm_tools_dir, "opt") if os.path.isfile(opt_path): - config.available_features.add('opt-binary') - opt_arg = '--opt-binary ' + shell_quote(opt_path) - add_update_script_substition('%update_test_checks', extra_args=opt_arg) - add_update_script_substition('%update_analyze_test_checks', - extra_args=opt_arg) + config.available_features.add("opt-binary") + opt_arg = "--opt-binary " + shell_quote(opt_path) + add_update_script_substition("%update_test_checks", extra_args=opt_arg) + add_update_script_substition("%update_analyze_test_checks", extra_args=opt_arg) -llvm_mca_path = os.path.join(config.llvm_tools_dir, 'llvm-mca') +llvm_mca_path = os.path.join(config.llvm_tools_dir, "llvm-mca") if os.path.isfile(llvm_mca_path): - config.available_features.add('llvm-mca-binary') - mca_arg = '--llvm-mca-binary ' + shell_quote(llvm_mca_path) - add_update_script_substition('%update_test_checks', extra_args=mca_arg) + config.available_features.add("llvm-mca-binary") + mca_arg = "--llvm-mca-binary " + shell_quote(llvm_mca_path) + add_update_script_substition("%update_test_checks", extra_args=mca_arg) diff --git a/llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/lit.local.cfg b/llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/lit.local.cfg --- a/llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/lit.local.cfg +++ b/llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/lit.local.cfg @@ -1,3 +1,3 @@ # These tests require opt. -if 'opt-binary' not in config.available_features: +if "opt-binary" not in config.available_features: config.unsupported = True diff --git a/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/lit.local.cfg b/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/lit.local.cfg --- a/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/lit.local.cfg +++ b/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/lit.local.cfg @@ -1,3 +1,3 @@ # These tests require llc. -if 'llc-binary' not in config.available_features: +if "llc-binary" not in config.available_features: config.unsupported = True diff --git a/llvm/test/tools/UpdateTestChecks/update_mir_test_checks/lit.local.cfg b/llvm/test/tools/UpdateTestChecks/update_mir_test_checks/lit.local.cfg --- a/llvm/test/tools/UpdateTestChecks/update_mir_test_checks/lit.local.cfg +++ b/llvm/test/tools/UpdateTestChecks/update_mir_test_checks/lit.local.cfg @@ -1,3 +1,3 @@ # These tests require llc. -if 'llc-binary' not in config.available_features: +if "llc-binary" not in config.available_features: config.unsupported = True diff --git a/llvm/test/tools/UpdateTestChecks/update_test_checks/lit.local.cfg b/llvm/test/tools/UpdateTestChecks/update_test_checks/lit.local.cfg --- a/llvm/test/tools/UpdateTestChecks/update_test_checks/lit.local.cfg +++ b/llvm/test/tools/UpdateTestChecks/update_test_checks/lit.local.cfg @@ -1,3 +1,3 @@ # These tests require llc. -if 'opt-binary' not in config.available_features: +if "opt-binary" not in config.available_features: config.unsupported = True diff --git a/llvm/test/tools/dsymutil/ARM/lit.local.cfg b/llvm/test/tools/dsymutil/ARM/lit.local.cfg --- a/llvm/test/tools/dsymutil/ARM/lit.local.cfg +++ b/llvm/test/tools/dsymutil/ARM/lit.local.cfg @@ -1,10 +1,12 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True if config.llvm_use_sanitizer: - suppr = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'suppressions.txt') - config.environment['LSAN_OPTIONS'] = 'suppressions={}'.format(suppr) + suppr = os.path.join( + os.path.dirname(os.path.realpath(__file__)), "suppressions.txt" + ) + config.environment["LSAN_OPTIONS"] = "suppressions={}".format(suppr) -config.suffixes = ['.test', '.cpp', '.c'] +config.suffixes = [".test", ".cpp", ".c"] diff --git a/llvm/test/tools/dsymutil/X86/lit.local.cfg b/llvm/test/tools/dsymutil/X86/lit.local.cfg --- a/llvm/test/tools/dsymutil/X86/lit.local.cfg +++ b/llvm/test/tools/dsymutil/X86/lit.local.cfg @@ -1,10 +1,12 @@ import os -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True if config.llvm_use_sanitizer: - suppr = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'suppressions.txt') - config.environment['LSAN_OPTIONS'] = 'suppressions={}'.format(suppr) + suppr = os.path.join( + os.path.dirname(os.path.realpath(__file__)), "suppressions.txt" + ) + config.environment["LSAN_OPTIONS"] = "suppressions={}".format(suppr) -config.suffixes = ['.test', '.cpp', '.m', '.s'] +config.suffixes = [".test", ".cpp", ".m", ".s"] diff --git a/llvm/test/tools/dxil-dis/lit.local.cfg b/llvm/test/tools/dxil-dis/lit.local.cfg --- a/llvm/test/tools/dxil-dis/lit.local.cfg +++ b/llvm/test/tools/dxil-dis/lit.local.cfg @@ -1,3 +1,3 @@ if not config.dxil_tests: - config.unsupported = True -config.suffixes = ['.ll'] + config.unsupported = True +config.suffixes = [".ll"] diff --git a/llvm/test/tools/gold/PowerPC/lit.local.cfg b/llvm/test/tools/gold/PowerPC/lit.local.cfg --- a/llvm/test/tools/gold/PowerPC/lit.local.cfg +++ b/llvm/test/tools/gold/PowerPC/lit.local.cfg @@ -1,3 +1,2 @@ -if (not 'ld_plugin' in config.available_features or - not 'PowerPC' in config.root.targets): - config.unsupported = True +if not "ld_plugin" in config.available_features or not "PowerPC" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/tools/gold/X86/lit.local.cfg b/llvm/test/tools/gold/X86/lit.local.cfg --- a/llvm/test/tools/gold/X86/lit.local.cfg +++ b/llvm/test/tools/gold/X86/lit.local.cfg @@ -1,3 +1,2 @@ -if (not 'ld_plugin' in config.available_features or - not 'X86' in config.root.targets): - config.unsupported = True +if not "ld_plugin" in config.available_features or not "X86" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/tools/gold/X86/v1.12/lit.local.cfg b/llvm/test/tools/gold/X86/v1.12/lit.local.cfg --- a/llvm/test/tools/gold/X86/v1.12/lit.local.cfg +++ b/llvm/test/tools/gold/X86/v1.12/lit.local.cfg @@ -1,28 +1,32 @@ import re import subprocess + def is_gold_v1_12_linker_available(): - if not config.gold_executable: - return False - try: - ld_cmd = subprocess.Popen([config.gold_executable, '-v'], - stdout = subprocess.PIPE, - stderr = subprocess.PIPE) - ld_out, _ = ld_cmd.communicate() - ld_out = ld_out.decode() - except: - return False + if not config.gold_executable: + return False + try: + ld_cmd = subprocess.Popen( + [config.gold_executable, "-v"], + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + ) + ld_out, _ = ld_cmd.communicate() + ld_out = ld_out.decode() + except: + return False + + match = re.search(r"GNU gold \(.*\) (\d+)\.(\d+)", ld_out) + if not match: + return False + major = int(match.group(1)) + minor = int(match.group(2)) + if major < 1 or (major == 1 and minor < 12): + return False - match = re.search(r'GNU gold \(.*\) (\d+)\.(\d+)', ld_out) - if not match: - return False - major = int(match.group(1)) - minor = int(match.group(2)) - if major < 1 or (major == 1 and minor < 12): - return False + return True - return True if not is_gold_v1_12_linker_available(): - config.unsupported = True + config.unsupported = True diff --git a/llvm/test/tools/gold/X86/v1.16/lit.local.cfg b/llvm/test/tools/gold/X86/v1.16/lit.local.cfg --- a/llvm/test/tools/gold/X86/v1.16/lit.local.cfg +++ b/llvm/test/tools/gold/X86/v1.16/lit.local.cfg @@ -1,28 +1,32 @@ import re import subprocess + def is_gold_v1_16_linker_available(): - if not config.gold_executable: - return False - try: - ld_cmd = subprocess.Popen([config.gold_executable, '-v'], - stdout = subprocess.PIPE, - stderr = subprocess.PIPE) - ld_out, _ = ld_cmd.communicate() - ld_out = ld_out.decode() - except: - return False + if not config.gold_executable: + return False + try: + ld_cmd = subprocess.Popen( + [config.gold_executable, "-v"], + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + ) + ld_out, _ = ld_cmd.communicate() + ld_out = ld_out.decode() + except: + return False + + match = re.search(r"GNU gold \(.*\) (\d+)\.(\d+)", ld_out) + if not match: + return False + major = int(match.group(1)) + minor = int(match.group(2)) + if major < 1 or (major == 1 and minor < 16): + return False - match = re.search(r'GNU gold \(.*\) (\d+)\.(\d+)', ld_out) - if not match: - return False - major = int(match.group(1)) - minor = int(match.group(2)) - if major < 1 or (major == 1 and minor < 16): - return False + return True - return True if not is_gold_v1_16_linker_available(): - config.unsupported = True + config.unsupported = True diff --git a/llvm/test/tools/gold/lit.local.cfg b/llvm/test/tools/gold/lit.local.cfg --- a/llvm/test/tools/gold/lit.local.cfg +++ b/llvm/test/tools/gold/lit.local.cfg @@ -1,7 +1,7 @@ -if (not 'ld_plugin' in config.available_features): - config.unsupported = True +if not "ld_plugin" in config.available_features: + config.unsupported = True # gold can't load instrumented plugin. -for san in ['asan', 'msan', 'ubsan']: - if (san in config.available_features): - config.unsupported = True +for san in ["asan", "msan", "ubsan"]: + if san in config.available_features: + config.unsupported = True diff --git a/llvm/test/tools/llvm-as/lit.local.cfg b/llvm/test/tools/llvm-as/lit.local.cfg --- a/llvm/test/tools/llvm-as/lit.local.cfg +++ b/llvm/test/tools/llvm-as/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-cfi-verify/AArch64/lit.local.cfg b/llvm/test/tools/llvm-cfi-verify/AArch64/lit.local.cfg --- a/llvm/test/tools/llvm-cfi-verify/AArch64/lit.local.cfg +++ b/llvm/test/tools/llvm-cfi-verify/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-cfi-verify/Unsupported/lit.local.cfg b/llvm/test/tools/llvm-cfi-verify/Unsupported/lit.local.cfg --- a/llvm/test/tools/llvm-cfi-verify/Unsupported/lit.local.cfg +++ b/llvm/test/tools/llvm-cfi-verify/Unsupported/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-cfi-verify/X86/lit.local.cfg b/llvm/test/tools/llvm-cfi-verify/X86/lit.local.cfg --- a/llvm/test/tools/llvm-cfi-verify/X86/lit.local.cfg +++ b/llvm/test/tools/llvm-cfi-verify/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-cov/lit.local.cfg b/llvm/test/tools/llvm-cov/lit.local.cfg --- a/llvm/test/tools/llvm-cov/lit.local.cfg +++ b/llvm/test/tools/llvm-cov/lit.local.cfg @@ -1 +1 @@ -config.suffixes = ['.test', '.m', '.cpp', '.c', '.h'] +config.suffixes = [".test", ".m", ".cpp", ".c", ".h"] diff --git a/llvm/test/tools/llvm-cxxdump/X86/lit.local.cfg b/llvm/test/tools/llvm-cxxdump/X86/lit.local.cfg --- a/llvm/test/tools/llvm-cxxdump/X86/lit.local.cfg +++ b/llvm/test/tools/llvm-cxxdump/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-dlltool/lit.local.cfg b/llvm/test/tools/llvm-dlltool/lit.local.cfg --- a/llvm/test/tools/llvm-dlltool/lit.local.cfg +++ b/llvm/test/tools/llvm-dlltool/lit.local.cfg @@ -1 +1 @@ -config.suffixes.add('.def') +config.suffixes.add(".def") diff --git a/llvm/test/tools/llvm-driver/lit.local.cfg b/llvm/test/tools/llvm-driver/lit.local.cfg --- a/llvm/test/tools/llvm-driver/lit.local.cfg +++ b/llvm/test/tools/llvm-driver/lit.local.cfg @@ -1,4 +1,4 @@ from lit.llvm import llvm_config if llvm_config.use_lld(required=False): - config.available_features.add('lld') + config.available_features.add("lld") diff --git a/llvm/test/tools/llvm-dwarfdump/AArch64/lit.local.cfg b/llvm/test/tools/llvm-dwarfdump/AArch64/lit.local.cfg --- a/llvm/test/tools/llvm-dwarfdump/AArch64/lit.local.cfg +++ b/llvm/test/tools/llvm-dwarfdump/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-dwarfdump/AMDGPU/lit.local.cfg b/llvm/test/tools/llvm-dwarfdump/AMDGPU/lit.local.cfg --- a/llvm/test/tools/llvm-dwarfdump/AMDGPU/lit.local.cfg +++ b/llvm/test/tools/llvm-dwarfdump/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-dwarfdump/ARM/lit.local.cfg b/llvm/test/tools/llvm-dwarfdump/ARM/lit.local.cfg --- a/llvm/test/tools/llvm-dwarfdump/ARM/lit.local.cfg +++ b/llvm/test/tools/llvm-dwarfdump/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-dwarfdump/RISCV/lit.local.cfg b/llvm/test/tools/llvm-dwarfdump/RISCV/lit.local.cfg --- a/llvm/test/tools/llvm-dwarfdump/RISCV/lit.local.cfg +++ b/llvm/test/tools/llvm-dwarfdump/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-dwarfdump/X86/lit.local.cfg b/llvm/test/tools/llvm-dwarfdump/X86/lit.local.cfg --- a/llvm/test/tools/llvm-dwarfdump/X86/lit.local.cfg +++ b/llvm/test/tools/llvm-dwarfdump/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-dwarfdump/XCOFF/lit.local.cfg b/llvm/test/tools/llvm-dwarfdump/XCOFF/lit.local.cfg --- a/llvm/test/tools/llvm-dwarfdump/XCOFF/lit.local.cfg +++ b/llvm/test/tools/llvm-dwarfdump/XCOFF/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-dwarfutil/ELF/X86/lit.local.cfg b/llvm/test/tools/llvm-dwarfutil/ELF/X86/lit.local.cfg --- a/llvm/test/tools/llvm-dwarfutil/ELF/X86/lit.local.cfg +++ b/llvm/test/tools/llvm-dwarfutil/ELF/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-dwp/WebAssembly/lit.local.cfg b/llvm/test/tools/llvm-dwp/WebAssembly/lit.local.cfg --- a/llvm/test/tools/llvm-dwp/WebAssembly/lit.local.cfg +++ b/llvm/test/tools/llvm-dwp/WebAssembly/lit.local.cfg @@ -1,4 +1,4 @@ -if not 'WebAssembly' in config.root.targets: +if not "WebAssembly" in config.root.targets: config.unsupported = True -config.suffixes = ['.s'] +config.suffixes = [".s"] diff --git a/llvm/test/tools/llvm-dwp/X86/lit.local.cfg b/llvm/test/tools/llvm-dwp/X86/lit.local.cfg --- a/llvm/test/tools/llvm-dwp/X86/lit.local.cfg +++ b/llvm/test/tools/llvm-dwp/X86/lit.local.cfg @@ -1,4 +1,4 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True -config.suffixes = ['.test', '.cpp', '.m', '.s'] +config.suffixes = [".test", ".cpp", ".m", ".s"] diff --git a/llvm/test/tools/llvm-exegesis/AArch64/lit.local.cfg b/llvm/test/tools/llvm-exegesis/AArch64/lit.local.cfg --- a/llvm/test/tools/llvm-exegesis/AArch64/lit.local.cfg +++ b/llvm/test/tools/llvm-exegesis/AArch64/lit.local.cfg @@ -1,6 +1,6 @@ -if not ('AArch64' in config.root.targets): +if not ("AArch64" in config.root.targets): # We need support for AArch64. config.unsupported = True -elif not ('aarch64' in config.root.host_triple): +elif not ("aarch64" in config.root.host_triple): # We need to be running on an PPC host. config.unsupported = True diff --git a/llvm/test/tools/llvm-exegesis/Mips/lit.local.cfg b/llvm/test/tools/llvm-exegesis/Mips/lit.local.cfg --- a/llvm/test/tools/llvm-exegesis/Mips/lit.local.cfg +++ b/llvm/test/tools/llvm-exegesis/Mips/lit.local.cfg @@ -1,3 +1,3 @@ -if not ('Mips' in config.root.targets): +if not ("Mips" in config.root.targets): # We need support for Mips. config.unsupported = True diff --git a/llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg b/llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg --- a/llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg +++ b/llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg @@ -1,6 +1,6 @@ -if not ('PowerPC' in config.root.targets): +if not ("PowerPC" in config.root.targets): # We need support for PowerPC. config.unsupported = True -elif not ('powerpc' in config.root.host_triple): +elif not ("powerpc" in config.root.host_triple): # We need to be running on an PPC host. config.unsupported = True diff --git a/llvm/test/tools/llvm-exegesis/X86/lit.local.cfg b/llvm/test/tools/llvm-exegesis/X86/lit.local.cfg --- a/llvm/test/tools/llvm-exegesis/X86/lit.local.cfg +++ b/llvm/test/tools/llvm-exegesis/X86/lit.local.cfg @@ -1,6 +1,6 @@ -if not ('X86' in config.root.targets): +if not ("X86" in config.root.targets): # We need support for X86. config.unsupported = True -elif not ('x86_64' in config.root.host_triple): +elif not ("x86_64" in config.root.host_triple): # We need to be running on an X86 host. config.unsupported = True diff --git a/llvm/test/tools/llvm-exegesis/lit.local.cfg b/llvm/test/tools/llvm-exegesis/lit.local.cfg --- a/llvm/test/tools/llvm-exegesis/lit.local.cfg +++ b/llvm/test/tools/llvm-exegesis/lit.local.cfg @@ -5,7 +5,7 @@ def can_execute_generated_snippets(arch): is_host_arch = arch in config.root.host_triple # 'native' feature is defined as "host arch == default triple arch" - is_native_codegen = 'native' in config.available_features + is_native_codegen = "native" in config.available_features return is_host_arch and is_native_codegen @@ -13,31 +13,36 @@ # We need libpfm to be installed and allow reading perf counters. We can # only know that at runtime, so we try to measure an empty code snippet # and bail out on error. - llvm_exegesis_exe = lit.util.which('llvm-exegesis', config.llvm_tools_dir) + llvm_exegesis_exe = lit.util.which("llvm-exegesis", config.llvm_tools_dir) if llvm_exegesis_exe is None: - print('could not find llvm-exegesis') - return False + print("could not find llvm-exegesis") + return False try: return_code = subprocess.call( - [llvm_exegesis_exe, '-mode', mode, '-snippets-file', '/dev/null'] + extra_options, - stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + [llvm_exegesis_exe, "-mode", mode, "-snippets-file", "/dev/null"] + + extra_options, + stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL, + ) return return_code == 0 except OSError: - print('could not exec llvm-exegesis') + print("could not exec llvm-exegesis") return False -for arch in ['aarch64', 'mips', 'powerpc', 'x86_64']: +for arch in ["aarch64", "mips", "powerpc", "x86_64"]: if can_execute_generated_snippets(arch): - config.available_features.add('exegesis-can-execute-%s' % arch) + config.available_features.add("exegesis-can-execute-%s" % arch) -if can_use_perf_counters('latency'): - config.available_features.add('exegesis-can-measure-latency') +if can_use_perf_counters("latency"): + config.available_features.add("exegesis-can-measure-latency") -if can_use_perf_counters('uops'): - config.available_features.add('exegesis-can-measure-uops') +if can_use_perf_counters("uops"): + config.available_features.add("exegesis-can-measure-uops") -if can_execute_generated_snippets('x86_64'): +if can_execute_generated_snippets("x86_64"): # Check for support of LBR format with cycles. - if can_use_perf_counters('latency', ['-x86-lbr-sample-period', '123', '-repetition-mode', 'loop']): - config.available_features.add('exegesis-can-measure-latency-lbr') + if can_use_perf_counters( + "latency", ["-x86-lbr-sample-period", "123", "-repetition-mode", "loop"] + ): + config.available_features.add("exegesis-can-measure-latency-lbr") diff --git a/llvm/test/tools/llvm-gsymutil/ARM_AArch64/lit.local.cfg b/llvm/test/tools/llvm-gsymutil/ARM_AArch64/lit.local.cfg --- a/llvm/test/tools/llvm-gsymutil/ARM_AArch64/lit.local.cfg +++ b/llvm/test/tools/llvm-gsymutil/ARM_AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not ('ARM' in config.root.targets and 'AArch64' in config.root.targets): +if not ("ARM" in config.root.targets and "AArch64" in config.root.targets): config.unsupported = True diff --git a/llvm/test/tools/llvm-gsymutil/X86/lit.local.cfg b/llvm/test/tools/llvm-gsymutil/X86/lit.local.cfg --- a/llvm/test/tools/llvm-gsymutil/X86/lit.local.cfg +++ b/llvm/test/tools/llvm-gsymutil/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-ifs/lit.local.cfg b/llvm/test/tools/llvm-ifs/lit.local.cfg --- a/llvm/test/tools/llvm-ifs/lit.local.cfg +++ b/llvm/test/tools/llvm-ifs/lit.local.cfg @@ -1 +1 @@ -config.suffixes = ['.ll', '.s', '.test', '.yaml', '.ifs'] +config.suffixes = [".ll", ".s", ".test", ".yaml", ".ifs"] diff --git a/llvm/test/tools/llvm-lib/lit.local.cfg b/llvm/test/tools/llvm-lib/lit.local.cfg --- a/llvm/test/tools/llvm-lib/lit.local.cfg +++ b/llvm/test/tools/llvm-lib/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-lto2/X86/lit.local.cfg b/llvm/test/tools/llvm-lto2/X86/lit.local.cfg --- a/llvm/test/tools/llvm-lto2/X86/lit.local.cfg +++ b/llvm/test/tools/llvm-lto2/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: - config.unsupported = True +if not "X86" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/tools/llvm-mc/lit.local.cfg b/llvm/test/tools/llvm-mc/lit.local.cfg --- a/llvm/test/tools/llvm-mc/lit.local.cfg +++ b/llvm/test/tools/llvm-mc/lit.local.cfg @@ -1,3 +1,3 @@ # Requires a non-empty default triple for these tests -if 'object-emission' not in config.available_features: +if "object-emission" not in config.available_features: config.unsupported = True diff --git a/llvm/test/tools/llvm-mca/AArch64/lit.local.cfg b/llvm/test/tools/llvm-mca/AArch64/lit.local.cfg --- a/llvm/test/tools/llvm-mca/AArch64/lit.local.cfg +++ b/llvm/test/tools/llvm-mca/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-mca/AMDGPU/lit.local.cfg b/llvm/test/tools/llvm-mca/AMDGPU/lit.local.cfg --- a/llvm/test/tools/llvm-mca/AMDGPU/lit.local.cfg +++ b/llvm/test/tools/llvm-mca/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-mca/ARM/lit.local.cfg b/llvm/test/tools/llvm-mca/ARM/lit.local.cfg --- a/llvm/test/tools/llvm-mca/ARM/lit.local.cfg +++ b/llvm/test/tools/llvm-mca/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-mca/JSON/X86/lit.local.cfg b/llvm/test/tools/llvm-mca/JSON/X86/lit.local.cfg --- a/llvm/test/tools/llvm-mca/JSON/X86/lit.local.cfg +++ b/llvm/test/tools/llvm-mca/JSON/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-mca/SystemZ/lit.local.cfg b/llvm/test/tools/llvm-mca/SystemZ/lit.local.cfg --- a/llvm/test/tools/llvm-mca/SystemZ/lit.local.cfg +++ b/llvm/test/tools/llvm-mca/SystemZ/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'SystemZ' in config.root.targets: +if not "SystemZ" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-mca/X86/lit.local.cfg b/llvm/test/tools/llvm-mca/X86/lit.local.cfg --- a/llvm/test/tools/llvm-mca/X86/lit.local.cfg +++ b/llvm/test/tools/llvm-mca/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-mca/lit.local.cfg b/llvm/test/tools/llvm-mca/lit.local.cfg --- a/llvm/test/tools/llvm-mca/lit.local.cfg +++ b/llvm/test/tools/llvm-mca/lit.local.cfg @@ -1,3 +1,3 @@ # Requires a non-empty default triple for these tests -if 'default_triple' not in config.available_features: +if "default_triple" not in config.available_features: config.unsupported = True diff --git a/llvm/test/tools/llvm-ml/lit.local.cfg b/llvm/test/tools/llvm-ml/lit.local.cfg --- a/llvm/test/tools/llvm-ml/lit.local.cfg +++ b/llvm/test/tools/llvm-ml/lit.local.cfg @@ -1,6 +1,6 @@ -if not ('X86' in config.root.targets): +if not ("X86" in config.root.targets): # We need support for X86. config.unsupported = True -config.suffixes.add('.asm') -config.suffixes.add('.blah') +config.suffixes.add(".asm") +config.suffixes.add(".blah") diff --git a/llvm/test/tools/llvm-nm/AArch64/lit.local.cfg b/llvm/test/tools/llvm-nm/AArch64/lit.local.cfg --- a/llvm/test/tools/llvm-nm/AArch64/lit.local.cfg +++ b/llvm/test/tools/llvm-nm/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-nm/ARM/lit.local.cfg b/llvm/test/tools/llvm-nm/ARM/lit.local.cfg --- a/llvm/test/tools/llvm-nm/ARM/lit.local.cfg +++ b/llvm/test/tools/llvm-nm/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-nm/X86/lit.local.cfg b/llvm/test/tools/llvm-nm/X86/lit.local.cfg --- a/llvm/test/tools/llvm-nm/X86/lit.local.cfg +++ b/llvm/test/tools/llvm-nm/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-nm/wasm/lit.local.cfg b/llvm/test/tools/llvm-nm/wasm/lit.local.cfg --- a/llvm/test/tools/llvm-nm/wasm/lit.local.cfg +++ b/llvm/test/tools/llvm-nm/wasm/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'WebAssembly' in config.root.targets: +if not "WebAssembly" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-objdump/AMDGPU/lit.local.cfg b/llvm/test/tools/llvm-objdump/AMDGPU/lit.local.cfg --- a/llvm/test/tools/llvm-objdump/AMDGPU/lit.local.cfg +++ b/llvm/test/tools/llvm-objdump/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-objdump/ELF/AArch64/lit.local.cfg b/llvm/test/tools/llvm-objdump/ELF/AArch64/lit.local.cfg --- a/llvm/test/tools/llvm-objdump/ELF/AArch64/lit.local.cfg +++ b/llvm/test/tools/llvm-objdump/ELF/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-objdump/ELF/AMDGPU/lit.local.cfg b/llvm/test/tools/llvm-objdump/ELF/AMDGPU/lit.local.cfg --- a/llvm/test/tools/llvm-objdump/ELF/AMDGPU/lit.local.cfg +++ b/llvm/test/tools/llvm-objdump/ELF/AMDGPU/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AMDGPU' in config.root.targets: +if not "AMDGPU" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-objdump/ELF/ARM/lit.local.cfg b/llvm/test/tools/llvm-objdump/ELF/ARM/lit.local.cfg --- a/llvm/test/tools/llvm-objdump/ELF/ARM/lit.local.cfg +++ b/llvm/test/tools/llvm-objdump/ELF/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-objdump/ELF/Hexagon/lit.local.cfg b/llvm/test/tools/llvm-objdump/ELF/Hexagon/lit.local.cfg --- a/llvm/test/tools/llvm-objdump/ELF/Hexagon/lit.local.cfg +++ b/llvm/test/tools/llvm-objdump/ELF/Hexagon/lit.local.cfg @@ -1,7 +1,7 @@ import platform -if not 'Hexagon' in config.root.targets: +if not "Hexagon" in config.root.targets: config.unsupported = True -if platform.system() in ['Windows']: - config.unsupported = True +if platform.system() in ["Windows"]: + config.unsupported = True diff --git a/llvm/test/tools/llvm-objdump/ELF/Lanai/lit.local.cfg b/llvm/test/tools/llvm-objdump/ELF/Lanai/lit.local.cfg --- a/llvm/test/tools/llvm-objdump/ELF/Lanai/lit.local.cfg +++ b/llvm/test/tools/llvm-objdump/ELF/Lanai/lit.local.cfg @@ -1,4 +1,4 @@ import platform -if not 'Lanai' in config.root.targets: +if not "Lanai" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-objdump/ELF/Mips/lit.local.cfg b/llvm/test/tools/llvm-objdump/ELF/Mips/lit.local.cfg --- a/llvm/test/tools/llvm-objdump/ELF/Mips/lit.local.cfg +++ b/llvm/test/tools/llvm-objdump/ELF/Mips/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'Mips' in config.root.targets: +if not "Mips" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-objdump/ELF/PowerPC/lit.local.cfg b/llvm/test/tools/llvm-objdump/ELF/PowerPC/lit.local.cfg --- a/llvm/test/tools/llvm-objdump/ELF/PowerPC/lit.local.cfg +++ b/llvm/test/tools/llvm-objdump/ELF/PowerPC/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: - config.unsupported = True +if not "PowerPC" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/tools/llvm-objdump/ELF/RISCV/lit.local.cfg b/llvm/test/tools/llvm-objdump/ELF/RISCV/lit.local.cfg --- a/llvm/test/tools/llvm-objdump/ELF/RISCV/lit.local.cfg +++ b/llvm/test/tools/llvm-objdump/ELF/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-objdump/MachO/AArch64/lit.local.cfg b/llvm/test/tools/llvm-objdump/MachO/AArch64/lit.local.cfg --- a/llvm/test/tools/llvm-objdump/MachO/AArch64/lit.local.cfg +++ b/llvm/test/tools/llvm-objdump/MachO/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-objdump/MachO/ARM/lit.local.cfg b/llvm/test/tools/llvm-objdump/MachO/ARM/lit.local.cfg --- a/llvm/test/tools/llvm-objdump/MachO/ARM/lit.local.cfg +++ b/llvm/test/tools/llvm-objdump/MachO/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-objdump/MachO/lit.local.cfg b/llvm/test/tools/llvm-objdump/MachO/lit.local.cfg --- a/llvm/test/tools/llvm-objdump/MachO/lit.local.cfg +++ b/llvm/test/tools/llvm-objdump/MachO/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-objdump/X86/lit.local.cfg b/llvm/test/tools/llvm-objdump/X86/lit.local.cfg --- a/llvm/test/tools/llvm-objdump/X86/lit.local.cfg +++ b/llvm/test/tools/llvm-objdump/X86/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-objdump/XCOFF/lit.local.cfg b/llvm/test/tools/llvm-objdump/XCOFF/lit.local.cfg --- a/llvm/test/tools/llvm-objdump/XCOFF/lit.local.cfg +++ b/llvm/test/tools/llvm-objdump/XCOFF/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-objdump/wasm/lit.local.cfg b/llvm/test/tools/llvm-objdump/wasm/lit.local.cfg --- a/llvm/test/tools/llvm-objdump/wasm/lit.local.cfg +++ b/llvm/test/tools/llvm-objdump/wasm/lit.local.cfg @@ -1,2 +1,2 @@ -if 'WebAssembly' not in config.root.targets: +if "WebAssembly" not in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-pdbutil/lit.local.cfg b/llvm/test/tools/llvm-pdbutil/lit.local.cfg --- a/llvm/test/tools/llvm-pdbutil/lit.local.cfg +++ b/llvm/test/tools/llvm-pdbutil/lit.local.cfg @@ -1,2 +1,2 @@ if config.have_dia_sdk: - config.available_features.add("diasdk") + config.available_features.add("diasdk") diff --git a/llvm/test/tools/llvm-profdata/lit.local.cfg b/llvm/test/tools/llvm-profdata/lit.local.cfg --- a/llvm/test/tools/llvm-profdata/lit.local.cfg +++ b/llvm/test/tools/llvm-profdata/lit.local.cfg @@ -1 +1 @@ -config.suffixes.add('.proftext') +config.suffixes.add(".proftext") diff --git a/llvm/test/tools/llvm-profgen/lit.local.cfg b/llvm/test/tools/llvm-profgen/lit.local.cfg --- a/llvm/test/tools/llvm-profgen/lit.local.cfg +++ b/llvm/test/tools/llvm-profgen/lit.local.cfg @@ -1,7 +1,7 @@ import subprocess import lit.util -config.suffixes = ['.test', '.ll', '.s', '.yaml'] +config.suffixes = [".test", ".ll", ".s", ".yaml"] -if not 'X86' in config.root.targets: - config.unsupported = True +if not "X86" in config.root.targets: + config.unsupported = True diff --git a/llvm/test/tools/llvm-readobj/ELF/AArch64/lit.local.cfg b/llvm/test/tools/llvm-readobj/ELF/AArch64/lit.local.cfg --- a/llvm/test/tools/llvm-readobj/ELF/AArch64/lit.local.cfg +++ b/llvm/test/tools/llvm-readobj/ELF/AArch64/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'AArch64' in config.root.targets: +if not "AArch64" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-readobj/ELF/ARM/lit.local.cfg b/llvm/test/tools/llvm-readobj/ELF/ARM/lit.local.cfg --- a/llvm/test/tools/llvm-readobj/ELF/ARM/lit.local.cfg +++ b/llvm/test/tools/llvm-readobj/ELF/ARM/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'ARM' in config.root.targets: +if not "ARM" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-readobj/ELF/MSP430/lit.local.cfg b/llvm/test/tools/llvm-readobj/ELF/MSP430/lit.local.cfg --- a/llvm/test/tools/llvm-readobj/ELF/MSP430/lit.local.cfg +++ b/llvm/test/tools/llvm-readobj/ELF/MSP430/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'MSP430' in config.root.targets: +if not "MSP430" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-readobj/ELF/RISCV/lit.local.cfg b/llvm/test/tools/llvm-readobj/ELF/RISCV/lit.local.cfg --- a/llvm/test/tools/llvm-readobj/ELF/RISCV/lit.local.cfg +++ b/llvm/test/tools/llvm-readobj/ELF/RISCV/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'RISCV' in config.root.targets: +if not "RISCV" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/llvm-readobj/XCOFF/lit.local.cfg b/llvm/test/tools/llvm-readobj/XCOFF/lit.local.cfg --- a/llvm/test/tools/llvm-readobj/XCOFF/lit.local.cfg +++ b/llvm/test/tools/llvm-readobj/XCOFF/lit.local.cfg @@ -1,2 +1,2 @@ -if not 'PowerPC' in config.root.targets: +if not "PowerPC" in config.root.targets: config.unsupported = True diff --git a/llvm/test/tools/lto/lit.local.cfg b/llvm/test/tools/lto/lit.local.cfg --- a/llvm/test/tools/lto/lit.local.cfg +++ b/llvm/test/tools/lto/lit.local.cfg @@ -1,6 +1,6 @@ -if not ('ld64_plugin' in config.available_features and 'X86' in config.root.targets): +if not ("ld64_plugin" in config.available_features and "X86" in config.root.targets): config.unsupported = True # These tests invoke ld64 from the system, which is not leak-free if "Address" in config.llvm_use_sanitizer: - config.environment['ASAN_OPTIONS'] = 'detect_leaks=0' + config.environment["ASAN_OPTIONS"] = "detect_leaks=0" diff --git a/llvm/test/tools/opt-viewer/lit.local.cfg b/llvm/test/tools/opt-viewer/lit.local.cfg --- a/llvm/test/tools/opt-viewer/lit.local.cfg +++ b/llvm/test/tools/opt-viewer/lit.local.cfg @@ -1,10 +1,10 @@ import sys -if 'have_opt_viewer_modules' not in config.available_features: +if "have_opt_viewer_modules" not in config.available_features: config.unsupported = True # Windows has different multiprocessing behavior than non-Windows, which causes # all of the tests to fail presently under Windows. Disable this until those # can be resolved. -if sys.platform == 'win32': +if sys.platform == "win32": config.unsupported = True diff --git a/llvm/test/tools/sancov/lit.local.cfg b/llvm/test/tools/sancov/lit.local.cfg --- a/llvm/test/tools/sancov/lit.local.cfg +++ b/llvm/test/tools/sancov/lit.local.cfg @@ -1,4 +1,4 @@ # These tests require a registered x86 backend. -if not 'X86' in config.root.targets: +if not "X86" in config.root.targets: config.unsupported = True diff --git a/llvm/utils/lit/tests/Inputs/discovery/subdir/lit.local.cfg b/llvm/utils/lit/tests/Inputs/discovery/subdir/lit.local.cfg --- a/llvm/utils/lit/tests/Inputs/discovery/subdir/lit.local.cfg +++ b/llvm/utils/lit/tests/Inputs/discovery/subdir/lit.local.cfg @@ -1,4 +1,4 @@ -config.suffixes = ['.py'] +config.suffixes = [".py"] # Check that the arbitrary config values in our parent was inherited. -assert hasattr(config, 'an_extra_variable') +assert hasattr(config, "an_extra_variable") diff --git a/llvm/utils/lit/tests/Inputs/shtest-format/external_shell/lit.local.cfg b/llvm/utils/lit/tests/Inputs/shtest-format/external_shell/lit.local.cfg --- a/llvm/utils/lit/tests/Inputs/shtest-format/external_shell/lit.local.cfg +++ b/llvm/utils/lit/tests/Inputs/shtest-format/external_shell/lit.local.cfg @@ -1,2 +1,3 @@ import lit.formats + config.test_format = lit.formats.ShTest(execute_external=True) diff --git a/llvm/utils/lit/tests/Inputs/shtest-run-at-line/external-shell/lit.local.cfg b/llvm/utils/lit/tests/Inputs/shtest-run-at-line/external-shell/lit.local.cfg --- a/llvm/utils/lit/tests/Inputs/shtest-run-at-line/external-shell/lit.local.cfg +++ b/llvm/utils/lit/tests/Inputs/shtest-run-at-line/external-shell/lit.local.cfg @@ -1,2 +1,3 @@ import lit.formats + config.test_format = lit.formats.ShTest(execute_external=True) diff --git a/llvm/utils/lit/tests/Inputs/shtest-run-at-line/internal-shell/lit.local.cfg b/llvm/utils/lit/tests/Inputs/shtest-run-at-line/internal-shell/lit.local.cfg --- a/llvm/utils/lit/tests/Inputs/shtest-run-at-line/internal-shell/lit.local.cfg +++ b/llvm/utils/lit/tests/Inputs/shtest-run-at-line/internal-shell/lit.local.cfg @@ -1,2 +1,3 @@ import lit.formats + config.test_format = lit.formats.ShTest(execute_external=False)