Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f5a5d9c
Add non-intrinsic implementation for CreateSpan<T>. (#60451)
AaronRobinsonMSFT Oct 15, 2021
52a7dd3
[hackathon] Implement CreateSpan<T> intrinsic. (#60498)
AaronRobinsonMSFT Oct 16, 2021
5917c2c
Fix CreateSpan build failure (#60510)
davidwrighton Oct 17, 2021
fc74779
Most static initialization data fields are of a structure type, but i…
davidwrighton Oct 17, 2021
b18bb64
Fix CreateSpan in R2R code generation
davidwrighton Nov 1, 2021
1950ef1
Convert CreateSpan test to IL
davidwrighton Nov 1, 2021
320452c
Remove CreateSpan C# based test as the Roslyn used in the main branch…
davidwrighton Nov 2, 2021
415ea45
Add xml doc comment for CreateSpan api
davidwrighton Nov 2, 2021
0636c79
Fix xml comment
davidwrighton Nov 2, 2021
cd636f0
Update src/coreclr/tools/Common/JitInterface/CorInfoImpl.cs
davidwrighton Nov 2, 2021
510c0d2
Update src/coreclr/tools/Common/TypeSystem/Common/Instantiation.cs
davidwrighton Nov 2, 2021
0dac4b1
Apply suggestions from code review
jkotas Nov 2, 2021
4987e01
Update based on code review feedback to improve generated code
davidwrighton Nov 2, 2021
f6b01c3
Merge branch 'CreateSpanIntrinsic' of github.com:davidwrighton/runtim…
davidwrighton Nov 2, 2021
2356d02
Fix JIT formatting issues
davidwrighton Nov 2, 2021
fbf632b
MustExpand intrinsic for NativeAOT
davidwrighton Nov 2, 2021
6aec0ab
Respond to code review
davidwrighton Nov 18, 2021
7546a6f
Merge branch 'main' of github.com:dotnet/runtime into CreateSpanIntri…
davidwrighton Nov 18, 2021
38f080c
Adjust to changes in JIT
davidwrighton Nov 18, 2021
34303ee
Fix HELPER_METHOD_FRAME define usage
davidwrighton Nov 18, 2021
2b0aeb6
Merge branch 'main' of github.com:dotnet/runtime into CreateSpanIntri…
davidwrighton Nov 30, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add xml doc comment for CreateSpan api
  • Loading branch information
davidwrighton committed Nov 2, 2021
commit 415ea45c2f0893711617614bd227c4516d607003
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ internal static bool IsPrimitiveType(this CorElementType et)
// COR_ELEMENT_TYPE_I1,I2,I4,I8,U1,U2,U4,U8,R4,R8,I,U,CHAR,BOOLEAN
=> ((1 << (int)et) & 0b_0011_0000_0000_0011_1111_1111_1100) != 0;

/// <summary>Provide a fast way to access constant data stored in a module as a ReadOnlySpan{T}</summary>
/// <param name="item">A field handle that specifies the location of the data to be referred to by the ReadOnlySpan{T}. The Rva of the field must be aligned on a natural boundary of type T</param>
/// <returns>A ReadOnlySpan{T} of the data stored in the field</returns>
/// <exception cref="ArgumentException"><paramref name="field"/> does not refer to a field which is an Rva, is misaligned, or T is of an invalid type.</exception>
/// <remarks>This method is intended for compiler user rather than use directly in code. T must be one of byte, sbyte, char, short, ushort, int, long, ulong, float, or double.</remarks>
[Intrinsic]
public static ReadOnlySpan<T> CreateSpan<T>(RuntimeFieldHandle fldHandle)
{
Expand Down