| /llvm-project-15.0.7/llvm/test/CodeGen/SystemZ/ |
| H A D | int-move-10.ll | 20 %packed.i16i32 = type <{ i16, i32 }> 22 %packed.i16i64 = type <{ i16, i64 }> 23 %packed.i8i16 = type <{ i8, i16 }> 40 …store i32 0, i32* getelementptr inbounds (%packed.i16i32, %packed.i16i32* @A_align2, i64 0, i32 1)… 60 …store i32 0, i32* getelementptr inbounds (%packed.i16i32, %packed.i16i32* @D_align4, i64 0, i32 1)… 79 …store i64 0, i64* getelementptr inbounds (%packed.i16i64, %packed.i16i64* @C_align2, i64 0, i32 1)… 86 …store i16 0, i16* getelementptr inbounds (%packed.i8i16, %packed.i8i16* @F_align2, i64 0, i32 1), … 98 …store i32 %T, i32* getelementptr inbounds (%packed.i16i32, %packed.i16i32* @D_align4, i64 0, i32 1… 107 …store i16 %T, i16* getelementptr inbounds (%packed.i8i16, %packed.i8i16* @F_align2, i64 0, i32 1),… 164 …%L = load i16, i16* getelementptr inbounds (%packed.i8i16, %packed.i8i16* @F_align2, i64 0, i32 1)… [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | warn-padded-packed.cpp | 17 } __attribute__((packed)); 22 } __attribute__((packed)); 52 } __attribute__((packed)); 57 } __attribute__((packed)); 63 } __attribute__((packed)); 77 } __attribute__((packed)); 82 } __attribute__((packed)); 116 } __attribute__((packed)); 121 } __attribute__((packed)); 132 } __attribute__((packed)); [all …]
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | test-wunaligned-access.c | 21 struct __attribute__((packed)) U1 { 27 struct __attribute__((packed)) U2 { 33 struct __attribute__((packed)) U3 { 57 struct __attribute__((packed)) U7 { 71 struct __attribute__((packed)) U9 { 78 struct __attribute__((packed)) U10 { 101 struct __attribute__((packed)) U13 { 107 struct __attribute__((packed)) U14 { 133 struct __attribute__((packed)) U18 { 198 struct __attribute__((packed)) T2 { [all …]
|
| H A D | test-wunaligned-access.cpp | 22 struct __attribute__((packed)) U1 { 28 struct __attribute__((packed)) U2 { 34 struct __attribute__((packed)) U3 { 41 struct __attribute__((packed)) U4 { 63 struct __attribute__((packed)) U7 { 69 struct __attribute__((packed)) U8 { 91 struct __attribute__((packed)) T2 { 96 struct __attribute__((packed)) U11 { 139 struct __attribute__((packed)) A1 { 150 struct __attribute__((packed)) A2 { [all …]
|
| H A D | address-packed.c | 13 struct __attribute__((packed)) Arguable { 19 union __attribute__((packed)) UnionArguable { 92 int i __attribute__((packed)); 102 struct __attribute__((packed)) S2 { 120 struct __attribute__((packed)) S3 { 133 struct __attribute__((packed)) { 146 int i __attribute__((packed)); 199 } __attribute__((packed)); 235 struct __attribute__((packed)) S7 { 252 struct __attribute__((packed)) S8 { [all …]
|
| H A D | struct-packed-align.c | 9 int b __attribute__((packed)); 17 struct __attribute__((packed)) packed_s { 19 int b __attribute__((packed)); 35 struct __attribute__((packed)) packed_fas { 46 } __attribute__((packed)); 79 struct __attribute__((packed)) as3 { 92 void *args[] __attribute__((packed)); 96 union __attribute__((packed)) au4 {char c; int x;}; 122 } __attribute__((packed)); 154 char e : 8 __attribute__((packed)); [all …]
|
| H A D | bitfield-layout_1.c | 11 struct __attribute__((packed)) { 35 struct __attribute__((packed)) { 43 struct __attribute__((packed)) { 53 int __attribute__((packed)) b : 4; 54 int __attribute__((packed)) c : 32; 166 int __attribute__((packed)) a; 167 int __attribute__((packed)) b : 4; 168 int __attribute__((packed)) c : 32;
|
| H A D | bitfield-layout.c | 27 struct __attribute__((packed)) a2 { short x : 9; char : 0; int y : 17; }; 32 struct __attribute__((packed)) a3 { short x : 9; int : 0; }; 42 struct __attribute__((packed)) a4 { short x : 9; int : 1; }; 75 struct __attribute__((packed)) e {int x : 4, y : 30, z : 30;}; 138 struct __attribute__((packed)) g3 { 153 struct __attribute__((packed)) g4 { 174 struct __attribute__((packed)) g6 { 192 struct __attribute__((packed)) g8 { 214 struct __attribute__((packed)) g10 { 240 struct __attribute__((packed)) g12 { [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | aarch64-varargs.c | 242 typedef int underaligned_int __attribute__((packed,aligned(2))); 316 typedef long long underaligned_long_long __attribute__((packed,aligned(2))); 382 typedef __int128 underaligned_int128 __attribute__((packed,aligned(2))); 472 typedef struct __attribute__((packed,aligned(2))) { 539 typedef struct __attribute__((packed,aligned(2))) { 605 typedef struct __attribute__((packed,aligned(2))) { 676 int val __attribute__((packed,aligned(2))); 749 long long val __attribute__((packed,aligned(2))); 821 __int128 val __attribute__((packed,aligned(2)));
|
| H A D | packed-arrays.c | 5 unsigned int x[2] __attribute__((packed)); 9 unsigned int x[2] __attribute__((packed)); 11 unsigned int z __attribute__((packed)); 15 unsigned int x[2] __attribute__((packed)); 16 unsigned int y __attribute__((packed)); 17 unsigned int z __attribute__((packed)); 20 struct __attribute__((packed)) s3 {
|
| H A D | arm-varargs.c | 97 typedef int underaligned_int __attribute__((packed,aligned(2))); 121 typedef long long underaligned_long_long __attribute__((packed,aligned(2))); 165 typedef struct __attribute__((packed,aligned(2))) { 200 typedef struct __attribute__((packed,aligned(2))) { 240 int val __attribute__((packed,aligned(2))); 279 long long val __attribute__((packed,aligned(2)));
|
| H A D | bitfield-2.c | 18 struct __attribute((packed)) s0 { 62 struct __attribute((packed)) s1 { 107 union __attribute__((packed)) u2 { 178 unsigned f1 : 28 __attribute__ ((packed)); 294 struct __attribute__((packed)) s8 { 331 struct __attribute__((packed)) s9 {
|
| H A D | packed-structure.c | 7 int y __attribute__((packed)); 40 } __attribute__((packed)); 89 struct __attribute__((packed, aligned)) s3 {
|
| /llvm-project-15.0.7/mlir/test/Dialect/LLVMIR/ |
| H A D | types.mlir | 124 // CHECK: !llvm.struct<packed ()> 125 "some.op"() : () -> !llvm.struct<packed ()> 126 // CHECK: !llvm.struct<packed (i32)> 127 "some.op"() : () -> !llvm.struct<packed (i32)> 128 // CHECK: !llvm.struct<packed (f32, i32)> 130 // CHECK: !llvm.struct<packed (f32, i32)> 132 // CHECK: !llvm.struct<packed (struct<(i32)>)> 137 // CHECK: !llvm.struct<(struct<packed (i32)>)> 139 // CHECK: !llvm.struct<packed (struct<(i32)>)> 156 // CHECK: !llvm.struct<"packed", packed (i32)> [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/altera/ |
| H A D | struct-pack-align.cpp | 21 } __attribute__((packed)); 44 } __attribute__((packed)) __attribute__((aligned(8))); 53 } __attribute__((packed)) __attribute__((aligned(32))); 62 } __attribute__((packed)) __attribute__((aligned(4))); 72 } __attribute__((packed)) __attribute__((aligned(16)));
|
| /llvm-project-15.0.7/lldb/test/API/lang/c/bitfields/ |
| H A D | main.c | 37 } __attribute__((packed)); 67 struct PackedBits packed; in main() local 68 packed.a = 'a'; in main() 69 packed.b = 10; in main() 70 packed.c = 0x7112233; in main()
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | address-packed.cpp | 5 struct __attribute__((packed)) Arguable { 14 struct __attribute__((packed)) Arguable { 60 struct __attribute__((packed)) A { 92 class __attribute__((packed)) S { 122 } __attribute__((packed));
|
| /llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/ |
| H A D | TypeDetail.h | 73 : name(name), identified(true), packed(false), opaque(opaque) {} in Key() 75 Key(ArrayRef<Type> types, bool packed) in Key() 76 : types(types), identified(false), packed(packed), opaque(false) {} in Key() 83 return packed; in isPacked() 137 return Key(allocator.copyInto(types), packed); in copyIntoAllocator() 144 bool packed; member 236 bool packed) { in mutate() 241 packed == isPacked()); in mutate() 245 llvm::Bitfield::set<MutableFlagPacked>(identifiedBodySizeAndFlags, packed); in mutate()
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/PDB/Native/ |
| H A D | pdb-native-udts.test | 47 ; DUMP-NEXT: packed: 0 70 ; DUMP-NEXT: packed: 0 93 ; DUMP-NEXT: packed: 0 116 ; DUMP-NEXT: packed: 0 139 ; DUMP-NEXT: packed: 0 162 ; DUMP-NEXT: packed: 0 185 ; DUMP-NEXT: packed: 0 208 ; DUMP-NEXT: packed: 0 231 ; DUMP-NEXT: packed: 0 254 ; DUMP-NEXT: packed: 0 [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenOpenCL/ |
| H A D | kernel-param-alignment.cl | 5 struct __attribute__((packed, aligned(1))) packed { 18 global struct packed *p) { 25 // CHECK-SAME: %struct.packed* nocapture noundef align 1 %p)
|
| /llvm-project-15.0.7/mlir/test/Target/LLVMIR/ |
| H A D | llvmir-types.mlir | 131 llvm.func @return_sp_empty() -> !llvm.struct<packed ()> 133 llvm.func @return_sp_i32() -> !llvm.struct<packed (i32)> 135 llvm.func @return_sp_float_i32() -> !llvm.struct<packed (f32, i32)> 137 llvm.func @return_sp_i32_s_i31_1_float() -> !llvm.struct<packed (i32, struct<(i32, i1)>, f32)> 140 llvm.func @return_s_sp_i32() -> !llvm.struct<(struct<packed (i32)>)> 142 llvm.func @return_sp_s_i32() -> !llvm.struct<packed (struct<(i32)>)> 153 // CHECK: %packed = type <{ i32 }> 170 // CHECK: declare %packed 171 llvm.func @return_s_packed() -> !llvm.struct<"packed", packed (i32)> 173 llvm.func @return_s_symbols() -> !llvm.struct<"name with spaces and !^$@$#", packed (i32)>
|
| /llvm-project-15.0.7/clang/test/Layout/ |
| H A D | aix-packed-bitfields.c | 32 #pragma align(packed) 83 struct __attribute__((packed)) PackedAttr { 100 struct __attribute__((packed)) PackedAttrAndPragma {
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/altera/ |
| H A D | struct-pack-align.rst | 6 Finds structs that are inefficiently packed or aligned, and recommends 9 Structs that are not packed take up more space than they should, and accessing 41 // The following struct is explicitly aligned and packed. 46 } __attribute__((packed)) __attribute__((aligned(16)); 54 } __attribute__((packed)) __attribute__((aligned(32)));
|
| /llvm-project-15.0.7/llvm/test/Other/ |
| H A D | 2008-06-04-FieldSizeInPacked.ll | 5 %packed = type <{ x86_fp80, i8 }> 10 %char_p = getelementptr %packed, %packed* null, i32 0, i32 1 ; <i8*> [#uses=1]
|
| /llvm-project-15.0.7/compiler-rt/include/xray/ |
| H A D | xray_records.h | 63 } __attribute__((packed)); 102 } __attribute__((packed)); 128 } __attribute__((packed));
|