xref: /aosp_15_r20/external/llvm/test/CodeGen/NVPTX/global-visibility.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; PTX does not support .hidden or .protected.
4*9880d681SAndroid Build Coastguard Worker; Make sure we do not emit them.
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine hidden void @f_hidden() {
7*9880d681SAndroid Build Coastguard Worker       ret void
8*9880d681SAndroid Build Coastguard Worker}
9*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: .hidden
10*9880d681SAndroid Build Coastguard Worker; CHECK: .visible .func f_hidden
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Workerdefine protected void @f_protected() {
13*9880d681SAndroid Build Coastguard Worker       ret void
14*9880d681SAndroid Build Coastguard Worker}
15*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: .protected
16*9880d681SAndroid Build Coastguard Worker; CHECK: .visible .func f_protected
17