[all-commits] [llvm/llvm-project] fe1300: [HLSL] Add __builtin_hlsl_create_handle

Chris B via All-commits all-commits at lists.llvm.org
Thu Jul 28 07:16:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe13002bb37caf7425dfdb56b8f891c3f33b54b6
      https://github.com/llvm/llvm-project/commit/fe13002bb37caf7425dfdb56b8f891c3f33b54b6
  Author: Chris Bieneman <chris.bieneman at me.com>
  Date:   2022-07-28 (Thu, 28 Jul 2022)

  Changed paths:
    M clang/include/clang/Basic/Builtins.def
    A clang/test/CodeGenHLSL/builtins/create_handle.hlsl
    M llvm/include/llvm/IR/IntrinsicsDirectX.td

  Log Message:
  -----------
  [HLSL] Add __builtin_hlsl_create_handle

This is pretty straightforward, it just adds a builtin to return a
pointer to a resource handle. This maps to a dx intrinsic.

The shape of this builtin and the underlying intrinsic will likely
shift a bit as this implementation becomes more feature complete, but
this is a good basis to get started.

Depends on D128569.

Differential Revision: https://reviews.llvm.org/D130016




More information about the All-commits mailing list