mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Comptime naming fixes
This commit is contained in:
parent
3bbf2d8313
commit
0f33968030
11 changed files with 107 additions and 74 deletions
|
@ -2646,62 +2646,62 @@ void BeIRCodeGen::HandleNextCmd()
|
|||
SetResult(curId, mBeModule->GetInsertBlock());
|
||||
}
|
||||
break;
|
||||
case BfIRCmd_ConstEval_GetBfType:
|
||||
case BfIRCmd_Comptime_GetBfType:
|
||||
{
|
||||
CMD_PARAM(int32, typeId);
|
||||
CMD_PARAM(BeType*, resultType);
|
||||
|
||||
auto inst = mBeModule->AllocInst<BeConstEvalGetType>();
|
||||
auto inst = mBeModule->AllocInst<BeComptimeGetType>();
|
||||
inst->mTypeId = typeId;
|
||||
inst->mResultType = resultType;
|
||||
SetResult(curId, inst);
|
||||
}
|
||||
break;
|
||||
case BfIRCmd_ConstEval_GetReflectType:
|
||||
case BfIRCmd_Comptime_GetReflectType:
|
||||
{
|
||||
CMD_PARAM(int32, typeId);
|
||||
CMD_PARAM(BeType*, resultType);
|
||||
|
||||
auto inst = mBeModule->AllocInst<BeConstEvalGetReflectType>();
|
||||
auto inst = mBeModule->AllocInst<BeComptimeGetReflectType>();
|
||||
inst->mTypeId = typeId;
|
||||
inst->mResultType = resultType;
|
||||
SetResult(curId, inst);
|
||||
}
|
||||
break;
|
||||
case BfIRCmd_ConstEval_DynamicCastCheck:
|
||||
case BfIRCmd_Comptime_DynamicCastCheck:
|
||||
{
|
||||
CMD_PARAM(BeValue*, value);
|
||||
CMD_PARAM(int32, typeId);
|
||||
CMD_PARAM(BeType*, resultType);
|
||||
|
||||
auto inst = mBeModule->AllocInst<BeConstEvalDynamicCastCheck>();
|
||||
auto inst = mBeModule->AllocInst<BeComptimeDynamicCastCheck>();
|
||||
inst->mValue = value;
|
||||
inst->mTypeId = typeId;
|
||||
inst->mResultType = resultType;
|
||||
SetResult(curId, inst);
|
||||
}
|
||||
break;
|
||||
case BfIRCmd_ConstEval_GetVirtualFunc:
|
||||
case BfIRCmd_Comptime_GetVirtualFunc:
|
||||
{
|
||||
CMD_PARAM(BeValue*, value);
|
||||
CMD_PARAM(int32, virtualTableIdx);
|
||||
CMD_PARAM(BeType*, resultType);
|
||||
|
||||
auto inst = mBeModule->AllocInst<BeConstEvalGetVirtualFunc>();
|
||||
auto inst = mBeModule->AllocInst<BeComptimeGetVirtualFunc>();
|
||||
inst->mValue = value;
|
||||
inst->mVirtualTableIdx = virtualTableIdx;
|
||||
inst->mResultType = resultType;
|
||||
SetResult(curId, inst);
|
||||
}
|
||||
break;
|
||||
case BfIRCmd_ConstEval_GetInterfaceFunc:
|
||||
case BfIRCmd_Comptime_GetInterfaceFunc:
|
||||
{
|
||||
CMD_PARAM(BeValue*, value);
|
||||
CMD_PARAM(int32, ifaceTypeId);
|
||||
CMD_PARAM(int32, methodIdx);
|
||||
CMD_PARAM(BeType*, resultType);
|
||||
|
||||
auto inst = mBeModule->AllocInst<BeConstEvalGetInterfaceFunc>();
|
||||
auto inst = mBeModule->AllocInst<BeComptimeGetInterfaceFunc>();
|
||||
inst->mValue = value;
|
||||
inst->mIFaceTypeId = ifaceTypeId;
|
||||
inst->mMethodIdx = methodIdx;
|
||||
|
|
|
@ -2451,11 +2451,11 @@ String BeModule::ToString(BeFunction* wantFunc)
|
|||
}
|
||||
}
|
||||
break;
|
||||
DISPLAY_INST1(BeConstEvalGetType, "ConstEvalGetType", mTypeId);
|
||||
DISPLAY_INST1(BeConstEvalGetReflectType, "ConstEvalGetReflectType", mTypeId);
|
||||
DISPLAY_INST2(BeConstEvalDynamicCastCheck, "ConstEvalDynamicCastCheck", mValue, mTypeId);
|
||||
DISPLAY_INST2(BeConstEvalGetVirtualFunc, "ConstEvalGetVirtualFunc", mValue, mVirtualTableIdx);
|
||||
DISPLAY_INST3(BeConstEvalGetInterfaceFunc, "ConstEvalGetInterfaceFunc", mValue, mIFaceTypeId, mMethodIdx);
|
||||
DISPLAY_INST1(BeComptimeGetType, "ComptimeGetType", mTypeId);
|
||||
DISPLAY_INST1(BeComptimeGetReflectType, "ComptimeGetReflectType", mTypeId);
|
||||
DISPLAY_INST2(BeComptimeDynamicCastCheck, "ComptimeDynamicCastCheck", mValue, mTypeId);
|
||||
DISPLAY_INST2(BeComptimeGetVirtualFunc, "ComptimeGetVirtualFunc", mValue, mVirtualTableIdx);
|
||||
DISPLAY_INST3(BeComptimeGetInterfaceFunc, "ComptimeGetInterfaceFunc", mValue, mIFaceTypeId, mMethodIdx);
|
||||
default:
|
||||
BF_FATAL("Notimpl");
|
||||
str += "<UNKNOWN INST>";
|
||||
|
|
|
@ -1348,10 +1348,10 @@ public:
|
|||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class BeConstEvalGetType : public BeInst
|
||||
class BeComptimeGetType : public BeInst
|
||||
{
|
||||
public:
|
||||
BE_VALUE_TYPE(BeConstEvalGetType, BeInst);
|
||||
BE_VALUE_TYPE(BeComptimeGetType, BeInst);
|
||||
|
||||
public:
|
||||
int mTypeId;
|
||||
|
@ -1370,10 +1370,10 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class BeConstEvalGetReflectType : public BeInst
|
||||
class BeComptimeGetReflectType : public BeInst
|
||||
{
|
||||
public:
|
||||
BE_VALUE_TYPE(BeConstEvalGetReflectType, BeInst);
|
||||
BE_VALUE_TYPE(BeComptimeGetReflectType, BeInst);
|
||||
|
||||
public:
|
||||
int mTypeId;
|
||||
|
@ -1392,10 +1392,10 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class BeConstEvalDynamicCastCheck : public BeInst
|
||||
class BeComptimeDynamicCastCheck : public BeInst
|
||||
{
|
||||
public:
|
||||
BE_VALUE_TYPE(BeConstEvalDynamicCastCheck, BeInst);
|
||||
BE_VALUE_TYPE(BeComptimeDynamicCastCheck, BeInst);
|
||||
|
||||
public:
|
||||
BeValue* mValue;
|
||||
|
@ -1416,10 +1416,10 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class BeConstEvalGetVirtualFunc : public BeInst
|
||||
class BeComptimeGetVirtualFunc : public BeInst
|
||||
{
|
||||
public:
|
||||
BE_VALUE_TYPE(BeConstEvalGetVirtualFunc, BeInst);
|
||||
BE_VALUE_TYPE(BeComptimeGetVirtualFunc, BeInst);
|
||||
|
||||
public:
|
||||
BeValue* mValue;
|
||||
|
@ -1440,10 +1440,10 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class BeConstEvalGetInterfaceFunc : public BeInst
|
||||
class BeComptimeGetInterfaceFunc : public BeInst
|
||||
{
|
||||
public:
|
||||
BE_VALUE_TYPE(BeConstEvalGetInterfaceFunc, BeInst);
|
||||
BE_VALUE_TYPE(BeComptimeGetInterfaceFunc, BeInst);
|
||||
|
||||
public:
|
||||
BeValue* mValue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue