CmdID

CmdID / Commands

filecheck

Flexible pattern matching file verifier. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Flexible pattern matching file verifier. It is typically used from LLVM regression tests and forms a part of a lit test.

Match input_file content with pattern file check_file

FileCheck --input-file=path/to/input_file path/to/check_fileIdentify

Match input from the stdin with pattern file check_file

echo "some_text" | FileCheck path/to/check_fileIdentify

Match with the specified custom check prefix (Note: The default prefix is CHECK)

echo "some_text" | FileCheck --check-prefix=prefix path/to/check_fileIdentify

Print good directive pattern matches

echo "some_text" | FileCheck -v path/to/check_fileIdentify

Input llvm_code.ll into llvm-as, then pipe the output into FileCheck to match

llvm-as path/to/llvm_code.ll | FileCheck path/to/check_fileIdentify