@@ -23,14 +23,14 @@ import Swift
23
23
/// or reordered with other volatile operations by the compiler. They may be
24
24
/// reordered with non-volatile operations. For details, see
25
25
/// <https://llvm.org/docs/LangRef.html#volatile-memory-accesses>.
26
- public struct UnsafeVolatilePointer < Pointee> {
26
+ public struct VolatileMappedRegister < Pointee> {
27
27
public var _rawPointer : Builtin . RawPointer
28
- public init ( bitPattern : UInt ) {
29
- _rawPointer = UnsafeRawPointer ( bitPattern: bitPattern ) !. _rawValue
28
+ public init ( unsafeBitPattern : UInt ) {
29
+ _rawPointer = UnsafeRawPointer ( bitPattern: unsafeBitPattern ) !. _rawValue
30
30
}
31
31
}
32
32
33
- extension UnsafeVolatilePointer where Pointee == UInt8 {
33
+ extension VolatileMappedRegister where Pointee == UInt8 {
34
34
/// Perform an 8-bit volatile load operation from the target pointer.
35
35
///
36
36
/// Do not use for inter-thread synchronization.
@@ -48,7 +48,7 @@ extension UnsafeVolatilePointer where Pointee == UInt8 {
48
48
}
49
49
}
50
50
51
- extension UnsafeVolatilePointer where Pointee == UInt16 {
51
+ extension VolatileMappedRegister where Pointee == UInt16 {
52
52
/// Perform a 16-bit volatile load operation from the target pointer.
53
53
///
54
54
/// Do not use for inter-thread synchronization.
@@ -66,7 +66,7 @@ extension UnsafeVolatilePointer where Pointee == UInt16 {
66
66
}
67
67
}
68
68
69
- extension UnsafeVolatilePointer where Pointee == UInt32 {
69
+ extension VolatileMappedRegister where Pointee == UInt32 {
70
70
/// Perform a 32-bit volatile load operation from the target pointer.
71
71
///
72
72
/// Do not use for inter-thread synchronization.
@@ -84,7 +84,7 @@ extension UnsafeVolatilePointer where Pointee == UInt32 {
84
84
}
85
85
}
86
86
87
- extension UnsafeVolatilePointer where Pointee == UInt64 {
87
+ extension VolatileMappedRegister where Pointee == UInt64 {
88
88
/// Perform a 64-bit volatile load operation from the target pointer.
89
89
///
90
90
/// Do not use for inter-thread synchronization.
0 commit comments