mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This is an internal-only affordance for the numerics team to be able to work on SIMD-compatible types. For now, it can only increase alignment of fixed-layout structs and enums; dynamic layout, classes, and other obvious extensions are left to another day when we can design a proper layout control design. Swift SVN r27323
11 lines
266 B
Swift
11 lines
266 B
Swift
// RUN: rm -rf %t
|
|
// RUN: mkdir %t
|
|
// RUN: %target-swift-frontend %s -emit-module -parse-as-library -o %t
|
|
// RUN: %target-sil-opt %t/alignment.swiftmodule -o - | FileCheck %s
|
|
|
|
//CHECK: @_alignment(16) struct Foo {
|
|
@_alignment(16) struct Foo {}
|
|
|
|
func foo(x: Foo) {}
|
|
|