R/ARMeilleure/CodeGen/X86
jhorv 5131b71437
Reducing memory allocations (#4537)
* add RecyclableMemoryStream dependency and MemoryStreamManager

* organize BinaryReader/BinaryWriter extensions

* add StreamExtensions to reduce need for BinaryWriter

* simple replacments of MemoryStream with RecyclableMemoryStream

* add write ReadOnlySequence<byte> support to IVirtualMemoryManager

* avoid 0-length array creation

* rework IpcMessage and related types to greatly reduce memory allocation by using RecylableMemoryStream, keeping streams around longer, avoiding their creation when possible, and avoiding creation of BinaryReader and BinaryWriter when possible

* reduce LINQ-induced memory allocations with custom methods to query KPriorityQueue

* use RecyclableMemoryStream in StreamUtils, and use StreamUtils in EmbeddedResources

* add constants for nanosecond/millisecond conversions

* code formatting

* XML doc adjustments

* fix: StreamExtension.WriteByte not writing non-zero values for lengths <= 16

* XML Doc improvements. Implement StreamExtensions.WriteByte() block writes for large-enough count values.

* add copyless path for StreamExtension.Write(ReadOnlySpan<int>)

* add default implementation of IVirtualMemoryManager.Write(ulong, ReadOnlySequence<byte>); remove previous explicit implementations

* code style fixes

* remove LINQ completely from KScheduler/KPriorityQueue by implementing a custom struct-based enumerator
2023-03-17 13:14:50 +01:00
..
Assembler.cs Reducing memory allocations (#4537) 2023-03-17 13:14:50 +01:00
AssemblerTable.cs Revert "ARMeilleure: Add initial support for AVX512(EVEX encoding) (#3663)" (#4145) 2022-12-18 20:21:10 -03:00
CallConvName.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
CallingConvention.cs Removed unused usings. (#3593) 2022-08-18 18:04:54 +02:00
CodeGenCommon.cs Optimize x64 loads and stores using complex addressing modes (#972) 2020-03-10 09:29:34 +11:00
CodeGenContext.cs Reducing memory allocations (#4537) 2023-03-17 13:14:50 +01:00
CodeGenerator.cs Implement JIT Arm64 backend (#4114) 2023-01-10 19:16:59 -03:00
HardwareCapabilities.cs Revert "ARMeilleure: Add initial support for AVX512(EVEX encoding) (#3663)" (#4145) 2022-12-18 20:21:10 -03:00
IntrinsicInfo.cs Make structs readonly when applicable (#4002) 2022-12-05 14:47:39 +01:00
IntrinsicTable.cs Implement JIT Arm64 backend (#4114) 2023-01-10 19:16:59 -03:00
IntrinsicType.cs Add support for guest Fz (Fpcr) mode through host Ftz and Daz (Mxcsr) modes (fast paths). (#1630) 2020-12-07 10:37:07 +01:00
PreAllocator.cs CPU: Avoid argument value copies on the JIT (#4484) 2023-03-08 23:25:35 +01:00
PreAllocatorSystemV.cs CPU: Avoid argument value copies on the JIT (#4484) 2023-03-08 23:25:35 +01:00
PreAllocatorWindows.cs CPU: Avoid argument value copies on the JIT (#4484) 2023-03-08 23:25:35 +01:00
X86Condition.cs Improve branch operations (#1442) 2020-08-05 08:52:33 +10:00
X86Instruction.cs Revert "ARMeilleure: Add initial support for AVX512(EVEX encoding) (#3663)" (#4145) 2022-12-18 20:21:10 -03:00
X86Optimizer.cs Add a limit on the number of uses a constant may have (#3097) 2022-02-09 17:42:47 -03:00
X86Register.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00