summaryrefslogtreecommitdiffstats
path: root/src/build/ifcompiler/initRpn.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/build/ifcompiler/initRpn.C')
-rwxr-xr-xsrc/build/ifcompiler/initRpn.C12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/build/ifcompiler/initRpn.C b/src/build/ifcompiler/initRpn.C
index bb0fcca1a..bd1b8b1a1 100755
--- a/src/build/ifcompiler/initRpn.C
+++ b/src/build/ifcompiler/initRpn.C
@@ -21,6 +21,7 @@
// dg003 SW047506 dgilbert 12/09/10 SERIES filtering
// andrewg 05/24/11 Port over for VPL/PgP
// andrewg 09/19/11 Updates based on review
+// camvanng 11/08/11 Added support for attribute enums
// End Change Log *********************************************************************************
/**
@@ -211,6 +212,17 @@ void Rpn::push_array_index(std::string &i_array_idx)
}
//-------------------------------------------------------------------------------------------------
+void Rpn::push_attr_enum(std::string &i_attr_enum)
+{
+ uint64_t l_attr_enum_val = iv_symbols->get_attr_enum_val(i_attr_enum);
+
+ uint32_t rpn_id = iv_symbols->find_numeric_lit(l_attr_enum_val,8);
+ iv_rpnstack.push_back(rpn_id);
+
+ //printf("Attribute Enum name: %s Value:%u rpn_id:0x%8X\n",i_attr_enum.c_str(),l_attr_enum_val,rpn_id);
+}
+
+//-------------------------------------------------------------------------------------------------
bool Rpn::isTrue() const //dg003a
{
OpenPOWER on IntegriCloud