Преглед на файлове

[spirv] Remove unused function (decorateNonUniformEXT).

This decoration is now automatically emitted for any instruction which
has isNonUniform member set to true.
Ehsan Nasiri преди 6 години
родител
ревизия
340afb4c93
променени са 2 файла, в които са добавени 0 реда и са изтрити 11 реда
  1. 0 4
      tools/clang/include/clang/SPIRV/SpirvBuilder.h
  2. 0 7
      tools/clang/lib/SPIRV/SpirvBuilder.cpp

+ 0 - 4
tools/clang/include/clang/SPIRV/SpirvBuilder.h

@@ -551,10 +551,6 @@ public:
   /// \brief Decorates the given target with patch
   void decoratePatch(SpirvInstruction *target, SourceLocation srcLoc = {});
 
-  /// \brief Decorates the given target with nonuniformEXT
-  void decorateNonUniformEXT(SpirvInstruction *target,
-                             SourceLocation srcLoc = {});
-
   /// --- Constants ---
   /// Each of these methods can acquire a unique constant from the SpirvContext,
   /// and add the context to the list of constants in the module.

+ 0 - 7
tools/clang/lib/SPIRV/SpirvBuilder.cpp

@@ -999,13 +999,6 @@ void SpirvBuilder::decoratePatch(SpirvInstruction *target,
   module->addDecoration(decor);
 }
 
-void SpirvBuilder::decorateNonUniformEXT(SpirvInstruction *target,
-                                         SourceLocation srcLoc) {
-  auto *decor = new (context)
-      SpirvDecoration(srcLoc, target, spv::Decoration::NonUniformEXT);
-  module->addDecoration(decor);
-}
-
 SpirvConstant *SpirvBuilder::getConstantInt(QualType type, llvm::APInt value,
                                             bool specConst) {
   // We do not reuse existing constant integers. Just create a new one.