diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-05-29 08:36:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-29 08:36:10 -0400 |
| commit | f3d70425fa339a0d8f39b920235c98280d250bbb (patch) | |
| tree | 24923917e3ca43fdc1b3ca67ee589973c92a4b60 /source/slang/slang-emit-c-like.cpp | |
| parent | 95597d77b131ee2c41c2eb4481844c315b2c82eb (diff) | |
Feature/ast syntax standard (#1360)
* Small improvements to documentation and code around DiagnosticSink
* Made methods/functions in slang-syntax.h be lowerCamel
Removed some commented out source (was placed elsewhere in code)
* Making AST related methods and function lowerCamel.
Made IsLeftValue -> isLeftValue.
Diffstat (limited to 'source/slang/slang-emit-c-like.cpp')
| -rw-r--r-- | source/slang/slang-emit-c-like.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/slang/slang-emit-c-like.cpp b/source/slang/slang-emit-c-like.cpp index 811036dc0..61b5ed139 100644 --- a/source/slang/slang-emit-c-like.cpp +++ b/source/slang/slang-emit-c-like.cpp @@ -209,7 +209,7 @@ void CLikeSourceEmitter::emitSimpleType(IRType* type) IRNumThreadsDecoration* decor = func->findDecoration<IRNumThreadsDecoration>(); for (int i = 0; i < 3; ++i) { - outNumThreads[i] = decor ? Int(GetIntVal(decor->getOperand(i))) : 1; + outNumThreads[i] = decor ? Int(getIntVal(decor->getOperand(i))) : 1; } return decor; } @@ -1521,7 +1521,7 @@ void CLikeSourceEmitter::emitIntrinsicCallExprImpl( else if (auto vectorType = as<IRVectorType>(elementType)) { // A vector result is expected - auto elementCount = GetIntVal(vectorType->getElementCount()); + auto elementCount = getIntVal(vectorType->getElementCount()); if (elementCount < 4) { @@ -1553,7 +1553,7 @@ void CLikeSourceEmitter::emitIntrinsicCallExprImpl( auto vectorArg = args[argIndex].get(); if (auto vectorType = as<IRVectorType>(vectorArg->getDataType())) { - auto elementCount = GetIntVal(vectorType->getElementCount()); + auto elementCount = getIntVal(vectorType->getElementCount()); m_writer->emit(elementCount); } else @@ -1578,7 +1578,7 @@ void CLikeSourceEmitter::emitIntrinsicCallExprImpl( IRType* elementType = arg->getDataType(); if (auto vectorType = as<IRVectorType>(elementType)) { - elementCount = GetIntVal(vectorType->getElementCount()); + elementCount = getIntVal(vectorType->getElementCount()); elementType = vectorType->getElementType(); } @@ -1685,7 +1685,7 @@ void CLikeSourceEmitter::emitIntrinsicCallExprImpl( if(coordsVecType) { coordsType = coordsVecType->getElementType(); - elementCount = GetIntVal(coordsVecType->getElementCount()); + elementCount = getIntVal(coordsVecType->getElementCount()); } SLANG_ASSERT(coordsType->op == kIROp_UIntType); |
