We have a downstream project with a command-line utility that operates pretty much exactly like `opt`. So it would make sense for us to maintain tests with update_test_checks.py with our custom tool substituted for `opt`, as this change allows. Differential Revision: https://reviews.llvm.org/D136329
7 lines
138 B
LLVM
7 lines
138 B
LLVM
; RUN: llvm-extract -S --func=foo %s | FileCheck --check-prefixes=CHECK %s
|
|
|
|
define i32 @foo(i32 %x) {
|
|
%y = add i32 %x, 1
|
|
ret i32 %y
|
|
}
|