| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | VLASizeChecker.cpp | 69 const VariableArrayType *VLA, in checkVLA() argument 71 assert(VLA && "Function should be called with non-null VLA argument."); in checkVLA() 83 while (VLA) { in checkVLA() 84 const Expr *SizeE = VLA->getSizeExpr(); in checkVLA() 89 VLALast = VLA; in checkVLA() 90 VLA = C.getASTContext().getAsVariableArrayType(VLA->getElementType()); in checkVLA() 269 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(TypeToCheck); in checkPreStmt() local 270 if (!VLA) in checkPreStmt() 277 State = checkVLA(C, State, VLA, ArraySize); in checkPreStmt() 311 if (!VLA) in checkPreStmt() [all …]
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | cfg.cpp | 509 typedef int VLA[x]; in vla_typedef() typedef 518 using VLA = int[x]; in vla_typealias() typedef 529 typedef int VLA[x][y]; in vla_typedef_multi() typedef 545 typedef int VLA[x]; in vla_typedefname_multi() typedef 546 typedef VLA VLA1[y]; in vla_typedefname_multi() 568 typedef int VLA[++x]; in vla_evaluate() typedef
|
| H A D | vla-overflow.c | 18 …typedef char VLA[x][x][x][x]; // expected-warning{{Declared variable-length array (VLA) has too la… in check_VLA_overflow_typedef() typedef 23 typedef char VLA[x][x][x][x - 1]; in check_VLA_no_overflow() typedef
|
| H A D | cfg.c | 95 typedef int VLA[x]; in vla_typedef() typedef 106 typedef int VLA[x][y]; in vla_typedef_multi() typedef
|
| H A D | vla.c | 94 typedef int VLA[x]; // expected-warning{{Declared variable-length array (VLA) has negative size}} in check_VLA_typedef() typedef
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | 2006-01-13-StackSave.c | 10 int VLA[i]; in test() local 11 external(VLA); in test()
|
| /llvm-project-15.0.7/llvm/test/Transforms/Mem2Reg/ |
| H A D | debug-alloca-vla-2.ll | 4 ; Testing conversion from dbg.declare to dbg.value when the variable is a VLA. 6 ; We can't derive the size of the variable since it is a VLA with an unknown 11 ; get a dbg.value that says that we do not know the value of the VLA in place 12 ; of the store (since we do not know which part of the VLA the store is
|
| H A D | debug-alloca-vla-1.ll | 4 ; Testing conversion from dbg.declare to dbg.value when the variable is a VLA.
|
| /llvm-project-15.0.7/llvm/test/Transforms/SafeStack/X86/ |
| H A D | debug-loc-dynamic.ll | 16 ; CHECK: store i8* %[[VLA:.*]], i8** @__safestack_unsafe_stack_ptr 17 ; CHECK: tail call void @llvm.dbg.value(metadata i8* %[[VLA]], metadata ![[TYPE:.*]], metadata !DI… 18 ; CHECK: call void @capture({{.*}} %[[VLA]])
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/ARM/ |
| H A D | lowerbdgdeclare_vla.ll | 27 ; The VLA alloca should be described by a dbg.declare: 28 ; CHECK: call void @llvm.dbg.declare(metadata float* %vla, metadata ![[VLA:.*]], metadata {{.*}}) 29 ; The VLA alloca and following store into the array should not be lowered to like this: 30 ; CHECK-NOT: call void @llvm.dbg.value(metadata float %r, metadata ![[VLA]])
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | salvage-dbg-declare.ll | 7 ; CHECK: %[[VLA:.*]] = alloca [2 x i32] 8 ; CHECK: call void @llvm.dbg.declare(metadata [2 x i32]* %[[VLA]], {{.*}}, metadata !DIExpression(…
|
| /llvm-project-15.0.7/llvm/test/Transforms/Inline/ |
| H A D | alloca_test.ll | 33 ; CHECK-NEXT: [[VLA:%.*]] = alloca double, i32 %p1 48 ; CHECK-NEXT: [[VLA:%.*]] = alloca double, i32 %p1
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AArch64/ |
| H A D | aarch64-dynamic-stack-layout.ll | 8 ; . a function having a VLA/noVLA 317 ; Check correct accessing of the VLA variable through the base pointer 318 ; CHECK: ldr w[[VLA:[0-9]+]], [x[[VLASPTMP]]] 364 ; Check correct accessing of the VLA variable through the base pointer 365 ; CHECK: ldr w[[VLA:[0-9]+]], [x[[VLASPTMP]]] 426 ; CHECK: ldr w[[VLA:[0-9]+]], [x[[VLASPTMP]]] 474 ; CHECK-MACHO: ldr w[[VLA:[0-9]+]], [x[[VLASPTMP]]] 527 ; CHECK: ldr w[[VLA:[0-9]+]], [x[[VLASPTMP]]] 562 ; CHECK-MACHO: ldr w[[VLA:[0-9]+]], [x[[VLASPTMP]]] 613 ; CHECK: ldr w[[VLA:[0-9]+]], [x[[VLASPTMP]]] [all …]
|
| H A D | shrink-wrapping-vla.ll | 88 ; VLA allocation
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | cmpxchg8b_alloca_regalloc_handling.ll | 38 ; - base pointer for stack frame (VLA + alignment) 69 ; - base pointer for stack frame (VLA + alignment)
|
| H A D | shrink-wrapping-vla.ll | 85 ; VLA allocation
|
| /llvm-project-15.0.7/mlir/test/Integration/Dialect/Vector/CPU/ArmSVE/ |
| H A D | test-sve.mlir | 8 // VLA memcopy 22 // VLA multiply and add 70 // VLA unknown bounds vector addition
|
| /llvm-project-15.0.7/clang/test/ARCMT/ |
| H A D | cxx-checking.mm | 97 // It's okay to create a VLA of retainable types.
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/modernize/ |
| H A D | avoid-c-arrays.rst | 23 int c[b[0]]; // warning: do not declare C VLA arrays, use std::vector<> instead
|
| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | scope-check.m | 91 typedef int A[n]; // expected-note {{jump bypasses initialization of VLA typedef}}
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/X86/ |
| H A D | vla-global.ll | 10 ; Test that a VLA referring to a global variable is handled correctly.
|
| /llvm-project-15.0.7/clang/test/CodeGenObjC/ |
| H A D | arc.m | 542 // Capture the VLA size. 550 // Allocate the VLA. 551 // CHECK-NEXT: [[VLA:%.*]] = alloca i8*, i64 [[DIM]], align 16 553 // Store the VLA #elements expression. 557 // CHECK-NEXT: [[T0:%.*]] = bitcast i8** [[VLA]] to i8* 563 // CHECK-NEXT: [[EMPTY:%.*]] = icmp eq i8** [[VLA]], [[END]] 570 // CHECK-NEXT: [[EQ:%.*]] = icmp eq i8** [[CUR]], [[VLA]] 587 // Capture the VLA size. 595 // Allocate the VLA. 599 // Store the VLA #elements expression. [all …]
|
| /llvm-project-15.0.7/lldb/test/Shell/SymbolFile/DWARF/x86/ |
| H A D | array-sizes.s | 3 # misinterpreted that value as a reference to a DIE specifying the VLA size even
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | ScopeInfo.h | 610 Capture(IsVLACapture, const VariableArrayType *VLA, bool IsNested, in Capture() argument 612 : CapturedVLA(VLA), Loc(Loc), CaptureType(CaptureType), Kind(Cap_VLA), in Capture()
|
| /llvm-project-15.0.7/llvm/test/Transforms/SROA/ |
| H A D | scalable-vectors.ll | 65 ; When casting from VLA to VLS via memory check we bail out when producing a
|