|
@@ -10,8 +10,8 @@ namespace ARMeilleure.IntermediateRepresentation
|
|
|
|
|
|
|
|
public ulong Value { get; private set; }
|
|
public ulong Value { get; private set; }
|
|
|
|
|
|
|
|
- public bool DisableCF { get; private set; }
|
|
|
|
|
- public int? PtcIndex { get; private set; }
|
|
|
|
|
|
|
+ public bool Relocatable { get; private set; }
|
|
|
|
|
+ public int? PtcIndex { get; private set; }
|
|
|
|
|
|
|
|
public List<Node> Assignments { get; }
|
|
public List<Node> Assignments { get; }
|
|
|
public List<Node> Uses { get; }
|
|
public List<Node> Uses { get; }
|
|
@@ -28,15 +28,20 @@ namespace ARMeilleure.IntermediateRepresentation
|
|
|
Type = type;
|
|
Type = type;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public Operand With(OperandKind kind, OperandType type = OperandType.None, ulong value = 0, bool disableCF = false, int? index = null)
|
|
|
|
|
|
|
+ public Operand With(
|
|
|
|
|
+ OperandKind kind,
|
|
|
|
|
+ OperandType type = OperandType.None,
|
|
|
|
|
+ ulong value = 0,
|
|
|
|
|
+ bool relocatable = false,
|
|
|
|
|
+ int? index = null)
|
|
|
{
|
|
{
|
|
|
Kind = kind;
|
|
Kind = kind;
|
|
|
Type = type;
|
|
Type = type;
|
|
|
|
|
|
|
|
Value = value;
|
|
Value = value;
|
|
|
|
|
|
|
|
- DisableCF = disableCF;
|
|
|
|
|
- PtcIndex = index;
|
|
|
|
|
|
|
+ Relocatable = relocatable;
|
|
|
|
|
+ PtcIndex = index;
|
|
|
|
|
|
|
|
Assignments.Clear();
|
|
Assignments.Clear();
|
|
|
Uses.Clear();
|
|
Uses.Clear();
|
|
@@ -54,9 +59,9 @@ namespace ARMeilleure.IntermediateRepresentation
|
|
|
return With(OperandKind.Constant, OperandType.I32, value);
|
|
return With(OperandKind.Constant, OperandType.I32, value);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public Operand With(long value, bool disableCF = false, int? index = null)
|
|
|
|
|
|
|
+ public Operand With(long value, bool relocatable = false, int? index = null)
|
|
|
{
|
|
{
|
|
|
- return With(OperandKind.Constant, OperandType.I64, (ulong)value, disableCF, index);
|
|
|
|
|
|
|
+ return With(OperandKind.Constant, OperandType.I64, (ulong)value, relocatable, index);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public Operand With(ulong value)
|
|
public Operand With(ulong value)
|