aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ExprConstant.cpp
AgeCommit message (Expand)Author
2008-12-08Workaround for PR3173. The fix is correct in the sense that if the enum Eli Friedman
2008-12-05This wasn't such a good idea after all as it broke some tests.Anders Carlsson
2008-12-05Handle __builtin___CFStringMakeConstantString in Expr::Evaluate.Anders Carlsson
2008-12-01Generate the correct results for the comma expression. Fixes PR3123.Anders Carlsson
2008-12-01Emit the correct diagnostic when a comma is in an ICE.Anders Carlsson
2008-11-30Change the diagnostics that the evaluator reports to be of type NOTE.Anders Carlsson
2008-11-30Replace the isEvaluated bool with a ShortCircuit int, making it easier to han...Anders Carlsson
2008-11-30Pass the expression to the Error and Extension methods.Anders Carlsson
2008-11-30Add a new variant of Evaluate and reimplement the old Evaluate in terms of th...Anders Carlsson
2008-11-30General cleanup, evaluate the RHS of a logical op even if the LHS will give u...Anders Carlsson
2008-11-30EvalInfo now holds a reference to an EvalResult struct.Anders Carlsson
2008-11-26remove debug-only assertion in the complex float evaluator as it makes some r...Nuno Lopes
2008-11-24The address of a variable is only constant if the variable has global storage.Anders Carlsson
2008-11-24Fix bug in the constant evaluator. Fixes PR3115.Anders Carlsson
2008-11-22Return false if we encounter a type we can't handle.Anders Carlsson
2008-11-22Case values must be evaluatedAnders Carlsson
2008-11-22Use Expr::Evaluate for case statements. Fixes PR2525Anders Carlsson
2008-11-19fix folding of '*doubleArray'Nuno Lopes
2008-11-16Address some comments Eli had.Anders Carlsson
2008-11-16use HandleConversionToBool() to check if a given cond is foldable (per Eli's ...Nuno Lopes
2008-11-16More complex float evaluator support.Anders Carlsson
2008-11-16rename Expr::tryEvaluate to Expr::Evaluate.Chris Lattner
2008-11-16Add very limited support for evaluating complex floats.Anders Carlsson
2008-11-16fix folding of comma if given a non-constant operand.Nuno Lopes
2008-11-16make IntExprEvaluator fold the ?: operatorNuno Lopes
2008-11-16More work on the constant evaluator. Eli, it would be great if you could have...Anders Carlsson
2008-11-16Add the ability to evaluate comparison operators with floating point numbers ...Anders Carlsson
2008-11-13Fix for crash issues with comma operators with a void first operand, and Eli Friedman
2008-11-13Backout of r59196, plus a new ICE test. Sorry if this is a Eli Friedman
2008-11-13Fix bug in constant evaluation exposed by 176.gcc.Daniel Dunbar
2008-11-12Disable some debug prints.Daniel Dunbar
2008-11-12Some additions to tryEvaluate I've had sitting around for a while.Eli Friedman
2008-11-12fix a crash analyzing constants in 176.gcc/expr.c with my next patch. It wasChris Lattner
2008-11-12Teach the aggressive constant folder to fold X && 0 -> 0 and X || 1 -> 1Chris Lattner
2008-11-11Introduce a single AST node SizeOfAlignOfExpr for all sizeof and alignof expr...Sebastian Redl
2008-10-24PR2919: __builtin_types_compatible_p strips CRV qualifiers.Daniel Dunbar
2008-10-16Teach tryEvaluate that fabs, copysign, and unary +/- are constants forDaniel Dunbar
2008-10-14Fix test suite regression, getFloatTypeSemantics shouldn't be calledDaniel Dunbar
2008-10-09Adjust calls to APFloat conversion for new interface.Dale Johannesen
2008-10-06ExprConstant should not abort when it sees a pointer constant that isn't.Chris Lattner
2008-10-06Add a Expr::isEvaluatable method, eliminate isBuiltinConstantExprChris Lattner
2008-10-06Move folding of __builtin_classify_type out of the CallExprChris Lattner
2008-10-06Move handling of __builtin_nan("") out of CGBuiltin.cpp into ExprConstant.cppChris Lattner
2008-10-06Teach FloatExprEvaluator to evaluate __builtin_huge_val and inf.Chris Lattner
2008-10-06Add a comment that describes tryEvaluate. Make tryEvaluate foldChris Lattner
2008-08-22Initial implementation of floats in Expr::tryEvaluate; this doesn't Eli Friedman
2008-08-18Add ExplicitCastExpr to replace the current CastExpr, and have ImplicitCastEx...Argyrios Kyrtzidis
2008-08-11More #include cleaningDaniel Dunbar
2008-08-10Remove the old evaluator code.Anders Carlsson
2008-08-09Turn on the new constant expression evaluator; it isn't Eli Friedman