Searched refs:vla (Results 1 - 18 of 18) sorted by relevance

/external/clang/test/CodeGen/
H A Ddebug-info-vla.c5 // CHECK: metadata !{i32 {{.*}}, metadata {{.*}}, metadata !"vla", metadata {{.*}}, i32 [[@LINE+1]], metadata {{.*}}, i32 8192, i32 0} ; [ DW_TAG_auto_variable ] [vla] [line [[@LINE+1]]]
6 int vla[s]; local
9 vla[i] = i*i;
H A Dvarargs.c18 void vla(int n, ...) function
H A Dvla.c18 int vla[x]; local
19 return vla[x-1];
/external/clang/test/Sema/
H A Dc11-typedef-redef.c12 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
H A Dscope-check.c197 int vla[n];
209 int vla[n];
211 vla[n-1] = 0;
227 char vla[n]; // expected-note {{jump bypasses initialization}}
229 vla[0] = 'a';
H A Dblock-misc.c205 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}}
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
H A Dp4.cpp53 typedef int vla[N];
54 auto l2 = [] () -> vla { }; // expected-error{{function cannot return array type 'vla' (aka 'int [N]')}}
/external/clang/test/SemaCXX/
H A Dc99-variable-length-array-cxx11.cpp20 void vla(int N) { function
H A Dc99-variable-length-array.cpp16 void vla(int N) { function
/external/clang/test/CXX/temp/temp.arg/temp.arg.type/
H A Dp2.cpp18 int vla[n]; local
19 f0(0, vla); // expected-error{{no matching function for call to 'f0'}}
/external/clang/test/Analysis/
H A Dcxx-crashes.cpp62 void vla(int n) { function
H A Doutofbound.c58 void vla(int a) { function
H A Dtaint-generic.c184 int vla[x]; // expected-warning{{Declared variable-length array (VLA) has tainted size}} local
/external/clang/lib/CodeGen/
H A DCodeGenFunction.cpp1155 llvm::Value *begin = Builder.CreateBitCast(dest, i8p, "vla.begin");
1156 llvm::Value *end = Builder.CreateInBoundsGEP(dest, sizeInChars, "vla.end");
1159 llvm::BasicBlock *loopBB = CGF.createBasicBlock("vla-init.loop");
1160 llvm::BasicBlock *contBB = CGF.createBasicBlock("vla-init.cont");
1166 llvm::PHINode *cur = Builder.CreatePHI(i8p, 2, "vla.cur");
1175 llvm::Value *next = Builder.CreateConstInBoundsGEP1_32(cur, 1, "vla.next");
1178 llvm::Value *done = Builder.CreateICmpEQ(next, end, "vla-init.isdone");
1209 const VariableArrayType *vla; local
1225 vla = vlaType;
1231 vla
1387 const VariableArrayType *vla = getContext().getAsVariableArrayType(type); local
[all...]
H A DCGDecl.cpp960 llvm::AllocaInst *vla = Builder.CreateAlloca(llvmTy, elementCount, "vla"); local
961 vla->setAlignment(alignment.getQuantity());
963 DeclPtr = vla;
H A DCGExprScalar.cpp1643 if (const VariableArrayType *vla
1645 llvm::Value *numElts = CGF.getVLASize(vla).first;
1646 if (!isInc) numElts = Builder.CreateNSWNeg(numElts, "vla.negsize");
1648 value = Builder.CreateGEP(value, numElts, "vla.inc");
1650 value = Builder.CreateInBoundsGEP(value, numElts, "vla.inc");
1931 // If this isn't sizeof(vla), the result must be constant; use the constant
2349 if (const VariableArrayType *vla
2352 llvm::Value *numElements = CGF.getVLASize(vla).first;
2359 index = CGF.Builder.CreateMul(index, numElements, "vla.index");
2362 index = CGF.Builder.CreateNSWMul(index, numElements, "vla
[all...]
H A DCodeGenFunction.h1548 std::pair<llvm::Value*,QualType> getVLASize(const VariableArrayType *vla);
1549 std::pair<llvm::Value*,QualType> getVLASize(QualType vla);
H A DCGExpr.cpp2322 if (const VariableArrayType *vla =
2330 llvm::Value *numElements = getVLASize(vla).first;

Completed in 9339 milliseconds