mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Added Target CPU workspace override
This commit is contained in:
parent
91e856fc0b
commit
125d5c0c8c
14 changed files with 34 additions and 13 deletions
|
@ -16040,13 +16040,16 @@ BeMCOperand BeMCContext::AllocBinaryOp(BeMCInstKind instKind, const BeMCOperand&
|
|||
}
|
||||
|
||||
void BeMCContext::Generate(BeFunction* function)
|
||||
{
|
||||
{
|
||||
BP_ZONE_F("BeMCContext::Generate %s", function->mName.c_str());
|
||||
|
||||
mBeFunction = function;
|
||||
mDbgFunction = mBeFunction->mDbgFunction;
|
||||
mModule = function->mModule;
|
||||
|
||||
if (!mModule->mTargetCPU.IsEmpty())
|
||||
mModule->mBeIRCodeGen->Fail(StrFormat("Cannot set Target CPU '%s' for +Og optimization. Considering compiling under a different optimization setting.", mModule->mTargetCPU.c_str()));
|
||||
|
||||
//mDbgPreferredRegs[15] = X64Reg_RCX;
|
||||
//mDbgPreferredRegs[7] = X64Reg_RCX;
|
||||
/*mDbgPreferredRegs[14] = X64Reg_RAX;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue