diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-09-11 14:46:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-11 14:46:20 -0700 |
| commit | e2de1eaec725e979f98ad6f518b93b4d9ce55a36 (patch) | |
| tree | 29167b8abb5001cd3c2803807ec5c8eb3bc2329f /source/slang/ir.h | |
| parent | 80fb7b05b851e645d821331fdbbcea1add686c9a (diff) | |
| parent | 2055d540c5dd420448a6924d784d5aed0efcd93d (diff) | |
Merge pull request #179 from tfoleyNV/ir-lowering-work
Support IR-based codegen for a few more examples.
Diffstat (limited to 'source/slang/ir.h')
| -rw-r--r-- | source/slang/ir.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/slang/ir.h b/source/slang/ir.h index 51755f89f..1561d15a7 100644 --- a/source/slang/ir.h +++ b/source/slang/ir.h @@ -307,6 +307,13 @@ struct IRTextureType : IRType IRType* getElementType() { return (IRType*) elementType.usedValue; } }; +struct IRBufferType : IRType +{ + IRUse elementType; + IRType* getElementType() { return (IRType*) elementType.usedValue; } +}; + + struct IRUniformBufferType : IRType { IRUse elementType; @@ -326,6 +333,12 @@ struct IRLoad : IRInst IRUse ptr; }; +struct IRStore : IRInst +{ + IRUse ptr; + IRUse val; +}; + struct IRStructField; struct IRFieldExtract : IRInst { @@ -541,6 +554,10 @@ struct IRBuilder IRInst* emitLoad( IRValue* ptr); + IRInst* emitStore( + IRValue* dstPtr, + IRValue* srcVal); + IRInst* emitFieldExtract( IRType* type, IRValue* base, |
