| /llvm-project-15.0.7/clang/test/OpenMP/ |
| H A D | target_vla_messages.cpp | 24 int vla[arg]; in declare() local 52 T vla[arg]; in target_template() local 62 int vla[arg]; in target() local 72 int vla[arg]; in target() local 84 int vla[arg]; in teams_reduction() local 94 #pragma omp target map(vla) in teams_reduction() 102 #pragma omp target map(vla[0:2]) in teams_reduction() 125 int vla[arg]; in parallel_reduction() local 135 #pragma omp target map(vla) in parallel_reduction() 166 int vla[arg]; in for_reduction() local [all …]
|
| H A D | target_data_use_device_addr_codegen.cpp | 38 float vla[(int)a]; in main() local 41 #pragma omp target data use_device_addr(a, ptr [3:4], ref, ptr[0], arr[:(int)a], vla[0]) in main() 42 ++a, ++*ptr, ++ref, ++arr[0], ++vla[0]; in main()
|
| H A D | target_map_codegen_12.cpp | 47 double vla[2][a]; in implicit_maps_variable_length_array() local 87 vla[1][3] += 1.0; in implicit_maps_variable_length_array()
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | vla.c | 12 int vla[x]; // expected-warning{{Declared variable-length array (VLA) has zero size}} in check_zero_sized_VLA() local 22 int vla[x]; // expected-warning{{Declared variable-length array (VLA) has negative size}} in vla_allocate_signed() local 26 int vla[x]; // no-warning in vla_allocate_unsigned() local 39 int vla[x]; // expected-warning{{Declared variable-length array (VLA) has negative size}} in check_negative_sized_VLA_3() local 44 int vla[x]; // no-warning in check_negative_sized_VLA_4() local 49 int vla[x]; // expected-warning{{Declared variable-length array (VLA) has negative size}} in check_negative_sized_VLA_5() local 54 int vla[x]; // no-warning in check_negative_sized_VLA_6() local 59 int vla[x + 2]; // no-warning in check_negative_sized_VLA_7() local 69 int vla[x]; // no-warning in check_negative_sized_VLA_9() local 74 int vla[x]; // expected-warning{{Declared variable-length array (VLA) has negative size}} in check_negative_sized_VLA_10_sub() local [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AArch64/ |
| H A D | machine-outliner-retaddr-sign-sp-mod.ll | 14 %vla = alloca i32, i64 %0, align 4 15 store volatile i32* %vla, i32** @v, align 8 16 store volatile i32* %vla, i32** @v, align 8 17 store volatile i32* %vla, i32** @v, align 8 18 store volatile i32* %vla, i32** @v, align 8 19 store volatile i32* %vla, i32** @v, align 8 20 store volatile i32* %vla, i32** @v, align 8 32 %vla = alloca i32, i64 %0, align 4 34 store volatile i32* %vla, i32** @v, align 8 35 store volatile i32* %vla, i32** @v, align 8 [all …]
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/X86/ |
| H A D | vla.ll | 3 ; CHECK: ##DEBUG_VALUE: vla:a <- [DW_OP_deref] [{{\$r[a-z]+}}+0] 9 ; int vla(int n) { 16 ; return vla(argc); 19 ; ModuleID = 'vla.c' 24 define i32 @vla(i32 %n) nounwind ssp uwtable !dbg !4 { 35 %vla = alloca i32, i64 %1, align 16, !dbg !17 37 %arrayidx = getelementptr inbounds i32, i32* %vla, i64 0, !dbg !22 42 %arrayidx1 = getelementptr inbounds i32, i32* %vla, i64 %idxprom, !dbg !23 71 %call = call i32 @vla(i32 %0), !dbg !28 79 !1 = !DIFile(filename: "vla.c", directory: "") [all …]
|
| H A D | op_deref.ll | 18 ; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000067] = "vla") 22 ; vla should have a register-indirect address at one point. 23 ; ASM-CHECK: DEBUG_VALUE: vla <- [DW_OP_deref] [$rax+0] 40 %vla = alloca i32, i64 %1, align 16, !dbg !12 41 call void @llvm.dbg.declare(metadata i32* %vla, metadata !14, metadata !30), !dbg !18 58 %arrayidx = getelementptr inbounds i32, i32* %vla, i64 %idxprom, !dbg !23 94 !14 = !DILocalVariable(name: "vla", line: 3, scope: !13, file: !6, type: !15)
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/ARM/ |
| H A D | lowerbdgdeclare_vla.ll | 8 ; float vla[count]; 9 ; vla[0] = r; 11 ; vla[i] /= r; 25 %vla = alloca float, i32 %conv, align 4, !dbg !24 26 …tail call void @llvm.dbg.declare(metadata float* %vla, metadata !14, metadata !DIExpression(DW_OP_… 28 ; CHECK: call void @llvm.dbg.declare(metadata float* %vla, metadata ![[VLA:.*]], metadata {{.*}}) 31 ; the backend interprets this as "vla has the location of %r". 32 store float %r, float* %vla, align 4, !dbg !25, !tbaa !26 40 %arrayidx2 = getelementptr inbounds float, float* %vla, i32 %i.09, !dbg !31 49 %arrayidx2.phi.trans.insert = getelementptr inbounds float, float* %vla, i32 %inc [all …]
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | scope-check.c | 197 int vla[n]; in test13() local 209 int vla[n]; in test14() local 211 vla[n-1] = 0; in test14() 227 char vla[n]; // expected-note {{jump bypasses initialization}} in test15() local 229 vla[0] = 'a'; in test15()
|
| H A D | c11-typedef-redef.c | 12 typedef int vla[N]; // expected-note{{previous definition is here}} in f() typedef 13 …typedef int vla[N]; // expected-error{{redefinition of typedef for variably-modified type 'int[N]'… in f() typedef
|
| H A D | block-misc.c | 205 int vla[n]; // expected-note {{declared here}} in test20() local 207 vla[1] = 4341; in test20() 209 …(void)vla[1]; // expected-error {{cannot refer to declaration with a variably modified type insid… in test20()
|
| /llvm-project-15.0.7/cross-project-tests/debuginfo-tests/dexter-tests/ |
| H A D | vla.c | 10 int vla[size]; in init_vla() local 12 vla[i] = size-i; in init_vla() 13 vla[0] = size; // DexLabel('end_init') in init_vla()
|
| /llvm-project-15.0.7/lldb/test/API/lang/c/vla/ |
| H A D | main.c | 4 int vla[a]; in foo() local 7 vla[i] = a-i; in foo() 10 return vla[a-1]; in foo()
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | stack-clash-protection.c | 15 void vla(int n) { in vla() function 16 volatile int vla[n]; in vla() local 17 __builtin_memset(&vla[0], 0, 1); in vla()
|
| H A D | debug-info-vla.c | 10 int vla[s]; in testVLAwithSize() local 13 vla[i] = i*i; in testVLAwithSize()
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | trivial-auto-var-init.cpp | 171 int vla[size]; in test_vla() local 172 int *ptr = vla; in test_vla() 258 } vla[size]; in test_struct_vla() local 259 void *ptr = static_cast<void*>(vla); in test_struct_vla()
|
| /llvm-project-15.0.7/llvm/test/Verifier/ |
| H A D | invalid-disubrange-count-node.ll | 6 %vla = alloca i32, i64 %0, align 16 7 call void @llvm.dbg.declare(metadata i32* %vla, metadata !19, metadata !12), !dbg !18 18 !1 = !DIFile(filename: "vla.c", directory: "/path/to") 33 !19 = !DILocalVariable(name: "vla", scope: !7, file: !1, line: 21, type: !20)
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Thumb2/ |
| H A D | pacbti-m-vla.ll | 18 %vla = alloca i32, i32 %n, align 4 19 %call = call i32 @g(i32 %n, i32* nonnull %vla) #0 41 %arrayidx.epil = getelementptr inbounds i32, i32* %vla, i32 %i.010.unr 55 %arrayidx = getelementptr inbounds i32, i32* %vla, i32 %i.010 59 %arrayidx.1 = getelementptr inbounds i32, i32* %vla, i32 %inc 63 %arrayidx.2 = getelementptr inbounds i32, i32* %vla, i32 %inc.1 67 %arrayidx.3 = getelementptr inbounds i32, i32* %vla, i32 %inc.2 77 %arrayidx.epil.1 = getelementptr inbounds i32, i32* %vla, i32 %inc.epil 85 %arrayidx.epil.2 = getelementptr inbounds i32, i32* %vla, i32 %inc.epil.1
|
| /llvm-project-15.0.7/llvm/test/Transforms/IndVarSimplify/ |
| H A D | sink-alloca.ll | 35 ; CHECK-NEXT: %vla = alloca i8* 38 %vla = alloca i8*, i64 %n, align 16 40 %vla.i = alloca i8*, i64 %n, align 16 46 %arrayidx.i = getelementptr inbounds i8*, i8** %vla.i, i64 %indvars.iv37.i 54 %call1 = call i8* (...) @a(i8** %vla) nounwind
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | dynamic-allocas-VLAs.ll | 53 %vla = alloca i32, i64 %sz, align 16 54 call void @t3_helper(ptr %a, ptr %vla) nounwind 76 %vla = alloca i32, i64 %sz, align 16 77 call void @t4_helper(ptr %a, ptr %vla, ptr %v) nounwind 135 %vla = alloca i32, i64 %sz, align 16 136 call void @t6_helper1(ptr %a, ptr %vla) nounwind 157 %vla = alloca i32, i64 %0, align 16 159 call void @bar(i32 %1, ptr %vla, ptr byval(%struct.struct_t) align 8 %arg1)
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Mips/GlobalISel/legalizer/ |
| H A D | dyn_stackalloc.mir | 11 %vla = alloca i8, i32 %add, align 1 12 call void @llvm.memset.p0i8.i32(i8* align 1 %vla, i8 %c, i32 %N, i1 false) 13 %arrayidx = getelementptr inbounds i8, i8* %vla, i32 %N 15 %call = call i32 @puts(i8* %vla) 25 - { id: 0, name: vla, type: variable-sized, alignment: 1 } 74 G_MEMSET %10(p0), %0(s8), %1(s32), 0 :: (store (s8) into %ir.vla)
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/Generic/ |
| H A D | disubrange_vla_no_dbgvalue.ll | 3 ; RUN: llvm-dwarfdump -verbose -name=vla %t > %t2 8 ; - First to get the debug entry for 'vla', to get the array type node. 28 !1 = !DIFile(filename: "vla.c", directory: "/path/to") 42 !15 = !DILocalVariable(name: "vla", scope: !7, file: !1, line: 21, type: !16)
|
| /llvm-project-15.0.7/llvm/test/Bitcode/ |
| H A D | disubrange.ll | 8 %vla = alloca i32, i64 %0, align 16 9 call void @llvm.dbg.declare(metadata i32* %vla, metadata !19, metadata !12), !dbg !18 20 !1 = !DIFile(filename: "vla.c", directory: "/path/to") 35 !19 = !DILocalVariable(name: "vla", scope: !7, file: !1, line: 21, type: !20)
|
| /llvm-project-15.0.7/llvm/test/Transforms/Inline/ |
| H A D | array-alloca.ll | 7 %vla = alloca i32, i32 %M, align 16 13 %vla = alloca %struct.A, i32 %M, align 16 19 %vla = alloca i32, i128 %M, align 16
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/ |
| H A D | dyn_stackalloc.ll | 55 %vla = alloca i8, i32 %add, align 1 56 call void @llvm.memset.p0i8.i32(i8* align 1 %vla, i8 %c, i32 %N, i1 false) 57 %arrayidx = getelementptr inbounds i8, i8* %vla, i32 %N 59 %call = call i32 @puts(i8* %vla)
|