diff options
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index f42cfc7f2..6e7e573b8 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -5633,6 +5633,20 @@ IRInst* IRBuilder::addNumThreadsDecoration(IRInst* inst, IRInst* x, IRInst* y, I return addDecoration(inst, kIROp_NumThreadsDecoration, operands, 3); } +IRInst* IRBuilder::addFpDenormalPreserveDecoration(IRInst* inst, IRInst* width) +{ + IRInst* operands[1] = {width}; + + return addDecoration(inst, kIROp_FpDenormalPreserveDecoration, operands, 1); +} + +IRInst* IRBuilder::addFpDenormalFlushToZeroDecoration(IRInst* inst, IRInst* width) +{ + IRInst* operands[1] = {width}; + + return addDecoration(inst, kIROp_FpDenormalFlushToZeroDecoration, operands, 1); +} + IRInst* IRBuilder::addWaveSizeDecoration(IRInst* inst, IRInst* numLanes) { IRInst* operands[1] = {numLanes}; |
