HomeSort by relevance Sort by last modified time
    Searched full:vla (Results 1 - 25 of 91) sorted by null

1 2 3 4

  /external/clang/test/CodeGen/
debug-info-vla.c 3 // CHECK: metadata !{i32 {{.*}}, metadata {{.*}}, metadata !"vla", metadata {{.*}}, i32 7, metadata {{.*}}, i32 0, i32 0, i64 2} ; [ DW_TAG_auto_variable ]
7 int vla[s]; local
10 vla[i] = i*i;
2006-01-13-StackSave.c 8 int VLA[i];
9 external(VLA);
2007-03-27-VarLengthArray.c 3 // CHECK: getelementptr inbounds i32* %{{vla|[0-9]}}
vla.c 5 // Extremely basic VLA test
18 int vla[x]; local
19 return vla[x-1];
114 // VLA captures.
  /external/compiler-rt/lib/ubsan/lit_tests/Misc/
vla.c 1 // RUN: %clang -fsanitize=vla-bound %s -O3 -o %t
7 // CHECK-MINUS-ONE: vla.c:9:11: runtime error: variable length array bound evaluates to non-positive value -1
8 // CHECK-ZERO: vla.c:9:11: runtime error: variable length array bound evaluates to non-positive value 0
  /external/clang/test/Sema/
c11-typedef-redef.c 12 typedef int vla[N]; // expected-note{{previous definition is here}} typedef
13 typedef int vla[N]; // expected-error{{redefinition of typedef for variably-modified type 'int [N]'}} typedef
scope-check.c 13 typedef int a[x]; // expected-note {{jump bypasses initialization of VLA typedef}}
155 typedef int A[n]; // expected-note {{jump bypasses initialization of VLA typedef}}
197 int vla[n];
209 int vla[n];
211 vla[n-1] = 0;
218 // PR8473: IR gen can't deal with indirect gotos past VLA
227 char vla[n]; // expected-note {{jump bypasses initialization}}
229 vla[0] = 'a';
block-misc.c 205 int vla[n]; // expected-note {{declared here}}
207 vla[1] = 4341;
209 (void)vla[1]; // expected-error {{cannot refer to declaration with a variably modified type inside block}}
vla.c 4 typedef int x[test1()]; // vla
  /external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
p4.cpp 49 typedef int vla[N];
50 auto l2 = [] () -> vla { }; // expected-error{{function cannot return array type 'vla' (aka 'int [N]')}}
  /external/clang/test/ARCMT/
cxx-checking.mm 98 // It's okay to create a VLA of retainable types.
99 void vla(int n) {
100 id vla[n];
  /external/clang/test/Index/
recover-bad-code-rdar_7487294.c 5 // Previously we tried to free the size expression of the VLA twice.
  /external/clang/lib/StaticAnalyzer/Checkers/
VLASizeChecker.cpp 11 // performs checks for declaration of VLA of undefined or zero size.
13 // of the MemRegion that represents a VLA.
54 BT.reset(new BuiltinBug("Dangerous variable-length array (VLA) declaration"));
58 os << "Declared variable-length array (VLA) ";
87 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(VD->getType());
88 if (!VLA)
92 const Expr *SE = VLA->getSizeExpr();
137 CharUnits EleSize = Ctx.getTypeSizeInChars(VLA->getElementType());
  /external/clang/test/Analysis/
cxx-crashes.cpp 62 void vla(int n) { function
68 // This struct is POD, though, so it should be fine to put it in a VLA.
  /external/llvm/test/Transforms/IndVarSimplify/
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** %vla.i, i64 %indvars.iv37.i
54 %call1 = call i8* (...)* @a(i8** %vla) nounwind
  /external/clang/test/CodeGenObjC/
encode-test-3.m 9 const char * vla = @encode(int[n]);
  /external/clang/test/SemaCXX/
c99-variable-length-array-cxx11.cpp 20 void vla(int N) { function
c99-variable-length-array.cpp 16 void vla(int N) { function
66 // Template argument deduction does not allow deducing a size from a VLA.
  /external/clang/test/CXX/temp/temp.arg/temp.arg.type/
p2.cpp 18 int vla[n]; local
19 f0(0, vla); // expected-error{{no matching function for call to 'f0'}}
  /external/llvm/test/CodeGen/X86/
dynamic-allocas-VLAs.ll 54 %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) nounwin
    [all...]
dbg-declare.ll 16 %vla = alloca i8, i64 %2, align 16, !dbg !16
17 call void @llvm.dbg.declare(metadata !{i8* %vla}, metadata !18), !dbg !23
  /external/llvm/test/DebugInfo/X86/
op_deref.ll 4 ; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000067] = "vla")
20 %vla = alloca i32, i64 %1, align 16, !dbg !12
21 call void @llvm.dbg.declare(metadata !{i32* %vla}, metadata !14), !dbg !18
38 %arrayidx = getelementptr inbounds i32* %vla, i64 %idxprom, !dbg !23
74 !14 = metadata !{i32 786688, metadata !13, metadata !"vla", metadata !6, i32 3, metadata !15, i32 0, i32 0, i64 2} ; [ DW_TAG_auto_variable ]
  /external/clang/lib/CodeGen/
CodeGenFunction.cpp 840 /// \param sizeInChars - the total size of the VLA, in chars
854 llvm::Value *begin = Builder.CreateBitCast(dest, i8p, "vla.begin");
855 llvm::Value *end = Builder.CreateInBoundsGEP(dest, sizeInChars, "vla.end");
858 llvm::BasicBlock *loopBB = CGF.createBasicBlock("vla-init.loop");
859 llvm::BasicBlock *contBB = CGF.createBasicBlock("vla-init.cont");
861 // Make a loop over the VLA. C99 guarantees that the VLA element
865 llvm::PHINode *cur = Builder.CreatePHI(i8p, 2, "vla.cur");
874 llvm::Value *next = Builder.CreateConstInBoundsGEP1_32(cur, 1, "vla.next");
876 // Leave if that's the end of the VLA
908 const VariableArrayType *vla; local
1086 const VariableArrayType *vla = getContext().getAsVariableArrayType(type); local
    [all...]
  /external/clang/test/SemaObjC/
scope-check.m 91 typedef int A[n]; // expected-note {{jump bypasses initialization of VLA typedef}}
  /prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/lib/gcc/arm-eabi/4.6.x-google/plugin/include/c-family/
c-common.def 29 tracks information about constancy of an expression and VLA type

Completed in 3485 milliseconds

1 2 3 4