llvm-project
8cc12bcf - [clang][bytecode][HLSL] Complete the HLSL aggregate splat and elementwise cast implementations, and enable the new constant interpreter on all HLSL tests with static asserts (#189126)

Commit
12 days ago
[clang][bytecode][HLSL] Complete the HLSL aggregate splat and elementwise cast implementations, and enable the new constant interpreter on all HLSL tests with static asserts (#189126) This PR fixes https://github.com/llvm/llvm-project/issues/183426, completing the implementations of `CK_HLSLAggregateSplatCast` and `CK_HLSLElementwiseCast` in Clang's new bytecode-based constant expression evaluation engine / interpreter. This PR also adds new RUN lines with `-fexperimental-new-constant-interpreter` to all HLSL tests that have static assertions. The tests exercising the `CK_HLSLAggregateSplatCast` and `CK_HLSLElementwiseCast` implementations in the new constant interpreter are - `clang/test/SemaHLSL/Types/AggregateSplatConstantExpr.hlsl` and - `clang/test/SemaHLSL/Types/ElementWiseConstantExpr.hlsl` respectively. Assisted-by: GitHub Copilot --------- Co-authored-by: Timm Baeder <tbaeder@redhat.com>
Author
Parents
Loading