brintos

brintos / llvm-project-archived public Read only

0
0
Text · 896 B · e969eab Raw
19 lines · plain
1; Check when kernel-info is enabled in the AMD GPU target backend.2 3; REQUIRES: amdgpu-registered-target4 5; DEFINE: %{opt} = opt -disable-output %S/Inputs/test.ll \6; DEFINE:              -mtriple="amdgcn-amd-amdhsa" 2>&17; DEFINE: %{fcheck-on} = FileCheck -match-full-lines %S/Inputs/test.ll8; DEFINE: %{fcheck-off} = FileCheck -allow-empty -check-prefixes=NONE \9; DEFINE:                 %S/Inputs/test.ll10 11; By default, kernel-info is in the LTO pipeline.  To see output, the LTO12; pipeline must run, -no-kernel-info-end-lto must not be specified, and remarks13; 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