[llvm] [SPIRV] Add support for SPV_KHR_bit_instructions (PR #66215)
Paulo Matos via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 22 02:38:31 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);
----------------
pmatos wrote:
Thanks for catching that. I passed the arguments the wrong way around.
https://github.com/llvm/llvm-project/pull/66215
More information about the llvm-commits
mailing list