Home
last modified time | relevance | path

Searched refs:layout (Results 1 – 25 of 482) sorted by relevance

12345678910>>...20

/llvm-project-15.0.7/mlir/unittests/Interfaces/
H A DDataLayoutInterfacesTest.cpp78 unsigned getTypeSizeInBits(const DataLayout &layout, in getTypeSizeInBits()
88 unsigned getABIAlignment(const DataLayout &layout, in getABIAlignment()
98 unsigned getPreferredAlignment(const DataLayout &layout, in getPreferredAlignment()
254 DataLayout layout(module.get()); in TEST() local
277 DataLayout layout(op); in TEST() local
300 DataLayout layout(op); in TEST() local
326 DataLayout layout(op); in TEST() local
358 DataLayout layout(op); in TEST() local
389 DataLayout layout(op); in TEST() local
415 DataLayout layout(op); in TEST() local
[all …]
/llvm-project-15.0.7/clang/test/CodeGenObjC/
H A Dmrr-captured-block-var-inlined-layout.m1 … -fobjc-arc -triple x86_64-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layo…
2 // RUN: FileCheck --input-file=%t-64.layout %s
3 …ak -fobjc-arc -triple i386-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-32.layo…
4 // RUN: FileCheck --input-file=%t-32.layout %s
22 // block variable layout: BL_STRONG:1, BL_OPERATOR:0
23 // CHECK: Inline block variable layout: 0x0100, BL_STRONG:1, BL_OPERATOR:0
28 // block variable layout: BL_STRONG:2, BL_BYREF:1, BL_OPERATOR:0
29 // CHECK: Inline block variable layout: 0x0210, BL_STRONG:2, BL_BYREF:1, BL_OPERATOR:0
36 // block variable layout: BL_STRONG:2, BL_BYREF:3, BL_OPERATOR:0
46 // block variable layout: BL_STRONG:2, BL_BYREF:3, BL_OPERATOR:0
[all …]
H A Darc-captured-block-var-inlined-layout.m1 …me-has-weak -triple x86_64-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layo…
2 // RUN: FileCheck --input-file=%t-64.layout %s
3 …time-has-weak -triple i386-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-32.lay…
4 // RUN: FileCheck --input-file=%t-32.layout %s
20 // CHECK: Inline block variable layout: 0x0100, BL_STRONG:1, BL_OPERATOR:0
25 // CHECK: Inline block variable layout: 0x0210, BL_STRONG:2, BL_BYREF:1, BL_OPERATOR:0
32 // CHECK: Inline block variable layout: 0x0230, BL_STRONG:2, BL_BYREF:3, BL_OPERATOR:0
67 // CHECK: Inline block variable layout: 0x035, BL_BYREF:3, BL_WEAK:5, BL_OPERATOR:0
79 // CHECK: Inline block variable layout: 0x01, BL_WEAK:1, BL_OPERATOR:0
84 // CHECK: Inline block variable layout: 0x020, BL_BYREF:2, BL_OPERATOR:0
[all …]
H A Darc-captured-32bit-block-var-layout-2.m1 …time-has-weak -triple i386-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-32.layo…
2 // RUN: FileCheck --input-file=%t-32.layout %s
14 // CHECK: Inline block variable layout: 0x0100, BL_STRONG:1, BL_OPERATOR:0
19 // CHECK: Inline block variable layout: 0x0100, BL_STRONG:1, BL_OPERATOR:0
24 // CHECK: Inline block variable layout: 0x0100, BL_STRONG:1, BL_OPERATOR:0
29 // CHECK: Inline block variable layout: 0x0100, BL_STRONG:1, BL_OPERATOR:0
38 // CHECK: Block variable layout: BL_OPERATOR:0
H A Darc-ivar-layout.m1 …objc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -print-ivar-layout -emit-llvm %s -o %…
18 // CHECK-LP64: strong ivar layout for class 'AllPointers': 0x03, 0x00
38 // CHECK-LP64: strong ivar layout for class 'A': 0x02, 0x00
39 // CHECK-LP64: weak ivar layout for class 'A': 0x31, 0x00
43 // CHECK-LP64: strong ivar layout for class 'B': 0x12, 0x00
55 // CHECK-LP64: strong ivar layout for class 'UnsafePerson': 0x21, 0x00
64 // CHECK-LP64: weak ivar layout for class 'rdar16136439': 0x01, 0x00
79 // CHECK-LP64: strong ivar layout for class 'Misaligned': 0x01, 0x00
H A Darc-captured-block-var-layout.m1 …me-has-weak -triple x86_64-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layo…
2 // RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.layout %s
36 // Inline instruction for block variable layout: 0x0320 (3 strong 2 byref)
127 // CHECK-LP64: Block variable layout: BL_UNRETAINED:4, BL_OPERATOR:0
157 // CHECK-LP64: Block variable layout: BL_OPERATOR:0
201 // CHECK-LP64: Block variable layout: BL_OPERATOR:0
214 // CHECK-LP64: Block variable layout: BL_OPERATOR:0
245 // CHECK-LP64: Block variable layout: BL_OPERATOR:0
280 // CHECK-LP64: Block variable layout: BL_OPERATOR:0
298 // CHECK-LP64: Block variable layout: BL_OPERATOR:0
[all …]
H A Darc-captured-32bit-block-var-layout.m1 …time-has-weak -triple i386-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-32.layo…
2 // RUN: FileCheck --input-file=%t-32.layout %s
128 // CHECK: Block variable layout: BL_UNRETAINED:4, BL_OPERATOR:0
158 // CHECK: Block variable layout: BL_OPERATOR:0
202 // CHECK: Block variable layout: BL_OPERATOR:0
215 // CHECK: Block variable layout: BL_OPERATOR:0
246 // CHECK: Block variable layout: BL_OPERATOR:0
281 // CHECK: Block variable layout: BL_OPERATOR:0
299 // CHECK: Block variable layout: BL_OPERATOR:0
316 // CHECK: Block variable layout: BL_OPERATOR:0
[all …]
H A Dblock-var-layout.m1 …rwin -fobjc-runtime=macosx-fragile-10.5 -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layo…
2 // RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.layout %s
50 // CHECK-LP64: block variable layout for block: 0x01, 0x35, 0x10, 0x00
63 // CHECK-LP64: block variable layout for block: 0x01, 0x36, 0x10, 0x00
79 // CHECK-LP64: block variable layout for block: 0x01, 0x35, 0x30, 0x00
94 // CHECK-LP64: block variable layout for block: 0x01, 0x41, 0x11, 0x11, 0x00
132 // CHECK-LP64: block variable layout for block: 0x01, 0x41, 0x11, 0x12, 0x00
149 // CHECK-LP64: block variable layout for block: 0x01, 0x33, 0x00
162 // CHECK-LP64: block variable layout for block: 0x01, 0x30, 0x00
H A Dblock-byref-variable-layout.m23 // Inline flag for BYREF variable layout (1107296256): BLOCK_BYREF_HAS_COPY_DISPOSE BLOCK_BYREF_LAY…
27 // Inline flag for BYREF variable layout (536870912): BLOCK_BYREF_LAYOUT_NON_OBJECT
31 // Inline flag for BYREF variable layout (838860800): BLOCK_BYREF_HAS_COPY_DISPOSE BLOCK_BYREF_LAYO…
35 // Inline flag for BYREF variable layout (268435456): BLOCK_BYREF_LAYOUT_EXTENDED
36 // BYREF variable layout: BL_NON_OBJECT_WORD:3, BL_UNRETAINED:1, BL_OPERATOR:0
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dblockstret.c55 const char *layout; // conditional on BLOCK_HAS_OBJC member
61 const char *layout; // conditional on BLOCK_HAS_OBJC member
73 struct block_layout_abi *layout = (struct block_layout_abi *)block; in getBlockSignature() local
74 if ((layout->flags & BLOCK_HAS_OBJC_TYPE) != BLOCK_HAS_OBJC_TYPE) return 0; in getBlockSignature()
75 if (layout->flags & BLOCK_HAS_COPY_DISPOSE) in getBlockSignature()
76 return layout->descriptor->signature; in getBlockSignature()
78 return ((struct block_descriptor_small *)layout->descriptor)->signature; in getBlockSignature()
82 struct block_layout_abi *layout = (struct block_layout_abi *)block; in usesStruct() local
84 return (layout->flags & want) == want; in usesStruct()
H A Dblocksignature.c46 const char *layout; // conditional on BLOCK_HAS_OBJC
52 const char *layout; // conditional on BLOCK_HAS_OBJC
64 struct block_layout_abi *layout = (struct block_layout_abi *)block;
65 if ((layout->flags & BLOCK_HAS_OBJC_TYPE) != BLOCK_HAS_OBJC_TYPE) return NULL;
66 if (layout->flags & BLOCK_HAS_COPY_DISPOSE)
67 return layout->descriptor->signature;
69 return ((struct block_descriptor_small *)layout->descriptor)->signature;
/llvm-project-15.0.7/llvm/lib/ObjectYAML/
H A DMinidumpEmitter.cpp139 Range.Entry.Memory = layout(File, Range.Content); in layout()
145 M.Entry.CvRecord = layout(File, M.CvRecord); in layout()
146 M.Entry.MiscRecord = layout(File, M.MiscRecord); in layout()
150 T.Entry.Stack.Memory = layout(File, T.Stack); in layout()
151 T.Entry.Context = layout(File, T.Context); in layout()
155 static size_t layout(BlobAllocator &File, in layout() function
167 layout(File, E); in layout()
172 static Directory layout(BlobAllocator &File, Stream &S) { in layout() function
190 DataEnd = layout(File, cast<MemoryListStream>(S)); in layout()
193 DataEnd = layout(File, cast<ModuleListStream>(S)); in layout()
[all …]
/llvm-project-15.0.7/mlir/docs/
H A DDataLayout.md3 Data layout information allows the compiler to answer questions related to how a
12 * attribute interfaces that can be implemented by concrete data layout
16 as data layout scopes (e.g., modules);
32 them, typically organized in a data layout specification.
39 provides data layout scope for them. This ensures that data layout queries
48 supported by the notion of data layout _compatibility_: the layout defined in a
102 _entries_. Data layout specification attributes implement the
193 The overall flow of a data layout property query is as follows.
250 [default data layout in LLVM](https://llvm.org/docs/LangRef.html#data-layout),
260 data layout entry that specifies its bitwidth. For example,
[all …]
/llvm-project-15.0.7/mlir/test/Dialect/DLTI/
H A Dinvalid.mlir23 // expected-error@below {{repeated layout entry key: test.id}}
31 // expected-error@below {{repeated layout entry key: 'i32'}}
44 // expected-error@below {{unknown data layout entry name: dlti.unknown_id}}
58 // expected-error@below {{data layout does not combine with layouts of enclosing ops}}
59 // expected-note@above {{enclosing op with data layout}}
67 // expected-error@below {{unexpected data layout for a built-in type}}
72 // expected-error@below {{data layout specified for a type that does not support it}}
79 // expected-error@below {{data layout does not combine with layouts of enclosing ops}}
80 // expected-note@above {{enclosing op with data layout}}
89 // expected-error@below {{data layout does not combine with layouts of enclosing ops}}
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Interfaces/
H A DDataLayoutInterfaces.td1 //===- DataLayoutInterfaces.td - Data layout interfaces ----*- tablegen -*-===//
9 // Defines the interfaces for the data layout specification, operations to which
10 // they can be attached, and types that are subject to data layout.
27 Attribute interface describing an entry in a data layout specification.
29 A data layout specification entry is a key-value pair. Its key is either a
41 /*description=*/"Returns the key of the this layout entry.",
47 /*description=*/"Returns the value of this layout entry.",
75 Attribute interface describing a data layout specification.
86 nested operations subject to layout, or to ensure the validity of layout
104 /*description=*/"Returns the list of layout entries.",
[all …]
/llvm-project-15.0.7/compiler-rt/test/BlocksRuntime/
H A Dblockimport.c39 struct Block_layout *layout = (struct Block_layout *)(void *)vv; in main()
40 printf("isa %p\n", layout->isa); in main()
41 printf("flags %x\n", layout->flags); in main()
42 printf("descriptor %p\n", layout->descriptor); in main()
43 printf("descriptor->size %d\n", layout->descriptor->size); in main()
/llvm-project-15.0.7/clang/test/CodeGenObjCXX/
H A Dblock-var-layout.mm1 …rwin -fobjc-runtime=macosx-fragile-10.5 -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layo…
2 // RUN: FileCheck --input-file=%t-64.layout %s
6 // See commentary in test/CodeGenObjC/block-var-layout.m, from which
42 // CHECK: block variable layout for block: 0x01, 0x35, 0x10, 0x00
70 // CHECK: block variable layout for block: 0x01, 0x35, 0x30, 0x00
85 // CHECK: block variable layout for block: 0x01, 0x41, 0x11, 0x11, 0x00
123 // CHECK: block variable layout for block: 0x01, 0x41, 0x11, 0x12, 0x00
141 // CHECK: block variable layout for block: 0x01, 0x33, 0x00
154 // CHECK: block variable layout for block: 0x01, 0x30, 0x00
/llvm-project-15.0.7/llvm/test/Instrumentation/AddressSanitizer/
H A Ddynamic-shadow-darwin.ll3 ; RUN: opt -passes='asan-pipeline' -mtriple=arm64_32-apple-watchos --data-layout="e-m:o-p:32:32-i64…
4 ; RUN: opt -passes='asan-pipeline' -mtriple=armv7k-apple-watchos --data-layout="e-m:o-p:32:32-Fi8-i…
5 ; RUN: opt -passes='asan-pipeline' -mtriple=arm64-apple-ios --data-layout="e-m:o-i64:64-i128:128-n3…
6 ; RUN: opt -passes='asan-pipeline' -mtriple=armv7s-apple-ios --data-layout="e-m:o-p:32:32-Fi8-f64:3…
7 ; RUN: opt -passes='asan-pipeline' -mtriple=i386-apple-watchos-simulator --data-layout="e-m:o-p:32:…
8 ; RUN: opt -passes='asan-pipeline' -mtriple=i386-apple-ios-simulator --data-layout="e-m:o-p:32:32-f…
9 ; RUN: opt -passes='asan-pipeline' -mtriple=x86_64-apple-ios-simulator --data-layout="e-m:o-i64:64-…
12 ; RUN: opt -passes='asan-pipeline' -mtriple=x86_64-apple-macosx --data-layout="e-m:o-i64:64-f80:128…
14 ; RUN: opt -passes='asan-pipeline' -mtriple=arm64-apple-macosx --data-layout="e-m:o-i64:64-i128:128…
/llvm-project-15.0.7/mlir/test/lib/Dialect/DLTI/
H A DTestDataLayoutQuery.cpp38 const DataLayout &layout = layouts.getAbove(op); in runOnOperation() local
39 unsigned size = layout.getTypeSize(op.getType()); in runOnOperation()
40 unsigned bitsize = layout.getTypeSizeInBits(op.getType()); in runOnOperation()
41 unsigned alignment = layout.getTypeABIAlignment(op.getType()); in runOnOperation()
42 unsigned preferred = layout.getTypePreferredAlignment(op.getType()); in runOnOperation()
/llvm-project-15.0.7/llvm/unittests/DebugInfo/MSF/
H A DMappedBlockStreamTest.cpp65 MSFStreamLayout layout() const { in layout() function in __anon8ef2c6610111::DiscontiguousStream
78 auto S = MappedBlockStream::createStream(F.block_size(), F.layout(), F, in TEST()
81 EXPECT_EQ(F.layout().Blocks.size(), S->getNumBlocks()); in TEST()
88 auto S = MappedBlockStream::createStream(F.block_size(), F.layout(), F, in TEST()
104 auto S = MappedBlockStream::createStream(F.block_size(), F.layout(), F, in TEST()
119 auto S = MappedBlockStream::createStream(F.block_size(), F.layout(), F, in TEST()
138 auto S = MappedBlockStream::createStream(F.block_size(), F.layout(), F, in TEST()
151 auto S = MappedBlockStream::createStream(F.block_size(), F.layout(), F, in TEST()
412 F.block_size(), F.layout(), F, F.Allocator); in TEST()
447 DestF.block_size(), DestF.layout(), DestF, DestF.Allocator); in TEST()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DPromotion.cpp47 Type elementType, Value allocSize, DataLayout &layout, in allocBuffer() argument
49 auto width = layout.getTypeSize(elementType); in allocBuffer()
84 Optional<unsigned> alignment, DataLayout &layout) { in defaultAllocBufferCallBack() argument
94 layout, alignment); in defaultAllocBufferCallBack()
169 DataLayout &layout) -> Optional<Value> { in LinalgOpInstancePromotionOptions() argument
213 const AllocBufferCallbackFn &allocationFn, DataLayout &layout) { in promoteSubviewAsNewBuffer() argument
242 Optional<Value> fullLocalView = allocationFn(b, subView, fullSizes, layout); in promoteSubviewAsNewBuffer()
264 b, b.getLoc(), subView, options.allocationFn, layout); in promoteSubViews()
314 auto promotedBuffersAndViews = promoteSubViews(b, options, layout); in promoteSubViews()
386 auto layout = DataLayout::closest(linalgOp); in promoteSubViews() local
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dalloca.ll1 ; RUN: llvm-as -data-layout=A5 < %s | llvm-dis | FileCheck %s
3 ; RUN: llvm-as -data-layout=A5 < %s | llc -mtriple amdgcn-amd-amdhsa
4 ; RUN: opt -data-layout=A5 -S < %s
5 ; RUN: llvm-as -data-layout=A5 < %s | opt -S
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dcode_placement_ext_tsp_large.ll11 ; splitting, the resulting layout is improved (e.g., the score is increased).
67 ; An expected output with a large chain-split-threshold -- the layout score is
70 ; CHECK-LABEL: Applying ext-tsp layout
71 ; CHECK: original layout score: 9171074274.27
72 ; CHECK: optimized layout score: 10756755324.57
85 ; increase of the layout score is smaller, ~7%:
87 ; CHECK2-LABEL: Applying ext-tsp layout
88 ; CHECK2: original layout score: 9171074274.27
89 ; CHECK2: optimized layout score: 9810644873.57
101 ; An expected output with ext-tsp disabled -- the layout is not modified:
/llvm-project-15.0.7/mlir/lib/IR/
H A DBuiltinTypes.cpp550 MemRefLayoutAttrInterface layout, in get() argument
553 if (!layout) in get()
569 if (!layout) in getChecked()
577 elementType, layout, memorySpace); in getChecked()
589 Attribute layout = AffineMapAttr::get(map); in get() local
609 Attribute layout = AffineMapAttr::get(map); in getChecked() local
615 elementType, layout, memorySpace); in getChecked()
627 Attribute layout = AffineMapAttr::get(map); in get() local
648 Attribute layout = AffineMapAttr::get(map); in getChecked() local
670 assert(layout && "missing layout specification"); in verify()
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/GPUToNVVM/
H A DWmmaOpsToNvvm.cpp104 NVVM::MMALayout layout = NVVM::MMALayout::row; in matchAndRewrite() local
107 if (NVVM::WMMALoadOp::getIntrinsicID(m, n, k, layout, eltype, frag) == 0) in matchAndRewrite()
122 op, resType, dataPtr, leadingDim, m, n, k, layout, eltype, frag); in matchAndRewrite()
152 NVVM::MMALayout layout = NVVM::MMALayout::row; in matchAndRewrite() local
157 if (NVVM::WMMAStoreOp::getIntrinsicID(m, n, k, layout, eltype) == 0) in matchAndRewrite()
175 op, dataPtr, m, n, k, layout, eltype, storeOpOperands, leadingDim); in matchAndRewrite()
223 NVVM::MMALayout layout = NVVM::MMALayout::row; in matchAndRewrite() local
226 if (NVVM::WMMAMmaOp::getIntrinsicID(m, n, k, layout, layout, sourceType, in matchAndRewrite()
235 op, adaptor.opC().getType(), m, n, k, layout, layout, sourceType, in matchAndRewrite()

12345678910>>...20