diff options
| author | Yong He <yonghe@outlook.com> | 2023-01-30 20:03:46 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-30 20:03:46 -0800 |
| commit | 77cdbb2101f4e27bf1800d4bc1077c0510668c25 (patch) | |
| tree | 418ea6776aaa6a65364ba6de9ec3e6c63d1c4c5a /source/slang/slang-ir.cpp | |
| parent | 499b0253c224e68ceed6e5b6b1ee9cd7d65aad0f (diff) | |
Add transposition logic for constructor opcodes. (#2618)
* Add transposition logic for constructor opcodes.
* Fix.
* Add language server regression test.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index e72ba8c9f..2a4ae59a7 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -3723,6 +3723,18 @@ namespace Slang &defaultValue); } + IRInst* IRBuilder::emitMakeVectorFromScalar( + IRType* type, + IRInst* scalarValue) + { + return emitIntrinsicInst(type, kIROp_MakeVectorFromScalar, 1, &scalarValue); + } + + IRInst* IRBuilder::emitMatrixReshape(IRType* type, IRInst* inst) + { + return emitIntrinsicInst(type, kIROp_MatrixReshape, 1, &inst); + } + IRInst* IRBuilder::emitMakeVector( IRType* type, UInt argCount, |
