Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HLSL] Implement Constant expression evaluator for flat casts #125321

Open
spall opened this issue Feb 1, 2025 · 0 comments
Open

[HLSL] Implement Constant expression evaluator for flat casts #125321

spall opened this issue Feb 1, 2025 · 0 comments
Assignees
Labels
HLSL HLSL Language Support

Comments

@spall
Copy link
Contributor

spall commented Feb 1, 2025

Implement necessary code in clang/lib/AST/ExprConstant.cpp to support the flat cast (unofficial name)
See PR for implementation of this cast #118842
Support to handle this cast should be added to:

  • FloatExprEvaluator::VisitCastExpr
  • IntExprEvaluator::VisitCastExpr
  • VectorExprEvaluator::VisitCastExpr
  • RecordExprEvaluator::VisitCastExpr
  • ArrayExprEvaluator::VisitCastExpr (There is currently no such function but I believe it should be added).
@EugeneZelenko EugeneZelenko added HLSL HLSL Language Support and removed new issue labels Feb 1, 2025
@spall spall moved this to Planning in HLSL Support Feb 3, 2025
@damyanp damyanp moved this from Planning to Active in HLSL Support Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HLSL HLSL Language Support
Projects
Status: Active
Development

No branches or pull requests

3 participants