Lines Matching refs:protected
2 // RUN: %clang_cc1 -std=cl2.0 -fapply-global-visibility-to-externs -fvisibility protected -triple a…
8 // FVIS-PROTECTED: @glob = protected local_unnamed_addr
15 // FVIS-DEFAULT: @glob_protected = protected local_unnamed_addr
16 // FVIS-PROTECTED: @glob_protected = protected local_unnamed_addr
17 // FVIS-HIDDEN: @glob_protected = protected local_unnamed_addr
18 __attribute__((visibility("protected"))) int glob_protected = 0;
25 // FVIS-PROTECTED: @ext = external protected local_unnamed_addr
32 // FVIS-DEFAULT: @ext_protected = external protected local_unnamed_addr
33 // FVIS-PROTECTED: @ext_protected = external protected local_unnamed_addr
34 // FVIS-HIDDEN: @ext_protected = external protected local_unnamed_addr
35 __attribute__((visibility("protected"))) extern int ext_protected;
42 // FVIS-PROTECTED: define protected amdgpu_kernel void @kern()
43 // FVIS-HIDDEN: define protected amdgpu_kernel void @kern()
45 // FVIS-DEFAULT: define protected amdgpu_kernel void @kern_hidden()
46 // FVIS-PROTECTED: define protected amdgpu_kernel void @kern_hidden()
47 // FVIS-HIDDEN: define protected amdgpu_kernel void @kern_hidden()
49 // FVIS-DEFAULT: define protected amdgpu_kernel void @kern_protected()
50 // FVIS-PROTECTED: define protected amdgpu_kernel void @kern_protected()
51 // FVIS-HIDDEN: define protected amdgpu_kernel void @kern_protected()
52 __attribute__((visibility("protected"))) kernel void kern_protected() {}
59 // FVIS-PROTECTED: define protected void @func()
66 // FVIS-DEFAULT: define protected void @func_protected()
67 // FVIS-PROTECTED: define protected void @func_protected()
68 // FVIS-HIDDEN: define protected void @func_protected()
69 __attribute__((visibility("protected"))) void func_protected() {}
77 __attribute__((visibility("protected"))) extern kernel void ext_kern_protected();
82 __attribute__((visibility("protected"))) extern void ext_func_protected();
98 // FVIS-PROTECTED: declare protected amdgpu_kernel void @ext_kern()
99 // FVIS-HIDDEN: declare protected amdgpu_kernel void @ext_kern()
101 // FVIS-DEFAULT: declare protected amdgpu_kernel void @ext_kern_hidden()
102 // FVIS-PROTECTED: declare protected amdgpu_kernel void @ext_kern_hidden()
103 // FVIS-HIDDEN: declare protected amdgpu_kernel void @ext_kern_hidden()
105 // FVIS-DEFAULT: declare protected amdgpu_kernel void @ext_kern_protected()
106 // FVIS-PROTECTED: declare protected amdgpu_kernel void @ext_kern_protected()
107 // FVIS-HIDDEN: declare protected amdgpu_kernel void @ext_kern_protected()
115 // FVIS-PROTECTED: declare protected void @ext_func()
122 // FVIS-DEFAULT: declare protected void @ext_func_protected()
123 // FVIS-PROTECTED: declare protected void @ext_func_protected()
124 // FVIS-HIDDEN: declare protected void @ext_func_protected()