Skip to content

TargetLibraryInfo: Add tests for function availability #142536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: users/arsenm/llvm-tli-checker/refactor-remove-tli-name-list-struct
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/aarch64-unknown-windows-msvc.test

Large diffs are not rendered by default.

527 changes: 527 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/amdgcn-amd-amdhsa.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/arm64-apple-darwin.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/arm64_32-apple-watchos.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/armv7-apple-ios.test

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/armv7s-apple-ios7.0.test

Large diffs are not rendered by default.

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/i386-apple-macosx10.6.0.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/i386-apple-macosx10.7.0.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/i386-pc-linux-gnu.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/i386-pc-windows-msvc.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/i386-unknown-linux-musl.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/i686-apple-macosx.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/i686-pc-cygwin.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/linux-arm-gnueabihf.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/nvptx64-nvidia-cuda.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/powerpc64-ibm-aix-xcoff.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/sparc64-unknown-solaris.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/thumbv7-apple-ios3.0.0.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/thumbv7-windows-msvc.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/wasm64-unknown-emscripten.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/x86_64-apple-darwin10.9.0.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/x86_64-apple-darwin10.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/x86_64-apple-macosx10.5.0.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/x86_64-pc-cygwin.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/x86_64-pc-windows-msvc.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/x86_64-pc-windows-msvc17.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/x86_64-pc-windows-msvc19.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/x86_64-scei-ps4.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/x86_64-sie-ps5.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/x86_64-unknown-freebsd.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/x86_64-unknown-unknown-gnu.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/x86_64-unknown-unknown.test

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions llvm/test/Analysis/TargetLibraryInfo/xcore-xmos-elf.test

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions llvm/utils/emit-llvm-tli-checker-test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env python3

"""A test case generation script.

Generate check lines for all known TargetLibraryInfo functions

"""

import sys
import os
import subprocess

if len(sys.argv) < 2:
print("usage: " + sys.argv[0] + " target-triple-name > target-triple-name.test")
exit(1)

triple = sys.argv[1]
process = subprocess.Popen(
"llvm-tli-checker --dump-tli --triple=" + triple,
shell=True,
stdin=subprocess.DEVNULL,
stdout=subprocess.PIPE,
universal_newlines=True)

print("# RUN: llvm-tli-checker --dump-tli --triple=" + triple + " | FileCheck %s\n")

First = True
for line in process.stdout.readlines():
if First:
print("CHECK: " + line.strip());
First = False
else:
print("CHECK-NEXT: " + line.strip());
Loading