Home
last modified time | relevance | path

Searched refs:vla (Results 1 – 25 of 44) sorted by relevance

12

/external/clang/test/Analysis/
Dvla.c8 int vla[x]; // expected-warning{{Declared variable-length array (VLA) has zero size}} in check_zero_sized_VLA() local
13 …int vla[x]; // expected-warning{{Declared variable-length array (VLA) uses a garbage value as its … in check_uninit_sized_VLA() local
18 int vla[x]; // expected-warning{{Declared variable-length array (VLA) has negative size}} in vla_allocate_signed() local
22 int vla[x]; // no-warning in vla_allocate_unsigned() local
35 int vla[x]; // expected-warning{{Declared variable-length array (VLA) has negative size}} in check_negative_sized_VLA_3() local
40 int vla[x]; // no-warning in check_negative_sized_VLA_4() local
45 int vla[x]; // expected-warning{{Declared variable-length array (VLA) has negative size}} in check_negative_sized_VLA_5() local
50 int vla[x]; // no-warning in check_negative_sized_VLA_6() local
55 int vla[x + 2]; // no-warning in check_negative_sized_VLA_7() local
60 int vla[x - 2]; // expected-warning{{Declared variable-length array (VLA) has negative size}} in check_negative_sized_VLA_8() local
[all …]
/external/llvm/test/DebugInfo/X86/
Dvla.ll3 ; CHECK: ##DEBUG_VALUE: vla:a <- RDX
9 ; int vla(int n) {
16 ; return vla(argc);
19 ; ModuleID = 'vla.c'
24 define i32 @vla(i32 %n) nounwind ssp uwtable {
35 %vla = alloca i32, i64 %1, align 16, !dbg !17
36 …call void @llvm.dbg.declare(metadata i32* %vla, metadata !18, metadata !MDExpression(DW_OP_deref))…
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
[all …]
Dop_deref.ll17 ; 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 <- RCX
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
95 !14 = !MDLocalVariable(tag: DW_TAG_auto_variable, name: "vla", line: 3, scope: !13, file: !6, type:…
Ddbg-declare.ll16 %vla = alloca i8, i64 %2, align 16, !dbg !16
17 call void @llvm.dbg.declare(metadata i8* %vla, metadata !18, metadata !MDExpression()), !dbg !23
/external/llvm/test/DebugInfo/ARM/
Dlowerbdgdeclare_vla.ll8 ; 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 !MDExpression(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 …]
/external/clang/test/Sema/
Dscope-check.c197 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()
Dc11-typedef-redef.c12 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
Dblock-misc.c205 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()
/external/llvm/test/CodeGen/X86/
Ddynamic-allocas-VLAs.ll54 %vla = alloca i32, i64 %sz, align 16
55 call void @t3_helper(i32* %a, i32* %vla) nounwind
79 %vla = alloca i32, i64 %sz, align 16
80 call void @t4_helper(i32* %a, i32* %vla, <8 x float>* %v) nounwind
142 %vla = alloca i32, i64 %sz, align 16
143 call void @t6_helper1(i32* %a, i32* %vla) nounwind
164 %vla = alloca i32, i64 %0, align 16
166 call void @bar(i32 %1, i32* %vla, %struct.struct_t* byval align 8 %arg1)
214 %vla = alloca i32, i64 %sz, align 16
215 call void @t3_helper(i32* %a, i32* %vla) nounwind
Dwindows-itanium-alloca.ll10 %vla = alloca i8, i32 %sz, align 1
11 call void @external(i8* %vla)
Ddbg-combine.ll38 %vla = alloca i32, i64 %1, align 16, !dbg !16
39 call void @llvm.dbg.declare(metadata i32* %vla, metadata !17, metadata !21), !dbg !22
40 %arrayidx = getelementptr inbounds i32, i32* %vla, i64 0, !dbg !23
42 %arrayidx1 = getelementptr inbounds i32, i32* %vla, i64 1, !dbg !25
44 %arrayidx2 = getelementptr inbounds i32, i32* %vla, i64 2, !dbg !27
Dmem-intrin-base-reg.ll57 %vla = alloca i8, i32 %n
58 call void @escape_vla_and_icmp(i8* %vla, i1 zeroext %icmp)
85 %vla = alloca i8, i32 %n
86 call void @escape_vla_and_icmp(i8* %vla, i1 zeroext %icmp)
/external/llvm/test/Transforms/IndVarSimplify/
Dsink-alloca.ll35 ; 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
/external/clang/test/CodeGen/
Ddebug-info-vla.c9 int vla[s]; in testVLAwithSize() local
12 vla[i] = i*i; in testVLAwithSize()
Dvla.c18 int vla[x]; in f0() local
19 return vla[x-1]; in f0()
Dvarargs.c18 void vla(int n, ...) in vla() function
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
Dp4.cpp50 typedef int vla[N]; in test_result_type() typedef
51 …auto l2 = [] () -> vla { }; // expected-error{{function cannot return array type 'vla' (aka 'int [… in test_result_type()
/external/clang/test/CXX/temp/temp.arg/temp.arg.type/
Dp2.cpp18 int vla[n]; in test_f0() local
19 f0(0, vla); // expected-error{{no matching function for call to 'f0'}} in test_f0()
/external/llvm/test/Analysis/Delinearization/
Dmultidim_only_ivs_2d_nested.ll18 ; AddRec: {{%vla.us,+,{8,+,8}<%for.cond7.preheader.lr.ph.split.us.us>}<%for.body9.lr.ph.us.us>,+,8}…
19 ; CHECK: Base offset: %vla.us
37 call void @bar(i64 %indvars.iv51, i64 %indvars.iv48, double* %vla.us) nounwind
56 %arrayidx10.us.us = getelementptr inbounds double, double* %vla.us, i64 %arrayidx.sum.us.us
66 %vla.us = alloca double, i64 %2, align 16
/external/llvm/test/CodeGen/AArch64/
Daarch64-dynamic-stack-layout.ll56 ; volatile int vla[i1];
57 ; return i10 + (int)d10 + l1 + g() + vla[0];
64 ; volatile int vla[i1];
65 ; return i10 + (int)d10 + l1 + vla[0];
72 ; volatile int vla[i1];
73 ; return i10 + (int)d10 + l1 + g() + vla[0];
80 ; volatile int vla[i1];
81 ; return i10 + (int)d10 + l1 + vla[0];
223 %vla = alloca i32, i64 %0, align 4
230 %1 = load volatile i32, i32* %vla, align 4, !tbaa !1
[all …]
Darm64-alloca-frame-pointer-offset.ll19 %vla = alloca i8, i64 %v, align 4
20 %tmp2 = bitcast i8* %vla to i32*
/external/llvm/test/CodeGen/PowerPC/
Ddyn-alloca-aligned.ll12 %vla = alloca i32, i64 %0, align 128
21 call void @bar(i32* %vla1, i32* %vla) #0
/external/llvm/test/CodeGen/ARM/Windows/
Dvla.ll10 %vla = alloca i8, i32 %sz, align 1
11 %arrayidx = getelementptr inbounds i8, i8* %vla, i32 %idx
/external/clang/test/ARCMT/
Dcxx-checking.mm98 void vla(int n) { function
99 id vla[n];
/external/llvm/test/Transforms/Inline/
Dinline-vla.ll22 %vla = alloca i64, i64 %size, align 16
23 %0 = bitcast i64* %vla to i8*

12