Add on translation call counting
This commit is contained in:
parent
82582497a7
commit
98ac020097
7 changed files with 141 additions and 53 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue