Searched refs:vla (Results 1 - 14 of 14) sorted by relevance
/external/clang/test/Sema/ |
H A D | 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
|
H A D | scope-check.c | 197 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 D | 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}}
|
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/ |
H A D | 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/CXX/temp/temp.arg/temp.arg.type/ |
H A D | p2.cpp | 18 int vla[n]; local 19 f0(0, vla); // expected-error{{no matching function for call to 'f0'}}
|
/external/clang/test/CodeGen/ |
H A D | vla.c | 18 int vla[x]; local 19 return vla[x-1];
|
/external/clang/test/Analysis/ |
H A D | outofbound.c | 58 void vla(int a) { function
|
H A D | taint-generic.c | 184 int vla[x]; // expected-warning{{Declared variable-length array (VLA) has tainted size}} local
|
/external/clang/test/SemaCXX/ |
H A D | c99-variable-length-array.cpp | 16 void vla(int N) { function
|
/external/clang/lib/CodeGen/ |
H A D | CodeGenFunction.cpp | 707 llvm::Value *begin = Builder.CreateBitCast(dest, i8p, "vla.begin"); 708 llvm::Value *end = Builder.CreateInBoundsGEP(dest, sizeInChars, "vla.end"); 711 llvm::BasicBlock *loopBB = CGF.createBasicBlock("vla-init.loop"); 712 llvm::BasicBlock *contBB = CGF.createBasicBlock("vla-init.cont"); 718 llvm::PHINode *cur = Builder.CreatePHI(i8p, 2, "vla.cur"); 727 llvm::Value *next = Builder.CreateConstInBoundsGEP1_32(cur, 1, "vla.next"); 730 llvm::Value *done = Builder.CreateICmpEQ(next, end, "vla-init.isdone"); 761 const VariableArrayType *vla; local 777 vla = vlaType; 783 vla 924 const VariableArrayType *vla = getContext().getAsVariableArrayType(type); local [all...] |
H A D | CGDecl.cpp | 886 llvm::AllocaInst *vla = Builder.CreateAlloca(llvmTy, elementCount, "vla"); local 887 vla->setAlignment(alignment.getQuantity()); 889 DeclPtr = vla;
|
H A D | CGExprScalar.cpp | 1318 if (const VariableArrayType *vla 1320 llvm::Value *numElts = CGF.getVLASize(vla).first; 1321 if (!isInc) numElts = Builder.CreateNSWNeg(numElts, "vla.negsize"); 1323 value = Builder.CreateGEP(value, numElts, "vla.inc"); 1325 value = Builder.CreateInBoundsGEP(value, numElts, "vla.inc"); 1601 // If this isn't sizeof(vla), the result must be constant; use the constant 1970 if (const VariableArrayType *vla 1973 llvm::Value *numElements = CGF.getVLASize(vla).first; 1980 index = CGF.Builder.CreateMul(index, numElements, "vla.index"); 1983 index = CGF.Builder.CreateNSWMul(index, numElements, "vla [all...] |
H A D | CodeGenFunction.h | 1720 std::pair<llvm::Value*,QualType> getVLASize(const VariableArrayType *vla); 1721 std::pair<llvm::Value*,QualType> getVLASize(QualType vla);
|
H A D | CGExpr.cpp | 1821 if (const VariableArrayType *vla = 1829 llvm::Value *numElements = getVLASize(vla).first;
|
Completed in 216 milliseconds