1; Check when kernel-info is enabled in the AMD GPU target backend. 2 3; REQUIRES: amdgpu-registered-target 4 5; DEFINE: %{opt} = opt -disable-output %S/Inputs/test.ll \ 6; DEFINE: -mtriple="amdgcn-amd-amdhsa" 2>&1 7; DEFINE: %{fcheck-on} = FileCheck -match-full-lines %S/Inputs/test.ll 8; DEFINE: %{fcheck-off} = FileCheck -allow-empty -check-prefixes=NONE \ 9; DEFINE: %S/Inputs/test.ll 10 11; By default, kernel-info is in the LTO pipeline. To see output, the LTO 12; pipeline must run, -no-kernel-info-end-lto must not be specified, and remarks 13; must be enabled. 14; RUN: %{opt} -passes='lto<O2>' -pass-remarks=kernel-info | %{fcheck-on} 15; RUN: %{opt} -passes='default<O2>' -pass-remarks=kernel-info | %{fcheck-off} 16; RUN: %{opt} -passes='lto<O2>' -pass-remarks=kernel-info \ 17; RUN: -no-kernel-info-end-lto | %{fcheck-off} 18; RUN: %{opt} -passes='lto<O2>' | %{fcheck-off} 19