[llvm] [SPIRV] Add support for SPV_KHR_bit_instructions (PR #66215)
Ilia Diachkov via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 22 03:18:23 PDT 2023
================
@@ -884,6 +902,12 @@ void addInstrRequirements(const MachineInstr &MI,
default:
break;
}
+
+ // If we require capability Shader, then we can remove the requirement for
+ // the BitInstructions capability, since Shader is a superset capability
+ // of BitInstructions.
+ Reqs.removeCapabilityIf(SPIRV::Capability::Shader,
+ SPIRV::Capability::BitInstructions);
----------------
iliya-diyachkov wrote:
Please also clang-format the last changes.
https://github.com/llvm/llvm-project/pull/66215
More information about the llvm-commits
mailing list