MCPcopy Create free account
hub / github.com/beefytech/Beef / CreateBinaryOp

Method CreateBinaryOp

IDEHelper/Backend/BeModule.cpp:3403–3417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3401}
3402
3403BeBinaryOpInst* BeModule::CreateBinaryOp(BeBinaryOpKind opKind, BeValue* lhs, BeValue* rhs, BfOverflowCheckKind overflowCheckKind)
3404{
3405#ifdef _DEBUG
3406 auto leftType = lhs->GetType();
3407 auto rightType = rhs->GetType();
3408 BF_ASSERT(leftType == rightType);
3409#endif
3410 auto inst = mAlloc.Alloc<BeBinaryOpInst>();
3411 inst->mOpKind = opKind;
3412 inst->mLHS = lhs;
3413 inst->mRHS = rhs;
3414 inst->mOverflowCheckKind = overflowCheckKind;
3415 AddInst(inst);
3416 return inst;
3417}
3418
3419BeAllocaInst* BeModule::CreateAlloca(BeType* type)
3420{

Callers 1

HandleNextCmdMethod · 0.80

Calls 1

GetTypeMethod · 0.45

Tested by

no test coverage detected