| 3469 | } |
| 3470 | |
| 3471 | BeGEPInst* 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 | |
| 3490 | BeBrInst* BeModule::CreateBr(BeBlock* block) |
| 3491 | { |
no test coverage detected