From f685df8c162f088bfd994be11c4f5f69f94accd2 Mon Sep 17 00:00:00 2001 From: John Kessenich Date: Tue, 13 Oct 2015 10:55:08 -0600 Subject: [PATCH] Add comment that was missed in previous commit. --- SPIRV/SpvBuilder.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SPIRV/SpvBuilder.cpp b/SPIRV/SpvBuilder.cpp index 12fd003c..dba9c4c2 100755 --- a/SPIRV/SpvBuilder.cpp +++ b/SPIRV/SpvBuilder.cpp @@ -500,6 +500,9 @@ Id Builder::findScalarConstant(Op typeClass, Id typeId, unsigned v1, unsigned v2 return 0; } +// Return true if consuming 'opcode' means consuming a constant. +// "constant" here means after final transform to executable code, +// the value consumed will be a constant, so includes specialization. bool Builder::isConstantOpCode(Op opcode) const { switch (opcode) {