@@ -23,14 +23,14 @@ import Swift
2323/// or reordered with other volatile operations by the compiler. They may be
2424/// reordered with non-volatile operations. For details, see
2525/// <https://llvm.org/docs/LangRef.html#volatile-memory-accesses>.
26- public struct UnsafeVolatilePointer < Pointee> {
26+ public struct VolatileMappedRegister < Pointee> {
2727 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
3030 }
3131}
3232
33- extension UnsafeVolatilePointer where Pointee == UInt8 {
33+ extension VolatileMappedRegister where Pointee == UInt8 {
3434 /// Perform an 8-bit volatile load operation from the target pointer.
3535 ///
3636 /// Do not use for inter-thread synchronization.
@@ -48,7 +48,7 @@ extension UnsafeVolatilePointer where Pointee == UInt8 {
4848 }
4949}
5050
51- extension UnsafeVolatilePointer where Pointee == UInt16 {
51+ extension VolatileMappedRegister where Pointee == UInt16 {
5252 /// Perform a 16-bit volatile load operation from the target pointer.
5353 ///
5454 /// Do not use for inter-thread synchronization.
@@ -66,7 +66,7 @@ extension UnsafeVolatilePointer where Pointee == UInt16 {
6666 }
6767}
6868
69- extension UnsafeVolatilePointer where Pointee == UInt32 {
69+ extension VolatileMappedRegister where Pointee == UInt32 {
7070 /// Perform a 32-bit volatile load operation from the target pointer.
7171 ///
7272 /// Do not use for inter-thread synchronization.
@@ -84,7 +84,7 @@ extension UnsafeVolatilePointer where Pointee == UInt32 {
8484 }
8585}
8686
87- extension UnsafeVolatilePointer where Pointee == UInt64 {
87+ extension VolatileMappedRegister where Pointee == UInt64 {
8888 /// Perform a 64-bit volatile load operation from the target pointer.
8989 ///
9090 /// Do not use for inter-thread synchronization.
0 commit comments