Skip to content

ConstantFolding

Types

Name
ConstantFoldingInheritedAttribute
ConstantFoldingSynthesizedAttribute
ConstantFoldingTraversal
ConstantUnFoldingSynthesizedAttribute
ConstantUnFoldingTraversal

Functions

Name Description
buildPredicateResult
SgValueExp* buildPredicateResult( SgBinaryOp* op, bool value);
buildResultValueExp_float_t
template< typename T1, typename T2> static SgValueExp* buildResultValueExp_float_t( SgBinaryOp* binaryOperator, SgValueExp* lhsValue, SgValueExp* rhsValue);
buildResultValueExp_t
template< typename T1, typename T2> static SgValueExp* buildResultValueExp_t( SgBinaryOp* binaryOperator, SgValueExp* lhsValue, SgValueExp* rhsValue);
buildResultValueExp_u_t
template< typename T1, typename T2> static SgValueExp* buildResultValueExp_u_t( SgUnaryOp* unaryOperator, SgValueExp* theValue);
calculateIntegral
template<typename T> std::optional<T> calculateIntegral( SgBinaryOp* op, T lhs, T rhs);
calculate_float_t
template<typename T> T calculate_float_t( SgBinaryOp* binaryOperator, T lhsValue, T rhsValue);
Calculate the result of a binary operation on two constant float-kind values,
calculate_u_t
template<typename T> T calculate_u_t( SgUnaryOp* unaryOperator, T theValue);
cf_get_value_t
template< typename T1, typename T2> T1 cf_get_value_t(T2* sg_value_exp);
checkedIntegralProduct
template<typename T> bool checkedIntegralProduct( T lhs, T rhs, T& result);
constantFoldingOptimization
[[visibility("default")]] void constantFoldingOptimization(SgNode* n);
constantUnFoldingTest
[[visibility("default")]] void constantUnFoldingTest(SgNode* n);
isPredicateBinaryOperator
bool isPredicateBinaryOperator(VariantT kind);
returnConstantFoldedValueExpression
[[visibility("default")]] SgValueExp* returnConstantFoldedValueExpression(SgNode* n);

Created with MrDocs