[clang] [llvm] [HLSL] Adding HLSL `clip` function. (PR #114588)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 9 10:13:20 PST 2024
================
@@ -1407,6 +1408,19 @@ void addInstrRequirements(const MachineInstr &MI,
Reqs.addCapability(SPIRV::Capability::SplitBarrierINTEL);
}
break;
+ case SPIRV::OpKill: {
+ Reqs.addCapability(SPIRV::Capability::Shader);
+ } break;
+ case SPIRV::OpDemoteToHelperInvocation:
+ Reqs.addCapability(SPIRV::Capability::DemoteToHelperInvocation);
+
+ if (ST.canUseExtension(
+ SPIRV::Extension::SPV_EXT_demote_to_helper_invocation)) {
+ if (!ST.isAtLeastSPIRVVer(llvm::VersionTuple(1, 6)))
----------------
farzonl wrote:
same comment here I don't think you have the version right.
https://github.com/llvm/llvm-project/pull/114588
More information about the cfe-commits
mailing list