mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Implement shufflevector builtin. (#36650)
This isn't _terribly_ useful as-is, because the only constant mask you can get at from Swift at present is the zeroinitializer, but even that is quite useful for optimizing the repeating: intializer on SIMD. At some future point we should wire up generating constant masks for the .even, .odd, .high and .low properties (and also eventually make shufflevector take non-constant masks in LLVM). But this is enough to be useful, so let's get it in.
This commit is contained in:
@@ -569,6 +569,7 @@ UNOWNED_OR_NONE_DEPENDING_ON_RESULT(CmpXChg)
|
||||
UNOWNED_OR_NONE_DEPENDING_ON_RESULT(AtomicLoad)
|
||||
UNOWNED_OR_NONE_DEPENDING_ON_RESULT(ExtractElement)
|
||||
UNOWNED_OR_NONE_DEPENDING_ON_RESULT(InsertElement)
|
||||
UNOWNED_OR_NONE_DEPENDING_ON_RESULT(ShuffleVector)
|
||||
UNOWNED_OR_NONE_DEPENDING_ON_RESULT(ZeroInitializer)
|
||||
#undef UNOWNED_OR_NONE_DEPENDING_ON_RESULT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user