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

Method CreateGEP

IDEHelper/Backend/BeModule.cpp:3471–3488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3469}
3470
3471BeGEPInst* BeModule::CreateGEP(BeValue* ptr, BeValue* idx0, BeValue* idx1)
3472{
3473#ifdef _DEBUG
3474 BF_ASSERT(ptr->GetType()->IsPointer());
3475#endif
3476
3477 auto inst = mAlloc.Alloc<BeGEPInst>();
3478 inst->mPtr = ptr;
3479 inst->mIdx0 = idx0;
3480 inst->mIdx1 = idx1;
3481 AddInst(inst);
3482
3483#ifdef _DEBUG
3484 inst->GetType();
3485#endif
3486
3487 return inst;
3488}
3489
3490BeBrInst* BeModule::CreateBr(BeBlock* block)
3491{

Callers 1

HandleNextCmdMethod · 0.80

Calls 2

IsPointerMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected