[all-commits] [llvm/llvm-project] afb6da: [clang][HLSL] Add WaveIsFirstLane() intrinsic (#10...

Nathan Gauër via All-commits all-commits at lists.llvm.org
Wed Sep 4 02:27:24 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: afb6dafc6b680fb204d40c7fee4b339aa8471010
      https://github.com/llvm/llvm-project/commit/afb6dafc6b680fb204d40c7fee4b339aa8471010
  Author: Nathan Gauër <brioche at google.com>
  Date:   2024-09-04 (Wed, 04 Sep 2024)

  Changed paths:
    M clang/include/clang/Basic/Builtins.td
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/CodeGen/CGHLSLRuntime.h
    M clang/lib/Headers/hlsl/hlsl_intrinsics.h
    A clang/test/CodeGenHLSL/builtins/wave_is_first_lane.hlsl
    M llvm/include/llvm/IR/IntrinsicsDirectX.td
    M llvm/include/llvm/IR/IntrinsicsSPIRV.td
    M llvm/lib/Target/DirectX/DXIL.td
    M llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
    M llvm/lib/Target/SPIRV/SPIRVStripConvergentIntrinsics.cpp
    A llvm/test/CodeGen/DirectX/wave_is_first_lane.ll
    A llvm/test/CodeGen/SPIRV/hlsl-intrinsics/WaveIsFirstLane.ll

  Log Message:
  -----------
  [clang][HLSL] Add WaveIsFirstLane() intrinsic (#103299)

This commits add the WaveIsFirstLane() hlsl intrinsinc. This intrinsic
uses the convergence intrinsincs for the SPIR-V backend. On the DXIL
side, I'm not sure what the strategy is for convergence, so I
implemented that like in DXC: a normal builtin function.

Signed-off-by: Nathan Gauër <brioche at google.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list