[clang] [llvm] [HLSL] Implement the `fwidth` intrinsic for DXIL and SPIR-V target (PR #161378)
Alexander Johnston via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 19 04:40:04 PST 2025
================
@@ -21,3 +21,4 @@ def subgroup_local_invocation_id : SPIRVBuiltin<"uint32_t()", [NoThrow, Const]>;
def distance : SPIRVBuiltin<"void(...)", [NoThrow, Const]>;
def length : SPIRVBuiltin<"void(...)", [NoThrow, Const]>;
def smoothstep : SPIRVBuiltin<"void(...)", [NoThrow, Const, CustomTypeChecking]>;
+def fwidth : SPIRVBuiltin<"void(...)", [NoThrow, Const, CustomTypeChecking]>;
----------------
Alexander-Johnston wrote:
Moved to BuiltinsSPIRVVK.td
https://github.com/llvm/llvm-project/pull/161378
More information about the llvm-commits
mailing list