diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-02-13 10:40:57 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-13 10:40:57 -0500 |
| commit | 259cfa9dabca31bb1739f9ca1b42e7ca1181652f (patch) | |
| tree | 78273886addaf9598fb11f2699bfca34551bb965 /source/slang/emit.cpp | |
| parent | 73af7100416e1627d1de0aaa94983f56406a9d49 (diff) | |
Fix typos in diagnostic message and comments (#843)
* * Fix some comment typos
* Fix typo in diagnostic message
* Fix typo in expected output of undefined-in-preprocessor-conditional
Diffstat (limited to 'source/slang/emit.cpp')
| -rw-r--r-- | source/slang/emit.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp index 38ea79206..eeb23a6e5 100644 --- a/source/slang/emit.cpp +++ b/source/slang/emit.cpp @@ -4598,7 +4598,7 @@ struct EmitVisitor } } - /// Emit high-level language statements from a structrured region tree. + /// Emit high-level language statements from a structured region tree. void emitRegionTree( EmitContext* ctx, RegionTree* regionTree) @@ -5005,12 +5005,12 @@ struct EmitVisitor // // TODO: it would be better to do these transformations earlier, // so that we can, e.g., dump the final IR code *before* emission - // starts, but that gets a bit compilcated because we also want - // to have the region tree avalable without having to recompute it. + // starts, but that gets a bit complicated because we also want + // to have the region tree available without having to recompute it. // // For now we are just going to do things the expedient way, but // eventually we should allow an IR module to have side-band - // storage for dervied structured like the region tree (and logic + // storage for derived structures like the region tree (and logic // for invalidating them when a transformation would break them). // fixValueScoping(regionTree); @@ -5094,7 +5094,7 @@ struct EmitVisitor indent(); // HACK: forward-declare all the local variables needed for the - // prameters of non-entry blocks. + // parameters of non-entry blocks. emitPhiVarDecls(ctx, func); // Need to emit the operations in the blocks of the function @@ -5242,7 +5242,7 @@ struct EmitVisitor } // Check whether a given value names a target intrinsic, - // and return the IR function representing the instrinsic + // and return the IR function representing the intrinsic // if it does. IRFunc* asTargetIntrinsic( EmitContext* ctxt, @@ -5278,7 +5278,7 @@ struct EmitVisitor // We do not emit the declaration for // functions that appear to be intrinsics/builtins - // in the target langugae. + // in the target language. if (isTargetIntrinsic(ctx, func)) return; @@ -5470,12 +5470,12 @@ struct EmitVisitor // add the `flat` modifier for GLSL. if(!anyModifiers && isGLSL) { - // Only emit a deault `flat` for fragment + // Only emit a default `flat` for fragment // stage varying inputs. // // TODO: double-check that this works for // signature matching even if the producing - // stage didnt' use `flat`. + // stage didn't use `flat`. // // If this ends up being a problem we can instead // output everything with `flat` except for |
