From fcfbafff31869ed808bff0639532db1828660e92 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Thu, 29 Dec 2022 12:32:55 +0000 Subject: dump lots more code --- compiler_and_linker/unsorted/IroLoop.c | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) (limited to 'compiler_and_linker/unsorted/IroLoop.c') diff --git a/compiler_and_linker/unsorted/IroLoop.c b/compiler_and_linker/unsorted/IroLoop.c index 7f207e6..01391bd 100644 --- a/compiler_and_linker/unsorted/IroLoop.c +++ b/compiler_and_linker/unsorted/IroLoop.c @@ -402,8 +402,7 @@ static int Reducable(IROLinear *nd, IROLinear **resultNd1, IROLinear **resultNd2 ) return 0; -#line 802 - CError_ASSERT(indirect->u.monadic->u.node != NULL); + CError_ASSERT(802, indirect->u.monadic->u.node != NULL); *resultVar = IRO_FindVar(indirect->u.monadic->u.node->data.objref, 0, 1); if (!*resultVar || (*resultVar)->xA != 2) return 0; @@ -419,8 +418,7 @@ static int Reducable(IROLinear *nd, IROLinear **resultNd1, IROLinear **resultNd2 while (ind && ind->var != *resultVar) ind = ind->next; -#line 845 - CError_ASSERT(ind != NULL); + CError_ASSERT(845, ind != NULL); if (ind->addNode == NULL) { if (ind->addConst < (val = CInt64_GetULong(&val64))) @@ -632,8 +630,7 @@ static IRONode *CreatePreHeader(IRONode *fnode1, IRONode *fnode2) { fnode2->nextnode = newfnode; newfnode->nextnode = fnode1; } else { -#line 1254 - CError_ASSERT(fnode1->first->type == IROLinearLabel); + CError_ASSERT(1254, fnode1->first->type == IROLinearLabel); labelnode->next = IRO_NewLinear(IROLinearGoto); labelnode->next->u.label.label = fnode1->first->u.label.label; IRO_LastNode->last->next = labelnode; @@ -695,8 +692,7 @@ static IRONode *CreateNewLoopExitSuccessor(IRONode *fnode1) { SwitchCase *swcase; UInt16 i; -#line 1355 - CError_ASSERT(fnode1 != NULL && LoopExitNumber == 1); + CError_ASSERT(1355, fnode1 != NULL && LoopExitNumber == 1); fnode2 = NULL; flag = 0; @@ -704,8 +700,7 @@ static IRONode *CreateNewLoopExitSuccessor(IRONode *fnode1) { for (i = 0; i < fnode1->numpred; i++) { iter = IRO_NodeTable[fnode1->pred[i]]; if (Bv_IsBitSet(iter->index, InLoop_Exits)) { -#line 1366 - CError_ASSERT(fnode2 == NULL); + CError_ASSERT(1366, fnode2 == NULL); fnode2 = iter; if (!flag) { if ( @@ -721,8 +716,7 @@ static IRONode *CreateNewLoopExitSuccessor(IRONode *fnode1) { } } -#line 1382 - CError_ASSERT(fnode2 != NULL); + CError_ASSERT(1382, fnode2 != NULL); newfnode = oalloc(sizeof(IRONode)); memset(newfnode, 0, sizeof(IRONode)); @@ -745,8 +739,7 @@ static IRONode *CreateNewLoopExitSuccessor(IRONode *fnode1) { fnode2->nextnode = newfnode; newfnode->nextnode = fnode1; } else { -#line 1422 - CError_ASSERT(fnode1->first->type == IROLinearLabel); + CError_ASSERT(1422, fnode1->first->type == IROLinearLabel); labelnode->next = IRO_NewLinear(IROLinearGoto); labelnode->next->u.label.label = fnode1->first->u.label.label; IRO_LastNode->last->next = labelnode; @@ -1260,8 +1253,7 @@ static void MyHandleLoop_Vector(IRONode *fnode) { node22 = pred; flag21 = 1; if (pred->nextnode == fnode) { -#line 2880 - CError_ASSERT(v2 == NULL || pred == v2); + CError_ASSERT(2880, v2 == NULL || pred == v2); v2 = pred; } } @@ -1326,8 +1318,7 @@ static void MyHandleLoop_Vector(IRONode *fnode) { induction = FirstInd; while (induction && induction->var != var) induction = induction->next; -#line 3529 - CError_ASSERT(induction != NULL); + CError_ASSERT(3529, induction != NULL); IRO_FindDepends(reduceNd1); if (!Bv_BitsInCommon(IRO_Depends, AllKills)) { @@ -1445,8 +1436,7 @@ static void MyHandleLoop_Motion(IRONode *fnode) { node21 = pred; flag20 = 1; if (pred->nextnode == fnode) { -#line 3880 - CError_ASSERT(v2 == NULL || pred == v2); + CError_ASSERT(3880, v2 == NULL || pred == v2); v2 = pred; } } @@ -1536,8 +1526,7 @@ static void MyHandleLoop_Motion(IRONode *fnode) { IRO_AddToList(ass, &list); IRO_Paste(list.head, list.tail, PredInt); } else { -#line 4123 - CError_FATAL(); + CError_FATAL(4123); } if (LoopExitSuccessor->numpred != 1) -- cgit v1.2.3