From f3d70425fa339a0d8f39b920235c98280d250bbb Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 29 May 2020 08:36:10 -0400 Subject: 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. --- source/slang/slang-emit-c-like.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/slang/slang-emit-c-like.cpp') 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(); 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(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(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(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); -- cgit v1.2.3