[all-commits] [llvm/llvm-project] 8cf856: [DirectX] Make DXILOpBuilder's API more useable

Justin Bogner via All-commits all-commits at lists.llvm.org
Fri Aug 2 15:13:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8cf85653b6f5c90b83f8a5741baad5725d6c6932
      https://github.com/llvm/llvm-project/commit/8cf85653b6f5c90b83f8a5741baad5725d6c6932
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2024-08-02 (Fri, 02 Aug 2024)

  Changed paths:
    M llvm/lib/Target/DirectX/DXIL.td
    M llvm/lib/Target/DirectX/DXILOpBuilder.cpp
    M llvm/lib/Target/DirectX/DXILOpBuilder.h
    M llvm/lib/Target/DirectX/DXILOpLowering.cpp
    M llvm/test/CodeGen/DirectX/acos_error.ll
    M llvm/test/CodeGen/DirectX/asin_error.ll
    M llvm/test/CodeGen/DirectX/atan_error.ll
    M llvm/test/CodeGen/DirectX/ceil_error.ll
    M llvm/test/CodeGen/DirectX/cos_error.ll
    M llvm/test/CodeGen/DirectX/cosh_error.ll
    M llvm/test/CodeGen/DirectX/dot2_error.ll
    M llvm/test/CodeGen/DirectX/dot3_error.ll
    M llvm/test/CodeGen/DirectX/dot4_error.ll
    M llvm/test/CodeGen/DirectX/exp2_error.ll
    M llvm/test/CodeGen/DirectX/flattened_thread_id_in_group_error.ll
    M llvm/test/CodeGen/DirectX/floor_error.ll
    M llvm/test/CodeGen/DirectX/frac_error.ll
    M llvm/test/CodeGen/DirectX/group_id_error.ll
    M llvm/test/CodeGen/DirectX/isinf_error.ll
    M llvm/test/CodeGen/DirectX/log2_error.ll
    M llvm/test/CodeGen/DirectX/round_error.ll
    M llvm/test/CodeGen/DirectX/rsqrt_error.ll
    M llvm/test/CodeGen/DirectX/sin_error.ll
    M llvm/test/CodeGen/DirectX/sinh_error.ll
    M llvm/test/CodeGen/DirectX/sqrt_error.ll
    M llvm/test/CodeGen/DirectX/tan_error.ll
    M llvm/test/CodeGen/DirectX/tanh_error.ll
    M llvm/test/CodeGen/DirectX/thread_id_error.ll
    M llvm/test/CodeGen/DirectX/thread_id_in_group_error.ll
    M llvm/test/CodeGen/DirectX/trunc_error.ll
    M llvm/utils/TableGen/DXILEmitter.cpp

  Log Message:
  -----------
  [DirectX] Make DXILOpBuilder's API more useable

This adjusts the DXILOpBuilder API in a couple of ways:
1. Remove the need to call `getOverloadTy` before creating Ops
2. Introduce `tryCreateOp` to parallel `createOp` but propagate errors
3. Introduce specialized createOp methods for each DXIL Op

This will simplify usage of the builder in upcoming changes, and also allows us
to propagate errors via DiagnosticInfo rather than using fatal errors.

Pull Request: https://github.com/llvm/llvm-project/pull/101250



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