4444#include " llmputil.h"
4545#include " symfun.h"
4646
47+ #ifdef __cplusplus
48+ inline SPTR GetPARUPLEVEL (SPTR sptr) {
49+ return static_cast <SPTR>(PARUPLEVELG (sptr));
50+ }
51+ #undef PARUPLEVELG
52+ #define PARUPLEVELG GetPARUPLEVEL
53+ #endif
54+
4755static void incrOutlinedCnt (void );
4856static void decrOutlinedCnt (void );
4957static int getOutlinedTemp (char *, int );
@@ -144,7 +152,7 @@ typedef struct SectionsWrk_t {
144152 SPTR lb; /* start at 0 */
145153 SPTR ub; /* number of sections */
146154 SPTR st; /* stride 1 */
147- int last; /* flag for last section */
155+ SPTR last; /* flag for last section */
148156 int cnt; /* running count */
149157 int bbih; /* start block for sections */
150158} SectionsWrk_t;
@@ -809,7 +817,7 @@ setTaskloopVars(SPTR lb, SPTR ub, SPTR stride, SPTR lastitr)
809817 /* This code is in an outlined taskloop routine.
810818 * Load taskloop vars from arg1 to local/private vars.
811819 */
812- arg = (SPTR) ll_get_hostprog_arg (GBL_CURRFUNC, 2 ); // ???
820+ arg = ll_get_hostprog_arg (GBL_CURRFUNC, 2 );
813821 basenm = addnme (NT_VAR, arg, 0 , 0 );
814822 baseili = ad_acon (arg, 0 );
815823 baseili = mk_address (arg);
@@ -943,7 +951,7 @@ exp_smp(ILM_OP opc, ILM *ilmp, int curilm)
943951 LLTask *task;
944952 bool is_cmblk;
945953 static sptrListT *copysptr_list = NULL ;
946- static int uplevel_sptr;
954+ static SPTR uplevel_sptr;
947955 static SPTR single_thread;
948956 static SPTR in_single;
949957 SPTR nlower, nupper, nstride;
@@ -1406,7 +1414,7 @@ exp_smp(ILM_OP opc, ILM *ilmp, int curilm)
14061414 const int upper = ILM_OPND (ilmp, 2 );
14071415 const int stride = ILM_OPND (ilmp, 3 );
14081416 const int last = ILM_OPND (ilmp, 4 );
1409- const DTYPE dtype = (DTYPE) ILM_OPND ( ilmp, 5 ); // ???
1417+ const DTYPE dtype = ILM_DTyOPND ( ilmp, 5 );
14101418 ili = ll_make_kmpc_dispatch_next (lower, upper, stride, last, dtype);
14111419 iltb.callfg = 1 ;
14121420 chk_block (ili);
@@ -1467,9 +1475,9 @@ exp_smp(ILM_OP opc, ILM *ilmp, int curilm)
14671475 nupper = ILM_SymOPND (ilmp, 2 );
14681476 nstride = ILM_SymOPND (ilmp, 3 );
14691477 if (!XBIT (183 , 0x100000 )) {
1470- nlower = (SPTR) getccsym_copy (nlower); // ???
1471- nupper = (SPTR) getccsym_copy (nupper); // ???
1472- nstride = (SPTR) getccsym_copy (nstride); // ???
1478+ nlower = getccsym_copy (nlower);
1479+ nupper = getccsym_copy (nupper);
1480+ nstride = getccsym_copy (nstride);
14731481 ENCLFUNCP (nlower, GBL_CURRFUNC);
14741482 ENCLFUNCP (nupper, GBL_CURRFUNC);
14751483 ENCLFUNCP (nstride, GBL_CURRFUNC);
@@ -1482,7 +1490,7 @@ exp_smp(ILM_OP opc, ILM *ilmp, int curilm)
14821490 loop_args.stride = nstride;
14831491 loop_args.chunk = ILM_SymOPND (ilmp, 4 );
14841492 loop_args.last = ILM_OPND (ilmp, 5 );
1485- loop_args.dtype = (DTYPE) ILM_OPND ( ilmp, 6 ); // ???
1493+ loop_args.dtype = ILM_DTyOPND ( ilmp, 6 );
14861494 loop_args.sched = (kmpc_sched_e)ILM_OPND (ilmp, 7 );
14871495 sched = mp_sched_to_kmpc_sched (loop_args.sched );
14881496 switch (sched) {
@@ -1530,7 +1538,7 @@ exp_smp(ILM_OP opc, ILM *ilmp, int curilm)
15301538 loop_args.chunk = ILM_SymOPND (ilmp, 4 );
15311539 loop_args.last = ILM_OPND (ilmp, 5 );
15321540 loop_args.upperd = ILM_OPND (ilmp, 6 );
1533- loop_args.dtype = (DTYPE) ILM_OPND ( ilmp, 7 ); // ???
1541+ loop_args.dtype = ILM_DTyOPND ( ilmp, 7 );
15341542 loop_args.sched = (kmpc_sched_e)ILM_OPND (ilmp, 8 );
15351543 sched = mp_sched_to_kmpc_sched (loop_args.sched );
15361544 switch (sched) {
@@ -1561,7 +1569,7 @@ exp_smp(ILM_OP opc, ILM *ilmp, int curilm)
15611569 break ;
15621570 const int sched = mp_sched_to_kmpc_sched (ILM_OPND (ilmp, 2 ));
15631571 if (sched == KMP_ORD_STATIC || sched == KMP_ORD_DYNAMIC_CHUNKED) {
1564- ili = ll_make_kmpc_dispatch_fini ((DTYPE) ILM_OPND ( ilmp, 1 )); // ???
1572+ ili = ll_make_kmpc_dispatch_fini (ILM_DTyOPND ( ilmp, 1 ));
15651573 iltb.callfg = 1 ;
15661574 chk_block (ili);
15671575 } else if (sched == KMP_SCH_STATIC || sched == KMP_SCH_STATIC_CHUNKED ||
@@ -2676,8 +2684,8 @@ exp_smp(ILM_OP opc, ILM *ilmp, int curilm)
26762684 if (ISTASKDUPG (GBL_CURRFUNC)) {
26772685 INT offset;
26782686 int offset_sptr, ioffset, acon, load, nme;
2679- SPTR secarg = (SPTR) ll_get_hostprog_arg (GBL_CURRFUNC, 1 ); // ???
2680- SPTR lastitr = (SPTR) ll_get_hostprog_arg (GBL_CURRFUNC, 3 ); // ???
2687+ SPTR secarg = ll_get_hostprog_arg (GBL_CURRFUNC, 1 );
2688+ SPTR lastitr = ll_get_hostprog_arg (GBL_CURRFUNC, 3 );
26812689 offset_sptr = ILM_OPND (ilmp, 1 );
26822690 offset = get_isz_cval (offset_sptr);
26832691 /* load from 3rd argument(int litr) into 1st argument at offset */
0 commit comments