[all-commits] [llvm/llvm-project] 6599fd: Add DXILPrepare CodeGen pass

Chris B via All-commits all-commits at lists.llvm.org
Tue Apr 5 09:50:36 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6599fdab2cd4f76021f560edcedbe396fd97216d
      https://github.com/llvm/llvm-project/commit/6599fdab2cd4f76021f560edcedbe396fd97216d
  Author: Chris Bieneman <chris.bieneman at me.com>
  Date:   2022-04-05 (Tue, 05 Apr 2022)

  Changed paths:
    M llvm/lib/Target/DirectX/CMakeLists.txt
    A llvm/lib/Target/DirectX/DXILPrepare.cpp
    A llvm/lib/Target/DirectX/DirectX.h
    M llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
    A llvm/test/CodeGen/DirectX/fneg-conversion.ll
    A llvm/test/CodeGen/DirectX/lit.local.cfg
    A llvm/test/CodeGen/DirectX/strip-fn-attrs.ll

  Log Message:
  -----------
  Add DXILPrepare CodeGen pass

The DXIL Prepare pass handles the IR mutations required to convert
modern LLVM IR into something that more closely resembles LLVM-3.7 IR
so that the DXIL bitcode writer can emit 3.7 IR.

This change adds the codegen pass handling the first two IR
transformations:

* stripping new function attributes
* converting fneg into fsub

Reviewed By: nikic

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




More information about the All-commits mailing list