@@ -242,10 +242,10 @@ class ConvertMethodCalls : public MauTransform {
242242 return prim;
243243 }
244244
245- const IR::MAU::Primitive *postorder (IR::MAU::Primitive *prim) {
245+ const IR::MAU::MauPrimitive *postorder (IR::MAU::MauPrimitive *prim) {
246246 if (prim->name == " method_call_init" ) {
247247 BUG_CHECK (prim->operands .size () == 1 , " method call initialization failed" );
248- if (auto *p = prim->operands .at (0 )->to <IR::MAU::Primitive >())
248+ if (auto *p = prim->operands .at (0 )->to <IR::MAU::MauPrimitive >())
249249 return p;
250250 else if (prim->operands .at (0 )->is <IR::Member>())
251251 // comes from a bare "isValid" call -- is a noop
@@ -379,7 +379,8 @@ class ActionBodySetup : public Inspector {
379379 if (!af->exitAction ) {
380380 cstring pname = " modify_field" _cs;
381381 if (assign->left ->type ->is <IR::Type_Header>()) pname = " copy_header" _cs;
382- auto prim = new IR::MAU::Primitive (assign->srcInfo , pname, assign->left , assign->right );
382+ auto prim =
383+ new IR::MAU::MauPrimitive (assign->srcInfo , pname, assign->left , assign->right );
383384 prim->in_hash = InHashAnnot ();
384385 af->action .push_back (prim);
385386 }
@@ -388,7 +389,7 @@ class ActionBodySetup : public Inspector {
388389 bool preorder (const IR::MethodCallStatement *mc) override {
389390 if (!af->exitAction ) {
390391 auto mc_init =
391- new IR::MAU::Primitive (mc->srcInfo , " method_call_init" _cs, mc->methodCall );
392+ new IR::MAU::MauPrimitive (mc->srcInfo , " method_call_init" _cs, mc->methodCall );
392393 af->action .push_back (mc_init);
393394 }
394395 return false ;
@@ -1293,7 +1294,7 @@ void AttachTables::InitializeStatefulAlus ::updateAttachedSalu(const IR::Declara
12931294 }
12941295 if (ext->type ->toString ().startsWith (" LearnAction" )) salu->learn_action = true ;
12951296
1296- auto prim = findContext<IR::MAU::Primitive >();
1297+ auto prim = findContext<IR::MAU::MauPrimitive >();
12971298 LOG6 (" - " << (prim ? prim->name .c_str () : " <no primitive>" ));
12981299 if (prim && prim->name .endsWith (" .address" )) {
12991300 salu->chain_vpn = true ;
@@ -1340,7 +1341,7 @@ void AttachTables::InitializeStatefulAlus::postorder(const IR::GlobalRef *gref)
13401341 * Gathers information about register params and checks
13411342 * that they are used in a single stateful ALU.
13421343 */
1343- bool AttachTables::InitializeRegisterParams::preorder (const IR::MAU::Primitive *prim) {
1344+ bool AttachTables::InitializeRegisterParams::preorder (const IR::MAU::MauPrimitive *prim) {
13441345 if (prim->name != " RegisterParam.read" ) return true ;
13451346 const IR::Declaration_Instance *reg_param_decl = nullptr ;
13461347 if (auto *gr = prim->operands .at (0 )->to <IR::GlobalRef>())
0 commit comments