Commit Graph

2 Commits

Author SHA1 Message Date
Xiang Li 208d0f04a6 [NFC] legalize triple for dxil tests. 2022-09-26 18:09:33 -07:00
Chris Bieneman 6599fdab2c 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
2022-04-05 11:50:07 -05:00