Add on translation call counting

This commit is contained in:
FICTURE7 2021-04-09 20:49:15 +04:00
parent 82582497a7
commit 98ac020097
7 changed files with 141 additions and 53 deletions

View file

@ -1,4 +1,5 @@
using ARMeilleure.Common;
using System.Runtime.CompilerServices;
namespace ARMeilleure.IntermediateRepresentation
{
@ -34,6 +35,11 @@ namespace ARMeilleure.IntermediateRepresentation
return Operand().With(value);
}
public static unsafe Operand Const<T>(ref T reference)
{
return Operand().With((ulong)Unsafe.AsPointer(ref reference));
}
public static Operand ConstF(float value)
{
return Operand().With(value);